That describes the steps you need to get a consistent timestep in your simulation. Even then you'd be using Sleep (1) using it to control framerates is not the way to go.įorcing vsync on is probably one common way to get a fixed framerate, but even then, different hardware will run at different refresh rates and you won't be able to have a consistent fixed framerate across different machines (this depends on what kind of hardware you're targetting of course).Īt this point in time it's necessary to mention this article: Gaffer On Games - Fix Your Timestep!. Support full virtual key mapping automatically. The only reasonable case for using Sleep would be if you wanted to reduce CPU usage for e.g. Good gaming performance, no lag, does not consume much machine resources.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |