Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Linux

Reply
 
Thread Tools Display Modes
Old 04-03-2024, 10:23 AM   #1
777funk
Human being with feelings
 
Join Date: Jun 2011
Posts: 351
Default Round Trip Latency. TWICE as long on Linux. Why is this?

I did some testing today and noticed quite a bit less live monitoring latency on Win XP vs Ubuntu. It was so noticeable that I decided to measure it.

In Linux, I generally am not happy until I reach 128 samples. I was doing some testing in XP and noticed that even 512 was barely noticeable.

When I actually measure, I can see why. 512 in XP is 27ms round trip and nearly twice that in Linux.

Any ideas what could be going wrong to cause this?
Attached Images
File Type: jpg win_xp_512.JPG (138.2 KB, 39 views)
File Type: png 512_linux_Screenshot_2024-04-03_12-06-03.png (146.8 KB, 37 views)
777funk is offline   Reply With Quote
Old 04-03-2024, 12:48 PM   #2
axel_ef
Human being with feelings
 
axel_ef's Avatar
 
Join Date: Jan 2007
Location: Erfurt
Posts: 789
Default

Did you make a test with ALSA?
axel_ef is offline   Reply With Quote
Old 04-04-2024, 08:00 PM   #3
777funk
Human being with feelings
 
Join Date: Jun 2011
Posts: 351
Default

No I didn't since it doesn't work well with Firewire. I've had to use Jack.
777funk is offline   Reply With Quote
Old 04-05-2024, 12:18 AM   #4
Xasman
Human being with feelings
 
Xasman's Avatar
 
Join Date: Jun 2009
Posts: 680
Default

Quote:
Originally Posted by 777funk View Post
No I didn't since it doesn't work well with Firewire. I've had to use Jack.
Jack sits on top of ALSA in the Linux audio stack and as a result adds latency (as does Pulse Audio). If you need minimum latency then using ALSA direct will always yield better results. If your interface doesn't work well with ALSA then it may be time to consider getting a more compatible one.
Xasman is online now   Reply With Quote
Old 04-12-2024, 02:09 PM   #5
777funk
Human being with feelings
 
Join Date: Jun 2011
Posts: 351
Default

Quote:
Originally Posted by Xasman View Post
Jack sits on top of ALSA in the Linux audio stack and as a result adds latency (as does Pulse Audio). If you need minimum latency then using ALSA direct will always yield better results. If your interface doesn't work well with ALSA then it may be time to consider getting a more compatible one.
Interesting. So Jack adds latency. I had no idea.
EDIT: According to Jack themselves, Jack does not add any latency (as in zero):
https://jackaudio.org/faq/no_extra_latency.html

I like Jack since it marks Xruns and I can monitor how well audio is running for hours or days without me sitting there listening or testing the system. I like this since it proves reliability.

Can Pipewire be used without adding latency?
777funk is offline   Reply With Quote
Old 04-13-2024, 01:05 PM   #6
Xasman
Human being with feelings
 
Xasman's Avatar
 
Join Date: Jun 2009
Posts: 680
Default

Quote:
Originally Posted by 777funk View Post
Interesting. So Jack adds latency. I had no idea.
EDIT: According to Jack themselves, Jack does not add any latency (as in zero):
https://jackaudio.org/faq/no_extra_latency.html
All I can say is that when I last ran a latency check between ALSA and JACK, JACK reported higher latency than ALSA in REAPER (admittedly, that was some time ago on an older machine - I don't even have JACK installed on my current computer). Perhaps the additional latency could have been due to the extra CPU cycles needed by JACK, I don't know. There's also a thread on this forum where others reported similar results: https://forum.cockos.com/showthread.php?t=209268

Quote:
Originally Posted by 777funk View Post
...Can Pipewire be used without adding latency?
I use pipewire-alsa and that doesn't seem to add any latency here.
Xasman is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:35 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.