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:
Advertisement










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