News for hackers. Stuff that matters.
Re:Coding tricks of game developers by Morendil on Saturday February 11, 2012 @01:46PM (#3579823)
I can confirm the first trick, reserving a block of memory - I learned this in the early 90s coding on the Mac as the "rainy day fund" memory allocation.

I'm amused to find that this has been written up as a pattern, the Memory Overdraft Pattern: http://www.charlesweir.com/papers/Mempres8AsHtml.html

Re:Coding tricks of game developers by Ogre on Saturday February 11, 2012 @03:42PM (#3580105)
I haven't seen it with memory, but I work with an graphics programmer who swears he's done the same trick with CPU cycles, just insert a busy loop that does nothing for a couple of milliseconds every frame (busy loop, not sleep, so it still appears to the casual observer that your rendering engine is working as hard as it can). Then when the game is getting ready to launch, and the framerate is inevitably dropping, remove the loop.

I don't think he has a loop like that in our current code base. But it's possible.

Re:Coding tricks of game developers by damian2000 on Sunday February 12, 2012 @05:16AM (#3581506)
Another method occurred to me that might sort of work on the PC would be to finish a game, then delay the release for 1 year or so, during which time (due to Moore's law), everyone's gfx cards & processors have gotten faster and hence the average user's game playability would be improved.
Re:Coding tricks of game developers by zoul on Sunday February 12, 2012 @05:39AM (#3581537)
I think the bigger titles already account for the hardware advancements and aim for beefy, top-of-the line machines that are going to be common in the several years it takes to develop the title or engine.
Re:Coding tricks of game developers by toonse on Saturday February 11, 2012 @02:47PM (#3579981)
Yup. I've done this on a number of projects :) Not as necessary nowadays as it was for PSX, Genesis, and more limited memory platforms.
Re:Coding tricks of game developers by evincarofautumn on Saturday February 11, 2012 @05:52PM (#3580424)
Although there is still something to be said for having a low memory footprint, even on modern hardware. If you can fit all of your resources reasonably into memory, then you don’t need to have any load delay, or worry about asynchronous loading. Half the reason retro games are so fun to make is that you can easily do everything you always wanted to do on the Super NES or the Genesis or whatever.