INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: WASAPI buffer length affecting DSP update rate  (Read 1565 times)

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
WASAPI buffer length affecting DSP update rate
« on: February 17, 2015, 10:53:18 am »

Well this is something that I have noticed for quite some time now; for some unknown reason, DSP seemed to respond quickly when playing to some zones/devices, and slowly in others.
 
When testing another VST plug-in today, I noticed that it seemed to be updating about four times every second or so... and it just so happened that I had recently changed that device to use a 250ms buffer size.
Even MC's own analyzer is affected by this, and rather than just being slow to update, the displays actually break entirely in some plug-ins once you go over 100ms.

Now I'm not sure why the update rate is tied into the buffer size - perhaps there's a good reason for it.
I understand that, of course, any DSP changes would take that long before they have any effect (e.g. half a second for a 500ms buffer) but I'm not sure why the displays are only updating at that rate as well.
 
Would it be possible to decouple them so that we get smooth updating (ideally 60 FPS+) without having to reduce the buffer size to 10ms or lower? (10ms = 100 FPS max, 25ms = 40 FPS max)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: WASAPI buffer length affecting DSP update rate
« Reply #1 on: February 17, 2015, 11:14:10 am »

Now I'm not sure why the update rate is tied into the buffer size - perhaps there's a good reason for it.
I understand that, of course, any DSP changes would take that long before they have any effect (e.g. half a second for a 500ms buffer) but I'm not sure why the displays are only updating at that rate as well.

DSP happens right before giving the data to the sound card.  This is the buffer size.  So it makes sense that the delay varies with the buffer size selected.
Logged
Matt Ashland, JRiver Media Center

6233638

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 5353
Re: WASAPI buffer length affecting DSP update rate
« Reply #2 on: February 17, 2015, 11:38:54 am »

I suspect that it's probably one of those things that is probably a big architectural change, but is there not any way to decouple the two?
I suppose there is no way to do it without adding more latency, but something like processing the DSP first and then feeding it into a separate buffer?
 
Anything above 10ms starts to show the effects of this reduced framerate, but 10ms is not the most stable of buffer sizes. (100-250ms is a better choice when latency is not an issue)
Logged
Pages: [1]   Go Up