Sign in to follow this  
MrWereWolf

GetTickCount not accurate enough?

Recommended Posts

The windows' GetTickCount function seems not to be accurate enough, specially under 100 ms, and this messes up my frame-length counter, which I need for time based movement. It seems that the GetTickCount function does not return the actual number of milliseconds, it always returns as tens of milliseconds . For example it returns numbers like these: 20,50,120...etc. And when I have a very high frame rate(>100fps), and the latency is under 10ms, I get 0. Yes, 0. And everything is screwed up. Goodbye time based motion. Actually I don't know if other people use GetTickCount to make their time based movement. Is there a better function? Or maybe get the counter from a BIOS call? //Mr.WereWolf//

Share this post


Link to post
Share on other sites
the above article is old i think
ill point out that queryperformancecounter should not be used in a games its to unreliable
with laptops (and new amd/intel desktop) processors doing speed throttling its to unrealiable
unreal + quake etc use timeGetTime()

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this