falkTX / Carla

Audio plugin host
https://kx.studio/carla
1.55k stars 144 forks source link

[SOLVED] Carla High CPU load. #1829

Open juanpc2018 opened 8 months ago

juanpc2018 commented 8 months ago

Carla High CPU load, strange 100% cpu peaks with 128 buffer size, lots of Xruns. windows VSTHost works ok at 64 bufffer, i have to measure real AD/DA latency with an Oscilloscope, or another soundcard/PC.

$ cpupower-gui

performance mode all cores, Kubuntu needs more tweak optimizations.

its a 3 side problem: Kubuntu Plasma Desktop Graphics create interrupts even PulseAudio has a renice level of -11, intel graphics are Not true GPU, need to test with another GPU. PulseAudio Jack Sink | Source plugins are CPU hungry, VLC 3.0.16 Ventinari from aptitude does Not work with PulseAudio set to 48Khz,

$ cat /etc/pulse/daemon.conf

VLC 3.0.16 only works at 44.1Khz, Snap VLC 3.0.19 works ok at 48Khz or 96Khz, BUT... there is No vlc-plugin-jack for Snap, only for aptitude. Snap VLC cannot detect plugins for aptitude, VLC runs in PulseAudio Output. Snap VLC + PulseAudio output + PulseAudio Jack plugin, eats too much CPU, even with Resampling disabled. VLC apt 3.0.18.4 does Not support LTS release, deb package does Not install in 22.04.1 LTS, dependencies Not meet. etc...

Xine is an alternative to VLC, works ok at 48Khz, has direct Jack output, until there is a vlc-plugin-jack for Snap, or VLC snap can detect plugins for VLC aptitude.

SOLLUTION = install a RT kernel, like liquorix *buntu 22.04.1 LTS generic Kernel is Not for low latency audio. Carla OpenGL Activated, Xruns minimized 1/10 at 128 buffer, more tests needed.