This is not strictly a VCV Rack issue but I find myself at a crossroads. In some music apps like Carla using a single plugin like Emergence the DSP is over 60% and the Xruns/audio glitches are many. I’ve adjusted Jack’s buffer sizes but to no avail. My soundcard is just the onboard Asus motherboard’s.
So I’m thinking my PC’s specs are below par (Intel Core i7 8th Gen, 16GB RAM). I’m toying of the idea to build a new PC box with a GPU and running Linux but use either a dedicated USB sound card - Focusrite - or a PCIe soundcard from Sound Blaster.
Would the use of such a dedicated sound card GREATLY help against DSP loads and Xruns or am I being too naive? I don’t want to spends funds and find I still have Xruns etc.
Run with the right scheduler/governor (performance) - error #1
I don’t think exchanging onboard DAC for pci-e or usb DAC will do much for your XRUN errors. Sound quality will probably improve, but you will still get underruns (XRUNs) if your system isn’t configured right.
Don’t know what distro you’re on etc. - tell us more.
It’s been a while since I looked at this, but here goes.
on the first pic - governor - should say “performance”
on the second pic, I would have “realtime” checked - and run on a rt patched kernel. You could probably find a kernel that is better suited than 6.1.4-default (something with rt and/or preempt)
also on the second pic, I would have realtime priority to around 85.
I would hpet as clock source - HPET has to be configure in the kernel - don’t know if it’s in the default kernel (High Precision Event Timers)
on the third pic, I would have a smaller buffer size (256-ish)
Well well well, I did some basic adjustments as you suggested - realtime set with prio 85, cpu performance, hpet set and 256 buffer - and the patch I had in Carla hasn’t produced any xruns (yet) and the DSP load went from ~50% to ~20%.
I’m very much indebted - thank you. But I’ll still read the refs you linked me.
Well this is embarrassing, Carla worked fine with the previous settings but it seems to cause an abhorrent clicking sound in VCV. The only way to clear that sound is to reboot the PC then run VCV first.
I spent the afternoon reading the arch wiki and other articles and am slowly coming to the conclusion that Pipewire is the way to go. I upgraded an old laptop with Pipewire and it seems to behave. I had avoided Pipewire for a long time as I "thought’ I was comfortable with Pulseaudio and Jack whereas Pipewire had teething issues.
I had a bit of a “sit down and RTFM” over the last day or so. It seems openSUSE tumbleweed installed pipewire by default last year but did not disable pulseaudio and jackd. My PC was running all 3 systems and causing issues.
After manually cleaning up pulseudio and jackd and making sure that pipewire - with the appropriate modules - is the only running system, all my audio issues seemed to vanish. Even audacity and LMMS started working again.
I was a great writeup, but there is not a singe mention of pipewire there - many (edit: or not that many, Fedora 37 at least, Ubuntu 22.04 partly … ) distros changed to pipewire as default now. I’m pleased to see that @therealkitman got his box playing music again.
I just update to Kubuntu 22.04 and seems like it its replacing pulse audio (and jack) that is very good , now I need to learn how to use and route the audio between application, then actualize the guide, thanks