solus-project / budgie-desktop

I Tawt I Taw A Purdy Desktop
https://solus-project.com/
2.34k stars 160 forks source link

Option to allow applications to block compositing (disable desktop effects) #1749

Open yaomtc opened 5 years ago

yaomtc commented 5 years ago

Current Budgie version

10.5

Use-cases

When playing games, disabling desktop effects can have a positive effect on performance. It also makes alt-tabbing from a full-screen window to another window faster.

Proposal

Lutris has an option for this when running games with KWin (Plasma), Marco (MATE), and XFWM (XFCE). Adopting an approach similar to that of KWin, where you have an option in the settings to allow apps to block composting when they request it, would be especially useful for more intensive fullscreen OpenGL applications.

References

Here's an old blog post about it: https://blog.martin-graesslin.com/blog/2011/04/turning-compositing-off-in-the-right-way/

Here's the Lutris pull request of the feature I mentioned: https://github.com/lutris/lutris/pull/881

Jacalz commented 5 years ago

My guess is that this won't be possible since Budgie uses Mutter from Gnome 3 and since that pull request doesn't support Mutter it probably isn't supported in Mutter.

JockeTF commented 5 years ago

Budgie does "disable" compositing for most fullscreen windows, assuming the "disable unredirection" option isn't enabled in Budgie Settings.

yaomtc commented 5 years ago

Is that why alt-tab from a fullscreen window in Budgie is slower than when I do it with Plasma/KWin? With compositing disabled the switch is basically instantaneous. I guess I really ought to just get a second monitor.