[gameprogrammer] game timers

Does anyone know if QueryPerformanceCounter and QueryPerformanceFrequency are the best way to do timers to control the game loop in a win32 / glut / opengl game? I am developing under MSVC .NET (2003).

Is there an alternative that will integrate quickly into my code base, that might be more portable?
Does anyone have any sample code?


Also how do I go about debugging my code with such timers.. it seems that as i step through code in my update cycle, my timer is still running away.
If I am looking at code that is say, updating some physics based on the elapsed time since the last frame, then the elaped time is much larger than usual.. Is there a way around this?


thanks
_Josh



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: