[wdmaudiodev] Re: Windows & Real Time : suggestion to Microsoft Kernel Developers

  • From: Tim Roberts <timr@xxxxxxxxx>
  • To: "wdmaudiodev@xxxxxxxxxxxxx" <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 28 Sep 2016 11:14:07 -0700

Vincent Burel (VB-Audio) wrote:


I develop Real Time Application under Windows since WIN95 and I
finally got the following conclusion,

to improve Real Time under Windows… and to compete with Audio Hardware
Devices (for example based on DSP or FPGA):

* *

*We are missing a single function :*

Sleep(0.1f) or uSleep(100)


Of course, it's more complicated than that.  You have to think about
what that means in the larger scheme of Windows.  Sleeping processes can
only be awakened during a scheduler interval.  In order to implement
sub-millisecond timer wakeups, you have to reduce the scheduler
interval.  You CAN get sleep times down to millisecond accuracy, by
calling timeBeginPeriod(1).  That reduces the scheduler interval to 1ms,
and we already know that has significant impact on system performance
and power consumption.

-- 
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

Other related posts: