[SDL] Not Response on Window Mode (on WindowsXP)

David Olofson david at olofson.net
Sat Nov 12 15:44:12 PST 2005


On Saturday 12 November 2005 20.16, David Olofson wrote:
[...]
> ------------------------------------
> >         SDL_Delay(0);
> ------------------------------------
> 
> Note that this SDL_Delay(0) will only work on Windows. There, it's 
> equivalent to Un*x sched_yield() (give up the CPU to other runable 
> threads, if any) - but on Un*x (POSIX API), it has no effect 
> whatsoever.

Correction:

It seems that, at least in the SDL 1.2.9 tree I'm looking at now, this 
has been fixed, and SDL_Delay() indeed will yield on Linux even if 
you pass 0.


//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
|  Free/Open Source audio engine for games and multimedia.  |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
   --- http://olofson.net --- http://www.reologica.se ---




More information about the SDL mailing list