ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

Set window hint to block compositor on KDE Plasma (Linux, X11)

Open Tiagoquix opened this issue 1 year ago • 1 comments

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:

Image

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.

Tiagoquix avatar Oct 10 '24 02:10 Tiagoquix

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).

torokati44 avatar Oct 10 '24 08:10 torokati44

@kjarosh Considering X11 is going to be deprecated in the future, and that we should focus only on Wayland from now on, can I close this issue then?

Tiagoquix avatar Jul 11 '25 03:07 Tiagoquix

Despite Wayland taking over market share, Ruffle still does support X11

kjarosh avatar Jul 11 '25 06:07 kjarosh