[SDL] Looping mp3/ogg music
Mattias Engdegård
f91-men at nada.kth.se
Thu Nov 9 01:58:43 PST 2000
>Actually, I looked at the glibc 2.1 source code, and usleep() is implemented
>using select(). Heheh.
I *did* some experiments before writing that. usleep(10000)
consistently slept for 20 ms. That was with glibc 2.1.3, kernel 2.2.14
(SMP). (Solaris 8 showed the same behaviour, interestingly.)
Of course, if you don't take the nap in the beginning of a tick (say,
do cpu-intensive work for 9 ms first), you will get different figures.
And even 10 ms is still *way* too large - almost the vertical refresh
frequency nowadays
More information about the SDL
mailing list