Basic Game Loop

Started by
11 comments, last by Inferiarum 11 years, 8 months ago
Throw in a Sleep() before/after render? Or if it's a server then instead of rendering.
Advertisement
Darookie, never knew of that ManualResetEvent method (I need to dig into .net more lol), thanks I will try your method.

Firestryke, that seems like a alright idea (only because this is the server im talking about), even with using Thread.Sleep(x) I can make sure the world is updated 60 times a second with that code, once I finish developing the server I may attempt to use that idea and see how well it works aswell. Thanks :)
Firestrykes approach is also described in the well known article
http://gafferongames.com/game-physics/fix-your-timestep/

This topic is closed to new replies.

Advertisement