October 2024: Fractal Audio's VP4 Virtual Pedalboard has been added to the wiki.

Difference between revisions of "CPU usage"

From Fractal Audio Wiki
Jump to navigation Jump to search
 
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__TOC__
 
__TOC__
  
=About CPU usage=
+
=CPU usage=
  
A preset takes up CPU cycles (CPU is used here as a synonym to DSP). The amount depends on the number of blocks, effect settings, controllers, overhead and more. You can check the current CPU usage percentage on the hardware and in the software editor.
+
A preset takes up CPU cycles (CPU is used here as a synonym for DSP). The amount depends on the number of blocks, effect settings, controllers, overhead and more. You can check the current CPU usage percentage on the hardware and in the software editor.
  
Due to the power of the different processors in the hardware, the Axe-Fx II has more CPU available in presets than the AX8 and FX8, while the Axe-Fx III has much more CPU available than the Axe-Fx II, FM9 and FM3.
+
Due to the power of the different processors in the hardware, the Axe-Fx II has more CPU available in presets than the AX8 and FX8, while the Axe-Fx III has much more CPU available than the Axe-Fx II, FM9, FM3 and VP4.
  
Important: ''bypassing'' a block on the grid does NOT lower CPU usage. Switching a block between X/Y or changing channels may affect CPU usage, depending on the parameter values. Removing a block will decrease CPU usage.
+
Important: <q>bypassing</q> a block on the grid does <u>NOT</u> lower CPU usage. Switching a block between X/Y or changing channels may affect CPU usage, depending on the parameter values. Removing a block <u>will</u> decrease CPU usage.
  
There's a reason for the CPU ceiling and the way it works. [http://forum.fractalaudio.com/threads/why-is-there-a-limit-for-blocks-why-not-3-pitch-blocks-or-3-amp-or-whatever.70023/#post-859452 Explanation]
+
There's a reason for the CPU ceiling and the way it works. [http://forum.fractalaudio.com/threads/why-is-there-a-limit-for-blocks-why-not-3-pitch-blocks-or-3-amp-or-whatever.70023/#post-859452 Fractal's explanation]
  
 
Even an empty preset uses CPU, depending on things such as the input noise gate settings and overhead.
 
Even an empty preset uses CPU, depending on things such as the input noise gate settings and overhead.
  
<blockquote>“CPU usage number represents the amount of CPU dedicated to audio processing in real-time. We chose to display the actual limitation, rather than scale the number.[http://forum.fractalaudio.com/threads/ax8-cpu-power-limitations.114306/page-2#post-1456927] </blockquote>
+
<blockquote>
 +
'''FRACTAL AUDIO QUOTES'''
 +
<hr>
 +
 
 +
<blockquote>
 +
[http://forum.fractalaudio.com/threads/ax8-cpu-power-limitations.114306/page-2#post-1456927]
 +
CPU usage number represents the amount of CPU dedicated to audio processing in real-time. We chose to display the actual limitation, rather than scale the number.
 +
</blockquote>
 +
 
 +
<blockquote>
 +
[http://forum.fractalaudio.com/threads/amp-block-and-effects-dsp-percentages.136847/#post-1621816]
 +
Also on II the CPU usage increases when you play whereas on the III it more or less stays constant.
 +
</blockquote>
 +
 
 +
<blockquote>
 +
[https://thegearforum.com/threads/new-headrush-pedalboard-headrush-prime.1817/post-62024]
 +
Some of the amp models in the Axe-Fx III use 85% of the dedicated 1GHz DSP.
 +
</blockquote>
 +
 
 +
<blockquote>
 +
[https://forum.fractalaudio.com/threads/axe-fx-iii-firmware-23-00-release.199382/page-5#post-2483242]
 +
Fluctuations in CPU usage are normal and it has always been this way. Instruction cache hits/misses cause the amount of time to process the grid to vary each iteration.
 +
</blockquote>
 +
 
 +
<blockquote>
 +
[https://forum.fractalaudio.com/threads/fm9-firmware-version-6-00-public-beta-1.201261/post-2514385]
 +
CPU usage is not a static quantity. It bounces around a bit. The displayed value is the average.
 +
</blockquote>
 +
 
 +
<blockquote>
 +
[https://forum.fractalaudio.com/threads/fm9-firmware-version-6-00-public-beta-1.201261/post-2518582]
 +
All our products use real-time operating systems with multiple threads. Audio is the highest priority thread. The displayed CPU usage is the percentage of the CPU that the audio thread is using.
 +
 
 +
If the audio thread uses too much CPU then lower priority threads will starve. The lowest priority thread is the "idle task". This thread handles user input (button/knob events). If this thread is starved then the unit will appear unresponsive.
 +
</blockquote>
 +
 
 +
</blockquote>
 +
</blockquote>
  
 
CPU usage is also covered in the [[Owners_Manuals|Owners Manuals]].
 
CPU usage is also covered in the [[Owners_Manuals|Owners Manuals]].
 
<blockquote>"Also on II the CPU usage increases when you play whereas on the III it more or less stays constant." [http://forum.fractalaudio.com/threads/amp-block-and-effects-dsp-percentages.136847/#post-1621816] </blockquote>
 
  
 
=What happens when the CPU limit is approached=
 
=What happens when the CPU limit is approached=
  
When you approach the CPU limit of your processor, you’ll notice the GUI becoming very slow, while audio is still okay. That's because the audio signal gets the highest priority, above the GUI refresh rate.
+
When you approach the CPU limit of your processor, you’ll notice the GUI becoming slow, while audio is still okay. That's because the audio signal gets the highest priority, above the GUI refresh rate.
  
 
When a preset requires too much CPU, audio starts to crackle and a warning message may appear. The GUI may prevent you from adding blocks at this point.
 
When a preset requires too much CPU, audio starts to crackle and a warning message may appear. The GUI may prevent you from adding blocks at this point.
  
<blockquote>(Axe-Fx Standard/Ultra) “The audio processing is the highest priority thread. When there is time left the GUI thread is run. If CPU usage is high there simply isn't enough time to run the GUI at the normal refresh rate so the thread reduces the refresh rate.” [https://forum.fractalaudio.com/threads/interface-sluggish-when-cab-sims-active.29977/post-435201]</blockquote>
+
High CPU usage doesn't damage anything.
  
<blockquote>(Axe-Fx II) “The CPU simply monitors the time between frame interrupts and if it predicts it doesn't have enough cycles left to process the next effect in the grid it aborts and flashes a warning." [http://forum.fractalaudio.com/threads/cpu-at-overload.56751/#post-712983] </blockquote>
+
<blockquote>
 +
'''FRACTAL AUDIO QUOTES'''
 +
<hr>
  
<blockquote>(Axe-Fx II) "Audio processing is the highest priority. Once you exceed 90% that remaining CPU is divided up between the display, expression pedals, MIDI, etc., etc. Something has to give." [http://forum.fractalaudio.com/threads/pedals-lagging-when-cpu-is-around-92.75320/#post-920394] </blockquote>
+
Axe-Fx III:
 +
<blockquote>
 +
[https://forum.fractalaudio.com/threads/axe-fx-iii-firmware-release-version-19-08.183948/post-2264240]
 +
If your CPU usage is high the display may not update as rapidly due to thread starvation. This is especially true right after bootup due to background tasks running.
 +
</blockquote>
  
<blockquote>(Axe-Fx II) "The audio will always switch quickly. The display may take a while to switch since the audio processing takes priority. If CPU usage is high the display will take a little while to update." [http://forum.fractalaudio.com/threads/does-anyone-else-have-lag-when-preset-switching-18b.97242/#post-1167213] </blockquote>
+
<blockquote>
 +
[https://forum.fractalaudio.com/threads/can-the-extra-10-dsp-improve-virtual-capo.190219/post-2360988]
 +
As you exceed 85-90% resources start to become critical. That 10-15% has to get divided up among all the lower priority threads: USB, display, controllers, foot controller(s), LED, etc., etc. as well as pitch detection. Pitch detection is a higher priority thread but you can't get blood from a stone.
 +
</blockquote>
  
<blockquote>(Axe-Fx II) "The LCD is low priority. If CPU usage is high then the screen refresh rate drops because priority is given to the audio threads." [http://forum.fractalaudio.com/threads/having-screen-issues.116120/#post-1388090] </blockquote>
+
<blockquote>
 +
[https://forum.fractalaudio.com/threads/axefx-iii-dsp-fried.173301/post-2097550]
 +
The DSP won't get damaged if it overheats, it will just stop working. I've yet to see a unit overheat. Our products are overdesigned.
 +
</blockquote>
  
<blockquote>"If your CPU usage is high the display may not update as rapidly due to thread starvation. This is especially true right after bootup due to background tasks running." [https://forum.fractalaudio.com/threads/axe-fx-iii-firmware-release-version-19-08.183948/post-2264240]</blockquote>
+
'''PREVIOUS GENERATION QUOTES'''
 +
<hr>
  
High CPU usage doesn't the damage anything.
+
Axe-Fx II:
 +
<blockquote>
 +
[http://forum.fractalaudio.com/threads/cpu-at-overload.56751/#post-712983]
 +
The CPU simply monitors the time between frame interrupts and if it predicts it doesn't have enough cycles left to process the next effect in the grid it aborts and flashes a warning.
 +
</blockquote>
  
<blockquote>"The DSP won't get damaged if it overheats, it will just stop working. I've yet to see a unit overheat. Our products are overdesigned." [https://forum.fractalaudio.com/threads/axefx-iii-dsp-fried.173301/post-2097550]</blockquote>
+
<blockquote>
 +
[http://forum.fractalaudio.com/threads/pedals-lagging-when-cpu-is-around-92.75320/#post-920394]
 +
Audio processing is the highest priority. Once you exceed 90% that remaining CPU is divided up between the display, expression pedals, MIDI, etc., etc. Something has to give.
 +
</blockquote>
 +
 
 +
<blockquote>
 +
[http://forum.fractalaudio.com/threads/does-anyone-else-have-lag-when-preset-switching-18b.97242/#post-1167213]
 +
The audio will always switch quickly. The display may take a while to switch since the audio processing takes priority. If CPU usage is high the display will take a little while to update.
 +
</blockquote>
 +
 
 +
<blockquote>
 +
[http://forum.fractalaudio.com/threads/having-screen-issues.116120/#post-1388090]
 +
The LCD is low priority. If CPU usage is high then the screen refresh rate drops because priority is given to the audio threads.
 +
</blockquote>
 +
 
 +
Axe-Fx Standard/Ultra:
 +
<blockquote>
 +
[https://forum.fractalaudio.com/threads/interface-sluggish-when-cab-sims-active.29977/post-435201]
 +
The audio processing is the highest priority thread. When there is time left the GUI thread is run. If CPU usage is high there simply isn't enough time to run the GUI at the normal refresh rate so the thread reduces the refresh rate.
 +
</blockquote>
 +
</blockquote>
  
 
=CPU management=
 
=CPU management=
Line 51: Line 123:
 
CPU usage up to 80% is safe. Beyond that, the CPU meter on the hardware and in the editor will turn red as a warning and audio will be muted.
 
CPU usage up to 80% is safe. Beyond that, the CPU meter on the hardware and in the editor will turn red as a warning and audio will be muted.
  
The Delay resp. the Reverb blocks on the FM9 run in dedicated DSP cores. When viewing a Delay or Reverb effect editing GUI screen on the FM9 hardware, a CPU meter will appear on the display if the cpu usage moves past 75%. As with the primary effects core, the recommended maximum cpu use value is 80% to ensure best performance.
+
The Delay resp. the Reverb blocks on the FM9 run in dedicated DSP cores. When viewing a Delay or Reverb effect editing GUI screen on the FM9 hardware, a CPU meter will appear on the display if the CPU usage moves past 75%. As with the primary effects core, the recommended maximum CPU use value is 80% to ensure best performance.
  
Impulse responses (Cab block) are processed in an accelerator, apart from the Sharc+ cores.
+
Impulse responses in the Cab block are processed in an accelerator apart from the Sharc+ cores.
  
 
==FM3==
 
==FM3==
Line 64: Line 136:
  
 
When importing presets created on the Axe-Fx III or FM9, Reverb is automatically set to Economic Quality, and IRs are set to Standard resolution.
 
When importing presets created on the Axe-Fx III or FM9, Reverb is automatically set to Economic Quality, and IRs are set to Standard resolution.
 +
 +
==VP4==
 +
 +
A meter in the upper right shows the current CPU usage. To ensure smooth performance, a limit of about 80% is enforced, leaving required processing power in reserve. If this limit is exceeded, the VP4 will switch to bypass mode and display a warning: “CPU LIMIT: Bypassed.”
  
 
==FX8 and AX8==
 
==FX8 and AX8==
Line 79: Line 155:
 
Tip: when building presets, always add the most CPU-hungry effects first.
 
Tip: when building presets, always add the most CPU-hungry effects first.
  
<blockquote>(AX8) "If I am reading these posts correctly, it sounds as though folks seem to think that an effects CPU usage is a static thing. That is, if I use a compressor in my preset it uses X% of the CPU. This is not actually how it works. CPU usage fluctuates as you use the device. That is, depending on what an effect is doing, or how it is configured, the CPU usage will vary dynamically. The AX8 monitors and manages the CPU usage. This is done for two reasons: (1) If CPU load gets too high, then the audio is effected (2) If CPU load gets too high, the front panel (footswitches primarily) is adversely effected. The performance of preset, scenes, effect bypass, etc. starts to become effected. A lot of development time has been put into reducing these effects, but it is impossible to eliminate them entirely. Rather than just allow the AX8 to behave in an undesirable fashion, the unit manages the CPU load by disabling effects. The biggest offenders are disabled first in an effort to reduce the number of disabled effects. This typically means the REVERB block is the first effect disabled. The trick is to build your presets in a manner in which this does not happen when you are playing live. In other words, test your presets out and give yourself some head room for last minute changes whenever possible." [http://forum.fractalaudio.com/threads/running-out-of-power-bug.116145/page-2#post-1388196] </blockquote>
+
<blockquote>
 +
'''PREVIOUS GENERATION QUOTES'''
 +
<hr>
 +
 
 +
AX8:
 +
<blockquote>
 +
[http://forum.fractalaudio.com/threads/ax8-cpu-limitation-amount.124809/#post-1484682]
 +
As you all know, lots of different parameters, controllers, etc. can cause variation in your CPU utilization. Also, playing your guitar will bump your CPU as well. So, if you are looking at the utilization while your input is quiet, then you should plan on a 2% - 3% increase when you start playing. The cutoff for CPU is 90%. This cutoff prevents audio glitches, and provides enough CPU for low priority activities. While there are no hard and fast rules, due the dynamic nature of the AX8, I typically try to keep utilization below 87% - 88%. Even then if you're not careful, you can find ways to push up the CPU enough to disable an effect.
  
<blockquote>(AX8) "Lots of different parameters, controllers, etc. can cause variation in your CPU utilization. Also, playing your guitar will bump your CPU as well. So, if you are looking at the utilization while your input is quiet, then you should plan on a 2% - 3% increase when you start playing. The cutoff for CPU is 90%. This cutoff prevents audio glitches, and provides enough CPU for low priority activities." [http://forum.fractalaudio.com/threads/ax8-cpu-limitation-amount.124809/#post-1484682]</blockquote>
+
In general, I try to use my presets in all their various configurations while in rehearsal or at home. It's always wise to ensure you're not going to have CPU issues on stage.
 +
</blockquote>
  
=USB and CPU usage=
+
<blockquote>
 +
[http://forum.fractalaudio.com/threads/running-out-of-power-bug.116145/page-2#post-1388196]
 +
If I am reading these posts correctly, it sounds as though folks seem to think that an effects CPU usage is a static thing. That is, if I use a compressor in my preset it uses X% of the CPU. This is not actually how it works. CPU usage fluctuates as you use the device. That is, depending on what an effect is doing, or how it is configured, the CPU usage will vary dynamically. The AX8 monitors and manages the CPU usage. This is done for two reasons:
  
[[image:usb.png|link=|100px]]
+
1) If CPU load gets too high, then the audio is effected.<br>
 +
2) If CPU load gets too high, the front panel (footswitches primarily) is adversely effected. The performance of preset, scenes, effect bypass, etc. starts to become effected.
  
Connecting via USB will increase CPU utilization. This is by design. If a preset uses much CPU, you may run into CPU overload problems when connecting the hardware to a computer through USB. [http://forum.fractalaudio.com/threads/usb-connection-raises-preset-cpu-utilization-by-5.41013/#post-551466] [http://forum.fractalaudio.com/threads/global-cab-sim-and-cpu.40246/#post-573202]
+
A lot of development time has been put into reducing these effects, but it is impossible to eliminate them entirely. Rather than just allow the AX8 to behave in an undesirable fashion, the unit manages the CPU load by disabling effects. The biggest offenders are disabled first in an effort to reduce the number of disabled effects. This typically means the REVERB block is the first effect disabled.
  
This does not apply to the Axe-Fx III, FM9 and FM3, because USB traffic is handled by a dedicated USB processor.
+
The trick is to build your presets in a manner in which this does not happen when you are playing live. In other words, test your presets out and give yourself some head room for last minute changes whenever possible.</blockquote>
 +
</blockquote>
 +
</blockquote>
  
<blockquote>“The Axe-Fx III USB audio does not add CPU usage. It's handled by a separate processor.” [http://forum.fractalaudio.com/threads/how-many-users-are-using-the-axe-iii-as-an-audio-interface.140900/#post-1669577]</blockquote>
+
=USB and CPU usage=
  
<blockquote>(FM9) "USB is handled by a separate microcontroller (the same micro that the Axe-Fx III uses)." [https://forum.fractalaudio.com/threads/announcing-the-new-fm9-amp-modeler-fx-processor.176122/post-2142260]</blockquote>
+
On previous generation devices, connecting via USB increased CPU utilization, by design.[https://forum.fractalaudio.com/threads/global-cab-sim-and-cpu.40246/post-573202]
  
=CPU usage per block and effect type=
+
This does not apply to the current generation, because USB traffic is handled by a dedicated USB processor.
  
* [http://www.roxxxtar.com/ax8-cpu-usage-chart RoxXxtar's CPU usage chart for the AX8]
+
<blockquote>
* [http://forum.fractalaudio.com/threads/cpu-usage-chart.148274/#post-1753887 Roby Rocks' CPU usage chart for the AX8 (firmware 10.01)]
+
'''FRACTAL AUDIO QUOTES'''
 +
<hr>
 +
 
 +
Axe-FX III:
 +
<blockquote>
 +
[http://forum.fractalaudio.com/threads/how-many-users-are-using-the-axe-iii-as-an-audio-interface.140900/#post-1669577]
 +
The Axe-Fx III USB audio does not add CPU usage. It's handled by a separate processor.
 +
</blockquote>
 +
 
 +
FM9:
 +
<blockquote>
 +
[https://forum.fractalaudio.com/threads/announcing-the-new-fm9-amp-modeler-fx-processor.176122/post-2142260]
 +
USB is handled by a separate microcontroller (the same micro that the Axe-Fx III uses).
 +
</blockquote>
 +
</blockquote>
  
 
=CPU usage management=
 
=CPU usage management=
  
* '''Effect blocks''' — the number of effect blocks in the preset has a great impact on CPU usage. Note that a bypassed block uses the same CPU capacity as when engaged.
+
The number of effect blocks in the preset has a great impact on CPU usage. Note that a bypassed block uses the same CPU capacity as when engaged.
* '''Amp block'''
+
 
** adding a second Amp block in an Axe-Fx preset increases CPU usage slightly (one DSP is dedicated to Amp blocks).
+
; Amp block :
** using a Modifier on Input Drive increases CPU usage, because it'll constantly recalculate the network.
+
* Adding a second Amp block in an Axe-Fx preset increases CPU usage just slightly because one DSP is dedicated to Amp blocks.
** using OUT COMP and/or SPEAKER COMP increases CPU usage.
+
* Using a Modifier on Gain in the Amp block increases CPU usage because it'll constantly recalculate the network.
* '''Cab block'''
+
* Using OUT COMP and/or SPEAKER COMP increases CPU usage.
** switching a Cab block to Mono and/or another resolution decreases CPU usage.
+
; Cab block :
** when using more than one external IR in a mono rig: mix them into a single IR to avoid having to use a stereo Cab or two mono Cabs.
+
* Switching a Cab block to Mono and/or another resolution decreases CPU usage.
** use a Normal/Standard IR instead of Ultra-Res of FullRes.
+
* When using more than one external IR in a mono rig, mix them into a single IR to avoid having to use a stereo Cab or two mono Cabs.
** shorten an IR with the IR LENGTH parameter to decrease CPU usage.
+
* Use a Normal/Standard IR instead of Ultra-Res of FullRes.
** muting IRs decreases CPU usage.
+
* Shorten an IR with the IR LENGTH parameter to decrease CPU usage.
** disable Room Reverb decreases CPU usage.
+
* Muting IRs decreases CPU usage.
** Preamp simulation uses more CPU in High Quality mode than in Economy mode.
+
* Disable Room Reverb to decrease CPU usage.
* '''Chorus''' — use less voices to decrease CPU usage.
+
* Preamp simulation in the Delay block uses more CPU in High Quality mode than in Economy mode.
* '''Compressor'''
+
; Chorus : Use fewer voices to decrease CPU usage.
** Fast RMS detector type in the Studio Comp uses less CPU than the other types.
+
; Compressor :
** Pedal types use less CPU than others.
+
* The Fast RMS detector type in the Studio Comp uses less CPU than the other types.
** Auto Attack/Release uses more CPU.
+
* Pedal types use less CPU than others.
* '''Controllers''' — reduce the number of attached controllers to decrease CPU usage.
+
* Auto Attack/Release uses more CPU.
* '''Delay block'''
+
; Controllers : Reduce the number of attached controllers to decrease CPU usage.
** Diffusion increases CPU usage.
+
; Delay block :
** Disabling the compander saves CPU.
+
* Diffusion increases CPU usage.
* '''Drive block''' — set Clip Type to Numb to save CPU usage.
+
* Disabling the compander saves CPU.
* '''Effect types''' — some effect types use more CPU than others. Example: Studio Compressor type versus Pedal, and Hall versus Spring Reverb.
+
; Drive block : Set Clip Type to Null to save CPU usage.
* '''Filter''' — use a lower Order and Q to decrease CPU usage.
+
; Effect types : Some effect types use more CPU than others. Example: Studio Compressor type versus Pedal, and Hall versus Spring Reverb.
* '''Input''' — switching off the noise gate in Input to decrease CPU usage.
+
; Filter : Use a lower Order and Q to decrease CPU usage.
* '''Looper''' — disable the global Looper in the FX8 to decrease CPU usage.
+
; Input : Switching off the noise gate in Input decreases CPU usage.
* '''Phaser''' — use less stages to decrease CPU usage.
+
; Looper : Disable the global Looper in the FX8 to decrease CPU usage.
* '''Pitch''' — the Pitch block in the FX8 and AX8 has an Economy mode that decreases CPU usage.
+
; Phaser : Use less stages to decrease CPU usage.
* '''Plex Delay''' — use less delays to decrease CPU usage.
+
; Pitch : The Pitch block in the FX8 and AX8 has an Economy mode that decreases CPU usage.
* '''Reverb'''
+
; Plex Delay : Use less delays to decrease CPU usage.
** Lower Quality to decrease CPU usage.
+
; Reverb :
** Decrease Echo Density to decrease CPU usage.
+
* Lower Quality to decrease CPU usage.
** Switch to Spring Reverb.
+
* Decrease Echo Density to decrease CPU usage.
* '''Shunts''' — minimize shunt blocks to decrease CPU usage. If you use parallel paths, try to merge the paths instead of routing them all the way to the end separately.
+
* Switch to Spring Reverb. Note that CPU varies among the Spring types.
* '''Synth''' — turn off voices which you don't use to decrease CPU usage.
+
; Shunts : Minimize shunt blocks to decrease CPU usage. If you use parallel paths, try to merge the paths instead of routing them all the way to the end separately. Also, test using the Send and Return blocks to see if CPU % is reduced.
* '''USB''' — connecting USB increases CPU usage (not on Axe-Fx III and FM3).
+
; Synth : Turn off voices which you don't use to decrease CPU usage.
* '''X/Y or channels''' — use these instead of two instances of an effect block to decrease CPU usage.
+
; USB : Connecting USB increases CPU usage (not on Axe-Fx III and FM9).
* '''Global EQ''' — disable these to save some CPU.
+
; X/Y or channels : Use these instead of multiple instances of an effect block to decrease CPU usage.
 +
; Global EQ : Disable to save some CPU.
 +
; Gapless switching: Disable to save some CPU.
  
[https://forum.fractalaudio.com/threads/tips-for-taming-the-cpu.60723/ More tips from forum members]
+
More information:
  
[https://forum.fractalaudio.com/threads/wicked-wiki-3-decreasing-cpu-usage.49146/ Wicked Wiki article]
+
* [https://forum.fractalaudio.com/threads/tips-for-taming-the-cpu.60723/ tips from forum members]
 +
* [https://forum.fractalaudio.com/threads/wicked-wiki-3-decreasing-cpu-usage.49146/ Wicked Wiki article]
  
 
[[category:Axe-Fx2]]
 
[[category:Axe-Fx2]]
Line 150: Line 256:
 
[[category:FM3]]
 
[[category:FM3]]
 
[[category:FM9]]
 
[[category:FM9]]
 +
[[category:VP4]]
 
[[category:AX8]]
 
[[category:AX8]]
 
[[category:FX8]]
 
[[category:FX8]]
 
[[category:Sounds]]
 
[[category:Sounds]]
 
[[category:All]]
 
[[category:All]]

Latest revision as of 16:52, 20 October 2024

CPU usage

A preset takes up CPU cycles (CPU is used here as a synonym for DSP). The amount depends on the number of blocks, effect settings, controllers, overhead and more. You can check the current CPU usage percentage on the hardware and in the software editor.

Due to the power of the different processors in the hardware, the Axe-Fx II has more CPU available in presets than the AX8 and FX8, while the Axe-Fx III has much more CPU available than the Axe-Fx II, FM9, FM3 and VP4.

Important: bypassing a block on the grid does NOT lower CPU usage. Switching a block between X/Y or changing channels may affect CPU usage, depending on the parameter values. Removing a block will decrease CPU usage.

There's a reason for the CPU ceiling and the way it works. Fractal's explanation

Even an empty preset uses CPU, depending on things such as the input noise gate settings and overhead.

FRACTAL AUDIO QUOTES


[1] CPU usage number represents the amount of CPU dedicated to audio processing in real-time. We chose to display the actual limitation, rather than scale the number.

[2] Also on II the CPU usage increases when you play whereas on the III it more or less stays constant.

[3] Some of the amp models in the Axe-Fx III use 85% of the dedicated 1GHz DSP.

[4] Fluctuations in CPU usage are normal and it has always been this way. Instruction cache hits/misses cause the amount of time to process the grid to vary each iteration.

[5] CPU usage is not a static quantity. It bounces around a bit. The displayed value is the average.

[6] All our products use real-time operating systems with multiple threads. Audio is the highest priority thread. The displayed CPU usage is the percentage of the CPU that the audio thread is using.

If the audio thread uses too much CPU then lower priority threads will starve. The lowest priority thread is the "idle task". This thread handles user input (button/knob events). If this thread is starved then the unit will appear unresponsive.

CPU usage is also covered in the Owners Manuals.

What happens when the CPU limit is approached

When you approach the CPU limit of your processor, you’ll notice the GUI becoming slow, while audio is still okay. That's because the audio signal gets the highest priority, above the GUI refresh rate.

When a preset requires too much CPU, audio starts to crackle and a warning message may appear. The GUI may prevent you from adding blocks at this point.

High CPU usage doesn't damage anything.

FRACTAL AUDIO QUOTES


Axe-Fx III:

[7] If your CPU usage is high the display may not update as rapidly due to thread starvation. This is especially true right after bootup due to background tasks running.

[8] As you exceed 85-90% resources start to become critical. That 10-15% has to get divided up among all the lower priority threads: USB, display, controllers, foot controller(s), LED, etc., etc. as well as pitch detection. Pitch detection is a higher priority thread but you can't get blood from a stone.

[9] The DSP won't get damaged if it overheats, it will just stop working. I've yet to see a unit overheat. Our products are overdesigned.

PREVIOUS GENERATION QUOTES


Axe-Fx II:

[10] The CPU simply monitors the time between frame interrupts and if it predicts it doesn't have enough cycles left to process the next effect in the grid it aborts and flashes a warning.

[11] Audio processing is the highest priority. Once you exceed 90% that remaining CPU is divided up between the display, expression pedals, MIDI, etc., etc. Something has to give.

[12] The audio will always switch quickly. The display may take a while to switch since the audio processing takes priority. If CPU usage is high the display will take a little while to update.

[13] The LCD is low priority. If CPU usage is high then the screen refresh rate drops because priority is given to the audio threads.

Axe-Fx Standard/Ultra:

[14] The audio processing is the highest priority thread. When there is time left the GUI thread is run. If CPU usage is high there simply isn't enough time to run the GUI at the normal refresh rate so the thread reduces the refresh rate.

CPU management

Axe-Fx III

CPU usage up to 80% is safe. Beyond that, the CPU meter on the hardware and in the editor will turn red as a warning.

FM9

CPU usage up to 80% is safe. Beyond that, the CPU meter on the hardware and in the editor will turn red as a warning and audio will be muted.

The Delay resp. the Reverb blocks on the FM9 run in dedicated DSP cores. When viewing a Delay or Reverb effect editing GUI screen on the FM9 hardware, a CPU meter will appear on the display if the CPU usage moves past 75%. As with the primary effects core, the recommended maximum CPU use value is 80% to ensure best performance.

Impulse responses in the Cab block are processed in an accelerator apart from the Sharc+ cores.

FM3

CPU usage up to 80% is safe. If CPU usage gets too high, the audio will be muted and a warning appears.

The Delay blocks on the FM3 share a core DSP with amp modeling.

Impulse responses (Cab block) are processed in an accelerator, apart from the Sharc+ cores.

When importing presets created on the Axe-Fx III or FM9, Reverb is automatically set to Economic Quality, and IRs are set to Standard resolution.

VP4

A meter in the upper right shows the current CPU usage. To ensure smooth performance, a limit of about 80% is enforced, leaving required processing power in reserve. If this limit is exceeded, the VP4 will switch to bypass mode and display a warning: “CPU LIMIT: Bypassed.”

FX8 and AX8

AX8.jpg FX8-mk2-top.jpg

The AX8 and FX8 allow you to put blocks into the grid that will push utilization above 88% (when not playing). When taking overhead into account, the real CPU ceiling is 90% (sustained).

When CPU usage gets above 90%, the FX8 and AX8 will automatically disable blocks. The firmware will look for effects which are the biggest offenders, starting with the last edited one. If disabling the last edited one does not reduce the load enough, big offenders are next. Usually the Reverb block (especially when set to High Quality) is the first to go. Switching Reverb to Normal Quality may help to regain CPU power.

When an effect is automatically disabled, audio passes through as if it were a shunt. If it’s a block that is placed in a parallel row, this can cause a signal level issue.

Note about the Pitch block: the Pitch block in the AX8 and FX8 is very sensitive to CPU load, far before the CPU limit is reached. So try to keep CPU usage low (below 60 - 70%) when using pitch effects.

Tip: when building presets, always add the most CPU-hungry effects first.

PREVIOUS GENERATION QUOTES


AX8:

[15] As you all know, lots of different parameters, controllers, etc. can cause variation in your CPU utilization. Also, playing your guitar will bump your CPU as well. So, if you are looking at the utilization while your input is quiet, then you should plan on a 2% - 3% increase when you start playing. The cutoff for CPU is 90%. This cutoff prevents audio glitches, and provides enough CPU for low priority activities. While there are no hard and fast rules, due the dynamic nature of the AX8, I typically try to keep utilization below 87% - 88%. Even then if you're not careful, you can find ways to push up the CPU enough to disable an effect.

In general, I try to use my presets in all their various configurations while in rehearsal or at home. It's always wise to ensure you're not going to have CPU issues on stage.

[16] If I am reading these posts correctly, it sounds as though folks seem to think that an effects CPU usage is a static thing. That is, if I use a compressor in my preset it uses X% of the CPU. This is not actually how it works. CPU usage fluctuates as you use the device. That is, depending on what an effect is doing, or how it is configured, the CPU usage will vary dynamically. The AX8 monitors and manages the CPU usage. This is done for two reasons:

1) If CPU load gets too high, then the audio is effected.
2) If CPU load gets too high, the front panel (footswitches primarily) is adversely effected. The performance of preset, scenes, effect bypass, etc. starts to become effected.

A lot of development time has been put into reducing these effects, but it is impossible to eliminate them entirely. Rather than just allow the AX8 to behave in an undesirable fashion, the unit manages the CPU load by disabling effects. The biggest offenders are disabled first in an effort to reduce the number of disabled effects. This typically means the REVERB block is the first effect disabled.

The trick is to build your presets in a manner in which this does not happen when you are playing live. In other words, test your presets out and give yourself some head room for last minute changes whenever possible.

USB and CPU usage

On previous generation devices, connecting via USB increased CPU utilization, by design.[17]

This does not apply to the current generation, because USB traffic is handled by a dedicated USB processor.

FRACTAL AUDIO QUOTES


Axe-FX III:

[18] The Axe-Fx III USB audio does not add CPU usage. It's handled by a separate processor.

FM9:

[19] USB is handled by a separate microcontroller (the same micro that the Axe-Fx III uses).

CPU usage management

The number of effect blocks in the preset has a great impact on CPU usage. Note that a bypassed block uses the same CPU capacity as when engaged.

Amp block 
  • Adding a second Amp block in an Axe-Fx preset increases CPU usage just slightly because one DSP is dedicated to Amp blocks.
  • Using a Modifier on Gain in the Amp block increases CPU usage because it'll constantly recalculate the network.
  • Using OUT COMP and/or SPEAKER COMP increases CPU usage.
Cab block 
  • Switching a Cab block to Mono and/or another resolution decreases CPU usage.
  • When using more than one external IR in a mono rig, mix them into a single IR to avoid having to use a stereo Cab or two mono Cabs.
  • Use a Normal/Standard IR instead of Ultra-Res of FullRes.
  • Shorten an IR with the IR LENGTH parameter to decrease CPU usage.
  • Muting IRs decreases CPU usage.
  • Disable Room Reverb to decrease CPU usage.
  • Preamp simulation in the Delay block uses more CPU in High Quality mode than in Economy mode.
Chorus 
Use fewer voices to decrease CPU usage.
Compressor 
  • The Fast RMS detector type in the Studio Comp uses less CPU than the other types.
  • Pedal types use less CPU than others.
  • Auto Attack/Release uses more CPU.
Controllers 
Reduce the number of attached controllers to decrease CPU usage.
Delay block 
  • Diffusion increases CPU usage.
  • Disabling the compander saves CPU.
Drive block 
Set Clip Type to Null to save CPU usage.
Effect types 
Some effect types use more CPU than others. Example: Studio Compressor type versus Pedal, and Hall versus Spring Reverb.
Filter 
Use a lower Order and Q to decrease CPU usage.
Input 
Switching off the noise gate in Input decreases CPU usage.
Looper 
Disable the global Looper in the FX8 to decrease CPU usage.
Phaser 
Use less stages to decrease CPU usage.
Pitch 
The Pitch block in the FX8 and AX8 has an Economy mode that decreases CPU usage.
Plex Delay 
Use less delays to decrease CPU usage.
Reverb 
  • Lower Quality to decrease CPU usage.
  • Decrease Echo Density to decrease CPU usage.
  • Switch to Spring Reverb. Note that CPU varies among the Spring types.
Shunts 
Minimize shunt blocks to decrease CPU usage. If you use parallel paths, try to merge the paths instead of routing them all the way to the end separately. Also, test using the Send and Return blocks to see if CPU % is reduced.
Synth 
Turn off voices which you don't use to decrease CPU usage.
USB 
Connecting USB increases CPU usage (not on Axe-Fx III and FM9).
X/Y or channels 
Use these instead of multiple instances of an effect block to decrease CPU usage.
Global EQ 
 Disable to save some CPU.
Gapless switching
Disable to save some CPU.

More information: