informa
2 min read
article

Sponsored Feature: Behind the Mirror - Adding Reflection to C++ 2

In an Intel-sponsored reprint from Game Developer magazine, software engineer Geoff Evans takes a look at the benefits of implementing a reflection system in C++.
In an Intel-sponsored reprint of a Game Developer magazine article from February 2011, Insomniac veteran and current senior engineer at WhiteMoon Dreams Geoff Evans takes a look at the benefits of implementing a reflection system in C++. Evans explains that a reflection system "adds the ability for a program to utilize its own structure to inform its behavior," allowing developers to more easily implement changes and add new features. Implementing such a system is no easy task, but Evans notes that the benefits are often worth the extra effort. He points out that with a reflection system, developers gain "the ability to automate the serialization of objects into and out of a file, cloning, comparison, search indexing, and network replication, type conversion (copying base data between derived class instances), and user interface generation." "Reflection can imbue an enormous amount of flexibility to your game engine, but this flexibility doesn't come without cost," Evans writes. "However, the extra memory reflection data consumes is balanced by the time saved implementing features more rapidly. "The ability to deliver changes to your users quickly, and with minimal engineering overhead, will pay dividends as your user base grows and your production time stretches across multiple titles." The sponsored feature is now live on Gamasutra, offering concrete examples that demonstrate several ways to implement reflection systems in a game engine.

Latest Jobs

Treyarch

Playa Vista, California
6.20.22
Audio Engineer

Digital Extremes

London, Ontario, Canada
6.20.22
Communications Director

High Moon Studios

Carlsbad, California
6.20.22
Senior Producer

Build a Rocket Boy Games

Edinburgh, Scotland
6.20.22
Lead UI Programmer
More Jobs   

CONNECT WITH US

Register for a
Subscribe to
Follow us

Game Developer Account

Game Developer Newsletter

@gamedevdotcom

Register for a

Game Developer Account

Gain full access to resources (events, white paper, webinars, reports, etc)
Single sign-on to all Informa products

Register
Subscribe to

Game Developer Newsletter

Get daily Game Developer top stories every morning straight into your inbox

Subscribe
Follow us

@gamedevdotcom

Follow us @gamedevdotcom to stay up-to-date with the latest news & insider information about events & more