Hacker News new | ask | show | jobs
by cwillu 14 days ago
It's generally a single checkbox to turn off compositing in X11, for precisely this reason.
2 comments

Yes, but the same is true in Wayland and it's automatic as well. Full screen applications don't require compositing so they typically don't, and this was the case in MOST X11 compositors as well.

Turning off compositing before launching a game is maybe a bit misguided, sort of like turning on the "classic theme" in Windows 7 before launching a game. It might save some memory, sure, but latency should be identical.

> latency should be identical

Should be, but very clearly isn't.

The results show it's identical. Only XWayland suffered any significant degradation, and even then we're talking <5ms which is imperceptible.
Those results depend on having a 500hz monitor. There's a world of difference between a mildly-buggy rendering loop's 1-frame delay or missing a vsync deadline causing a 2ms delay vs a 16ms delay.
You can also disable compositing conditionally in KDE, such as when a game window is opened.
Not in Wayland, the whole point of Wayland is to make stuff the X server + compositor + various other bits into the window manager.
For full-screen applications, Wayland has a protocol to let it display frames at its own pace - meant mostly for games for this very reason.
With X11, you can disable composition for windowed apps as well.