3 ms·
Yeap, this is a common and very smart thing to do. Similar tricks are to sneak in a 1-3ms delay in the main game loop so you have about 10% of your framerate re
by ajg1977 17y ago
Yeap, this is a common and very smart thing to do. Similar tricks are to sneak in a 1-3ms delay in the main game loop so you have about 10% of your framerate reserved, and if you're not running on DVD add some sleep() calls when a file is opened so you're not fooled by the virtually non-existent seek times of the devkits HDD.
- palish 17y agoSo when the developer leaves the company...
- ajg1977 17y agoHeh, fortunately that isn't much of a concern. These are all things that a good programmer would find within 30 mins when they sit down with a profiler to eek out a few more fps or free memory. The intention is not to hide these from other engineers, but to keep a bit of performance in the bag for when needed at the end of the project. When you absolutely must hit 60fps, or fit everything into 32mb of RAM, it can be invaluable.