Cakewalk // Documentation // CakewalkSonar // Plug-in load balancing
Table of Contents Previous Next Index

Improving audio performance ► Plug-in load balancing

To enable/disable plug-in load balancing, go to Edit > Preferences > Audio - Playback and Recording and select Plug-In Load Balancing. This option is only available if Use Multiprocessing Engine is enabled.
Enabling Plug-In Load Balancing does not introduce any latency.
Enable Plug-In Load Balancing if:
There will likely not be any benefit from enabling Plug-In Load Balancing in the following cases:
*
The project uses a low Mixing Latency Buffer Size setting (<256 samples) in Edit > Preferences > Audio - Driver Settings.
In this example, FX2 becomes the bottleneck in the processing, since the downstream plug-ins have to wait for its processing to finish. When Plug-in Load Balancing is enabled, Sonar optimizes this chain, by subdividing the workload and scheduling processing the plug-ins in parallel to distribute the load across multiple cores when possible:
By default, if the Mixing Latency Buffer Size setting in Edit > Preferences > Audio - Driver Settings is < 256 samples, it is too low for load balancing because the buffers cannot be subdivided further. This is equivalent to Plug-in Load Balancing being disabled for all FX Racks. This threshold can be tweaked by changing the MinPluginLoadBalancingBufferSamples variable in Aud.ini, which controls the size of the smallest internal buffer subdivision that may be used for plug-in load balancing. The minimum value is 32 samples and the max is 256. The default value is 96 samples, which means that load balancing is only active if the buffer size is > 96samples. Lowering the value will make load balancing more aggressive and consume more CPU for processing, but normally there should be no need to adjust this value.
The MinPluginLoadBalancingBufferSamples setting should not be confused with the Mixing Latency Buffer Size setting. Load balancing subdivides the audio buffer into multiple smaller buffers depending on the number of plug-ins in the FX Rack. If the Mixing Latency Buffer Size value is smaller than MinPluginLoadBalancingBufferSamples × 2 samples, then load balancing has no effect.
1.
Go to Edit > Preferences > Audio - Configuration File.
2.
Set the value of MinPluginLoadBalancingBufferSamples to the minimum desired buffer sample value.
3.
1.
Go to Edit > Preferences > Audio - Configuration File.
2.
Set PluginLoadBalancingThreadCount to the desired value. A value of 0 causes it to be adaptively determined based on mix thread count and buffer size. The minimum min thread count is 2 (a value of 1 will essentially disable load balancing).
3.
When Plug-In Load Balancing is enabled in Edit > Preferences > Audio - Playback and Recording and load balancing is active, the FX Rack header tooltip shows (PLB) next to the audio processing load.
Copyright © 2024 Cakewalk, Inc. All rights reserved
Sitemap | Privacy Policy | Legal