Topic: Linux latency with pipewire?
Hi all!
I just downloaded the pianoteq demo. Liking the sound a lot and really interested to play more to see if I can improve my pedaling for example.
But, usual story now I'm immediately obsessed with latency ;-)
This is what I've done so far:
- First I made sure I'm in group `audio` and that my `/etc/security/limits.conf` is configured per `README_LINUX.txt`. That got rid of warnings on the command line about that so I'm sure that worked.
- Checked the performance tab. All seems good: performance index 127, orange audio load line pinned low at the bottom of the chart, blue performance steady and pinned at the top of the chart. Just using standard LTS 6.1 kernel, not low latency kernel. Because of this I've not attempted to disable CPU frequency throttling.
- Roland FP-30 plugged in direct to desktop USB 3 port
- Cheap "RoHS" external USB audio "card" plugged in to desktop USB 3 port, wired headphones connected direct to that
- I'm on arch linux running pipewire, so my first try was with output "PipeWire Sound Server". I have no way to measure but it feels noticeable latency, I'm guessing very roughly 100 ms?
- Having installed pipewire-jack, and setting pianoteq to use JACK, the latency is much worse (250 ms?). Going back to ALSA again the latency reduces to what it was originally.
- I don't see pianoteq listing any audio outputs whose names end with 'Direct hardware device without any conversion' as README_LINUX.txt suggests might be there
- Also tried a few other outputs semi-randomly, without success in reducing latency so far
Any pointers here?
Edit: also found that with a web browser running, pianoteq couldn't connect to "USB Audio CODEC, USB Audio; Front output / input". Sounded promising (maybe that's a more direct connection somehow?), but no: with the browser not running, pianoteq can connect but the latency sounds the same using that output.