-
Timers
I wasn't sure where to put this, but the game board seems like a good cross of everything. Yesterday I was reading through one of gametutorials.com's OpenGL tutorials on frames per second. It talked about the best windows timer being QueryPerformanceCounter() and QueryPerformanceFrequency(). How would these compare to using C's standard timer functions. Would the C timer run any lower in the architecture or be more accurate than the windows functions?
-
The windows functions are a lot more accurate.
QueryPerformanceFrequency() gives you the number of cycles per second your processor is doing, and QueryPerformanceCounter() will give you the cycle count you are on. You cant really get any more accurate than that.