[Openal] buffer size
jdaly at ist.ucf.edu
Thu Nov 9 10:44:53 PST 2006
Peter Mulholland wrote:
>> On Linux it tends to be quite a bit easier since the usleep()
>> [microsleep] function is available.
> I doubt it's actually microsecond accurate. See my earlier comment
> about kernels - not even RTOS kernels are that accurate.
Linux is only as accurate as the kernel is compiled to be. The default
HZ on Red Hat Enterprise 4 is 100, which means that usleep(1) and
usleep(10000) will sleep pretty much the same amount of time. I've seen
HZ set as high as 250 before, and some enthusiasts have reported running
as high as 1000 (approaching millisecond accuracy) with no problems, but
that's about it. If you set it too high, you end up with overall
degraded performance because of the scheduling and context switching
"I'm a castaway stranded in a desolate land,
I can see the footprints in the virtual sand."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openal