[SDL] Timer accuracy
mattdm at mattdm.org
Mon Sep 16 07:11:01 PDT 2002
On Mon, Sep 16, 2002 at 10:20:47AM +0200, David Olofson wrote:
> accuracy. This is because of OS scheduler design, and on some platforms,
> there isn't much to do about it. The scheduler checks software timers at
> 100 Hz, and that's it.
For what it's worth, this is going to change to 1000 (or maybe 1024 -- I
forget) in the next release of the Linux kernel.
> That said, Win32 has "multimedia timers" that support 1000 Hz scheduling,
> and Linux on virtually any PC or workstation (regardless of CPU) has the
> RTC, which can be programmed to generate IRQs up to 8192 Hz.
In order to access this, your program has to be run as root, though, right?
Matthew Miller mattdm at mattdm.org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
More information about the SDL