• SONAR
  • Sampling Rate / Latency Correlation (p.2)
2016/04/04 02:24:09
tenfoot
As I said, increasing the sample rate setting also increases system load, so your asio buffer settings will need to be increased adding latency. The end result will be higher latency.
2016/04/04 02:25:02
tenfoot
Sorry - our replies are out of sync:)
 
2016/04/04 02:30:32
AdamGrossmanLG
oh no problem... ok so does the SAMPLING RATE (inside of Sonar)  44.1 vs 96 Khz have an effect on latency when playing softsynths?
2016/04/04 02:38:14
tenfoot
Doubling the sample rate halves the latency because the asio buffers fill twice as fast. With 1/2 the effective buffer time (there are twice as many samples for the same size buffer) than the system had at the lower sampling rate your processor will begin to feel the load much sooner, thus the need to increase your asio buffers, negating the perceived advantage of the higher sample rate.
2016/04/04 02:41:44
AdamGrossmanLG
tenfoot
Doubling the sample rate halves the latency because the asio buffers fill twice as fast. With 1/2 the effective buffer time (there are twice as many samples for the same size buffer) than the system had at the lower sampling rate your processor will begin to feel the load much sooner, thus the need to increase your asio buffers, negating the perceived advantage of the higher sample rate.




wait, you are talking sample rate (as in 512 or 1024 in the ASIO settings), I am talking SAMPLING RATE inside of Sonar preferences (44.1, 48, 96, etc...).
 
Which one reduces latency?
2016/04/04 02:47:39
tenfoot
Increasing asio buffers increases latency, but lowers processor load. Increasing the sample rate lowers latency (buffers fill faster) but increases system load. The end result (round trip latency) is interdependant on the two settings.
2016/04/04 02:54:55
AdamGrossmanLG
tenfoot
Increasing asio buffers increases latency, but lowers processor load. Increasing the sample rate lowers latency (buffers fill faster) but increases system load. The end result (round trip latency) is interdependant on the two settings.


ohhh i see now - thank you for clearing that up for me.
 
 
2016/04/04 02:55:59
tenfoot
No worries:)
2016/04/04 03:49:35
Sanderxpander
SilverBlueMedallion
tenfoot
Doubling the sample rate halves the latency because the asio buffers fill twice as fast. With 1/2 the effective buffer time (there are twice as many samples for the same size buffer) than the system had at the lower sampling rate your processor will begin to feel the load much sooner, thus the need to increase your asio buffers, negating the perceived advantage of the higher sample rate.




wait, you are talking sample rate (as in 512 or 1024 in the ASIO settings), I am talking SAMPLING RATE inside of Sonar preferences (44.1, 48, 96, etc...).
 
Which one reduces latency?

If you want to use a higher samplerate to get a lower latency, that only works if your interface is already on or near its minimum buffer size and you have CPU power to spare. If you're not at minimum buffer size yet, adjusting that first will have a similar effect on latency and CPU power.
2016/04/04 11:48:58
bitflipper
SilverBlueMedallion
I have been reading that the HIGHER than sampling rate, the LOWER the latency?
That sounds wrong! Wouldn't a higher sampling rate cause the hard drive and CPU to work even harder thus making latency even longer?

Yes, it sounds wrong because latency is more complicated than just how fast you shove bits into a buffer.
 
Computers can't process audio data one sample at a time. They just don't work that way. Any time we bring data into a computer it has to be in chunks, whether we're talking about recording audio or reading data from a disk drive or a network adapter. Data may come in one byte at a time, but it gets stashed in a buffer until the buffer is full, and only then is the data actually processed. How long it takes to fill the buffer is therefore the main determiner of latency. 
 
You can therefore reduce latency by either making the buffer smaller or by filling it faster. At any given buffer size, latency can be reduced by sending it data more quickly, i.e. using a faster sample rate. However, you could also achieve the same effect by making the buffer smaller.
 
Regardless of which method you use, the limiting factor is how quickly your CPU can process the data. At some point you will be feeding too much data too fast for the CPU to keep up. At that point you have no choice but to increase the buffer size, which negates the benefit of the higher sample rate, at least in terms of latency.
 
But latency is more complicated than how fast you can get data into and out of the computer. There is also the overhead of what the computer's doing to that data. Many plugins necessarily introduce additional latency due to how they work - some must accumulate data within their own internal buffers because they work on chunks of data, too. 
 
Bottom line: don't increase sample rate in order to reduce latency. Use higher sample rates because you need the wider bandwidth, e.g. songs for dogs, dolphins or bats.
 
 
© 2026 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account