[SDL] SDL_Delay() granularity

Hongli Lai h.lai at chello.nl
Thu Jul 11 03:28:01 PDT 2002

On Thu, 2002-07-11 at 07:31, Ryan C. Gordon wrote:
> 10 is the minimum, without the aid of a Real Time kernel. Don't use
> SDL_Delay in loops that need to pause for explicit amounts of time, since
> even without the 10 ms minimum, you aren't guaranteed to get an exact
> amount...well, with preemptive multitasking you aren't anyhow, but if you
> only need to delay for a few milliseconds, hog the CPU in a busy-loop and
> keep checking the current time until you have waited as long as you like.

Do other operating systems like Win32 also have this 10 ms minimum?

More information about the SDL mailing list