Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I am suffering from performance degradation when using GetCurrentPosition(). What can I do to improve performance?

degradation PERFORMANCE
0
Posted

I am suffering from performance degradation when using GetCurrentPosition(). What can I do to improve performance?

0

Each GetCurrentPosition() call on each buffer causes a system call, and system calls should be minimized as they are a large component of DSound’s CPU footprint. On NT (Win2K and XP) the cursors in SW buffers (and HW buffers on some devices) move in 10ms increments, so calling GetCurrentPosition() every 10ms is ideal. Calling it more often than every 5ms will cause some performance degradation.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123