Open Tiagoquix opened 2 weeks ago
I'm not sure how this would work on Wayland, but I imagine it's the same thing.
Well, not really - it's not needed there:
https://discourse.libsdl.org/t/why-is-compositing-disabled-on-normal-x11-windows/37712/5
Ultimately, Wayland should rid us of this problem completely: it doesn’t support disabling the compositor, and in the future it should be able to use separate planes to get a similar performance boost on some hardware (without the downsides).
In a similar fashion to #17895, it would be interesting to set a window hint to block the compositor to bring more performance for Flash games and movies.
This is the tooltip on KDE Plasma's settings:
I don't know if there's a similar thing for GNOME and/or other DEs, but I believe the hint is global (affects everything). That would be
_NET_WM_BYPASS_COMPOSITOR
(https://wiki.libsdl.org/SDL3/SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR). I'm not sure how this would work on Wayland, but I imagine it's the same thing.