Jump to content
  • Advertisement
Sign in to follow this  
MrWereWolf

GetTickCount not accurate enough?

This topic is 4889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!