[Openal] buffer size
Jason Daly
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
overhead.
--
--"J"
"I'm a castaway stranded in a desolate land,
I can see the footprints in the virtual sand."
--Neil Peart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20061109/52f468ec/attachment.html
More information about the Openal
mailing list