Game Clock Precision

Posted by Philip on Game Development See other posts from Game Development or by Philip
Published on 2012-09-17T22:26:23Z Indexed on 2012/09/18 3:53 UTC
Read the original article Hit count: 356

Filed under:
|
|

I'm reading a fantastic article about game timer precision and here is a quote about 2/3 of the way into the article:

If you start your game clock at about 4 billion (more precisely 2^32, or any large power of two) then your exponent, and hence your precision, will remain constant for the next ~4 billion seconds, or ~136 years.

He doesn't give a concrete example of this though. Does this mean I would want to add 2^32 to the game clock value that I store at the beginning of each frame? Or is there a way to actually set the clock in Windows so that the numbers start at 2^32?

© Game Development or respective owner

Related posts about c++

Related posts about events