The book of inspiration

August 22, 2009

Put some weight on it

Filed under: programming — Tags: — zproxy @ 6:00 am

We all know the concept of placeholders. I had never thought of using  memory placeholders as described by Dirty Coding Tricks  at Gamasutra.

static char buffer[1024*1024*2];

“See this?” he said. And then deleted it with a single keystroke. Done!

Come to think of it, it is really nice to know that after the features are implemented and optimized you can still get an extra performance boost by cutting the memory placeholder you had introduced to the code base from early on.


See also:


1 Comment

  1. Don’t really see a great benefit in using this trick, but then again I don’t have much experience with projects that have such harsh memory budgets. I hope you won’t use memory placeholders when we’ll begin writing indie games together! 🙂

    Comment by Marti — August 22, 2009 @ 10:14 am

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Create a free website or blog at

%d bloggers like this: