ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.63k stars 808 forks source link

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

Open Tiagoquix opened 2 weeks ago

Tiagoquix commented 2 weeks ago

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.

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