[Openal] buffer size

nic at weartronics.com nic at weartronics.com
Thu Nov 9 02:50:48 PST 2006


Hi Peter,

Thanks for the info. I just tested and confirmed that you are correct, 
there is some undocumented 10ms granularity with Sleep(1); which was 
definately contributing to my problems!

I increased the buffer to 100ms as you suggested and the performance is 
good, however when I drag the window around the screen the CPU time 
often goes to 100% during dragging, and if it remains there for more 
than 100ms the buffer is exhausted and playback stops.

The CPU time seems to go to 100% when dragging any window (not just my 
application or anything to do with OpenAL). Is this normal behaviour for 
windows? Does anybody know a technique to maintain the OpenAL buffer in 
this circumstance?

Kind regards,

Nic


More information about the Openal mailing list