ok totally nerding out with pipewire now. turns out you can exactly measure the io latency introduced by specific programs by using jack_iodelay. I created a loopback program with cpal in rust, it seems to be adding tons of latency for some reason. had no idea linux had powerful tools like this.
https://cdn.jb55.com/s/5f243a138c6093a1.png