I recently measured it with my phone's camera in slow motion mode. The system is an AMD Ryzen 1800X with AMD R9 280x GPU, KDE Plasma with KWin window manager in compositing mode. Key press to screen output latency was ~33 millseconds (90 fps recording, so increments of 11) in KWrite. The computer feels plenty responsive with that latency, and I hate latency... It is a full stack real world result - for comparison pur…
How are you measuring from key activation?
Desktop compositing latency is real
61–70 of 306 posts
Re: Desktop compositing latency is real
#62This is also why picking a good monitor is important for software development. Some monitors have tons of input lag (60-70ms) and that's the time it takes for you to see what you're typing to reach the display. This also includes the time it takes to see you move your mouse cursor too. I did a huge write up on picking a good monitor for development which can be found at: https://nickjanetakis.com/blog/how-to-pick-a-g…
I have the same monitor and it's pretty good. The only thing I don't quite like is the pixel size, it's a bit small for native scaling. I kind of wish i had gone for the 27". I went with two 25" because two 27" were a bit too big for me.
With glasses (20/20) I can comfortably read text from up to 3 feet away from the 25" version at 1:1 scaling. Even tiny text like the HN text field box.
Re: Desktop compositing latency is real
#63Earlier quoted context omitted.
33 ms is two frames, if your monitor is at 60 Hz. If you tried vscode or other electron app, it might be 49 ms (3 frames). These are the numbers I'm getting from 1900X with Nvidia 1080 GPU, Gnome3, 4k@60hz, but without measuring latency of the keyboard itself. Modern keyboards are another part of the problem. They can also take their sweet time since keypress until packet appears at the USB bus. See https://danluu.co…
For reference, on a 2012 MacBook Air the numbers are 18-20ms in either a regular app or VSCode.
Re: Desktop compositing latency is real
#64Earlier quoted context omitted.
33 ms is two frames, if your monitor is at 60 Hz. If you tried vscode or other electron app, it might be 49 ms (3 frames). These are the numbers I'm getting from 1900X with Nvidia 1080 GPU, Gnome3, 4k@60hz, but without measuring latency of the keyboard itself. Modern keyboards are another part of the problem. They can also take their sweet time since keypress until packet appears at the USB bus. See https://danluu.co…
Modern motherboards often still have a PS/2 port! And most USB keyboards still support PS/2, a passive adapter works great.
Re: Desktop compositing latency is real
#65Earlier quoted context omitted.
this reminds me of the argument that instead of going to USB C 3.1 as the grand unifying connector for all peripherals (including video), we should have instead migrated to Ethernet cables for everything.
ethernet over multimode fiber, I want to be able to have accessories hundreds of meters away from my computer
Re: Desktop compositing latency is real
#66Someone recently gave me an old PowerBook G3, running Mac OS 8.6. I was amazed by how responsive the UI is compared to today's UIs, from Mac to Windows to iOS to Android. When I clicked something, it felt like there was a pushrod between the mouse button and the menu, which triggered it instantly.
Well compositing was introduced in 10.2, I'm not sure if running Classic Mac OS was an advantage in this case
Re: Desktop compositing latency is real
#67Good article. Just turned the dwm off at the win7 machine at work, and it's like a free hardware upgrade! Everything is more responsive.
Re: Desktop compositing latency is real
#68Earlier quoted context omitted.
Solution: send the pixel to the screen over IP! (joking, but with a tiny serious element)
this reminds me of the argument that instead of going to USB C 3.1 as the grand unifying connector for all peripherals (including video), we should have instead migrated to Ethernet cables for everything.
Re: Desktop compositing latency is real
#69Earlier quoted context omitted.
Well compositing was introduced in 10.2, I'm not sure if running Classic Mac OS was an advantage in this case
Did you use OS X prior to 10.2? I guarantee you it was slower and worse in every way. Especially compared to classic. There is a reason they continued installing OS 9 side-by-side before 10.2.
Re: Desktop compositing latency is real
#70this article makes it sound like there is some magical way to draw directly into the buffer without it being redrawn, which is not true. the best you can get is a chance of faster drawing because you can write into the buffer is its being drawn... (and probably get some tearing)
the idea that compositing is somehow slower is also very misleading... how exactly is a stacked renderer faster?
i think the author is blaming a poor implementation on technical details that they only partly understand.