Advertisement

Low resolution timers?

Started by June 07, 2000 04:59 AM
1 comment, last by Arfa 24 years, 6 months ago
Hi I was thinking about creating a multiplatform game using SDL (www.libsdl.org). One thing put me off though, it had very rudimentary timer support - one timer of resolution 10ms. Apparantly this is a legacy from Windows code. Normally (under DOS and Linux )in even a simple game I''d have at least two timers of resolution much greater than 10ms. So my question is, how do Windows games programmers cope with such a restriction? And how can I get around it, having had no Windows programming experience and no desire to learn? Cheers, => Arfa <=
=> Arfa <=
quote:

Apparantly this is a legacy from Windows code.



Who told you that ?

I don't know how you can do it under Linux, but Windows have a very precise timer function (its resolution is 1 ms).

It's GetTickCount()




Edited by - Prosper/LOADED on June 7, 2000 7:02:25 AM
Advertisement
Don''t forget the high performance counter which is 1,193,180 ticks per second on every machine I''ve ever checked. Some older machines might not have this, but who codes for those guys anyway.

Mike Roberts
aka milo
mlbobs@telocity.com

This topic is closed to new replies.

Advertisement