[gameprogrammer] game timers
- From: Josh Stewart <aek@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Mon, 24 Oct 2005 23:24:01 +0800
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
- Follow-Ups:
- [gameprogrammer] Re: game timers
- From: David Olofson
Other related posts:
- » [gameprogrammer] game timers
- » [gameprogrammer] Re: game timers
- [gameprogrammer] Re: game timers
- From: David Olofson