My Message close
GAME JOBS
Latest Blogs
spacer View All     Post     RSS spacer
 
May 20, 2013
 
Making 2D Games With Unity [1]
 
All You Need is Love [3]
 
Students: Tips for Learning Game Development Over the Summer [2]
 
All Your Nintendo Let's Plays Are Belong To Nintendo? [86]
 
Even Further Down the Curation Rabbithole [12]
spacer
Latest Jobs
spacer View All     Post a Job     RSS spacer
 
May 20, 2013
 
Sony Computer Entertainment America LLC
Sr. Network Systems Engineer
 
Treyarch / Activision
Technical Animator
 
Amazon Game Studios
Sr. Game Designer
 
Amazon Game Studios
Quality Assurance Manager
 
Amazon Game Studios
Lead 3D Environment Artist
 
Amazon Game Studios
Game Graphics Engineer
spacer
Latest Press Releases
spacer View All     RSS spacer
 
May 20, 2013
 
Zeeek and The Secret of
Space Octopuses heading
to...
 
Battle bad 'bots in Bad
Bots, available now on...
 
Temple Run 2 Adds New
Terrain and Obstacles
in...
 
Little Amazon runs
through Android
 
Command Ops gets a
Massive Update!
spacer
About
spacer Editor-In-Chief:
Kris Graft
Blog Director:
Christian Nutt
Senior Contributing Editor:
Brandon Sheffield
News Editors:
Mike Rose, Kris Ligman
Editors-At-Large:
Leigh Alexander, Chris Morris
Advertising:
Jennifer Sulik
Recruitment:
Gina Gross
Education:
Gillian Crowley
 
Contact Gamasutra
 
Report a Problem
 
Submit News
 
Comment Guidelines
Sponsor

 
Bonus Feature: Data Alignment, Part 2
Bonus Feature: Data Alignment, Part 2
 

April 1, 2009   |   By Christian Nutt

Comments Post A Comment

More: Console/PC





In the latest in a series of discipline-oriented bonus features, Gamasutra presents the second half of Noel Llopis' Data Alignment feature, the first installment of which ran earlier this month.

As originally run in Game Developer magazine earlier this year, Data Alignment Part 2: Objects on The Heap and The Stack further tackles the difficulties in making sure data can be readily accessed conveniently, as to increase performance of games. Or, as Llopis puts it, "With these techniques in hand, you should be able to control where your data is placed. Maybe it will instill in you a healthy fear for the intricate details of C++, but it will also allow you to take full advantage of that hardware with those alignment restrictions, and hopefully bump your game into a solid 60fps."

Llopis takes the discussion of data alignment to the array and stack, two areas of C programming that require special attention. Llopis suggests, "There are a variety of ways to deal with array alignments, some more complex than others. However, there is one method that is easy, fast, and has no overhead: Set the desired static alignment for the structure."

Llopis also warns, "The last allocation type we need to deal with is the stack. Even though the stack is one of the easiest memory allocation types to understand and work with, it's the one where ensuring alignment can be the hardest."

To discover his solutions in-depth, hit the full feature, which is published on Gamasutra today.
 
 
Top Stories

image
The laws behind Nintendo's Let's Play crackdown
image
New layoffs reach Trion
image
How developers mess up immersion (you might be doing it wrong)
image
Steam Trading Cards: The next-gen of achievements?


   
 
Comments


none
 
Comment:
 




 
UBM Tech