VOGONS


Latency - how to adjust

Topic actions

First post, by sentinel

User metadata
Rank Newbie
Rank
Newbie

The documentation in the VDMS.ini file isn't too descriptive. It tells me to change 'buffer' to change the latency. But which increases or decreases latency - I'm not too familiar with the hardware buffers, especially in an emulation setting.

Also, just making sure, that this is what I need to change if the sound is having trouble keeping up with the animation. There are moments when it's lagging, and there are times that it's at normal rate of speed.

Thanks in advance. I *love* VDMsound. 😁

Reply 1 of 2, by Snover

User metadata
Rank l33t++
Rank
l33t++

In this case, the buffer is audio data that is gathered some number of milliseconds before it is played. A longer time period means that it will gather more audio before playing it, thereby helping to prevent any 'skipping' by there being gaps in audio data, but it will make the latency worse. A shorter time period means that it will gather less audio before it is played, and therefore it will be played more in synch with the video, but it may skip if there is not enough data being sent at a consistent rate.

Just in case I'm not being clear, since I'm really tired at the moment:

higher buffer = more latency = sound off synch = less skipping
lower buffer = less latency = sound on synch = more skipping

Yes, it’s my fault.

Reply 2 of 2, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

I'm not sure, but lowering the DMA polling period could possibly lower latency as well. You might also try using the Wave Mapper instead of DirectSound as VDMSound's Windows output sevice. With these kinds of tweaks I was able to get low latency in Impulse Tracker under WinXP.