Difference between revisions of "Compositor (X11)"
m (→Xfce:) |
|||
Line 22: | Line 22: | ||
** enable: <code>qdbus org.kde.KWin /Compositor resume</code> | ** enable: <code>qdbus org.kde.KWin /Compositor resume</code> | ||
===Xfce | ===Xfce=== | ||
*Disable composition with <code>$ xfconf-query -c xfwm4 -p /general/use_compositing -s false</code><ref>https://wiki.archlinux.org/title/Xfwm#Configuration</ref> | *Disable composition with <code>$ xfconf-query -c xfwm4 -p /general/use_compositing -s false</code><ref>https://wiki.archlinux.org/title/Xfwm#Configuration</ref> | ||
*Enable it again with <code>$ xfconf-query -c xfwm4 -p /general/use_compositing -s true</code> | *Enable it again with <code>$ xfconf-query -c xfwm4 -p /general/use_compositing -s true</code> |
Revision as of 16:37, 14 May 2022
If you use a DE with X11, then you probably have a compositor. The compositor does nice things like window shadow and effects. But it also reduces fps, adds input lag, and introduces stuttering. That's why you should disable it when running a game.
Disabling composition for your games
Disabling composition will dramatically improve performance, input lag, and "smoothness". Here is how to do it:
Gnome
This is the default DE on Pop!_OS.
You don't have to do anything. Gnome uses unredirection (the same thing Windows does), which is almost as good as disabling compositon. Disabling composition in Gnome is not possible.
KDE
There are many options to disable composition:
- For Lutris:
- To disable it for a single game: Right click the game ->
Configure
->System options
->Disable desktop effects
. - To disable it for all games: Click
...
in the top right corner ->Preferences
->Global options
->Disable desktop effects
- To disable it for a single game: Right click the game ->
- You can manually disable composition with
shift
+alt
+f12
before launching a game. The same combination re-enables it. - You can use Autocomposer. This should make it unnecessary to do anything of the above.
- If you want to use a terminal command (for example for automation, launch options for Steam, etc):
- disable:
qdbus org.kde.KWin /Compositor suspend
- enable:
qdbus org.kde.KWin /Compositor resume
- disable:
Xfce
- Disable composition with
$ xfconf-query -c xfwm4 -p /general/use_compositing -s false
[1] - Enable it again with
$ xfconf-query -c xfwm4 -p /general/use_compositing -s true
- For Steam: You can automate disabling/enabling with the launch option:
xfconf-query -c xfwm4 -p /general/use_compositing -s false; %command%; xfconf-query -c xfwm4 -p /general/use_compositing -s true
[2]
Cinnamon
Unfortunately, you have to disable composition completely. This might lead to visual degradation in desktop mode (no effects, no shadows, no transparency, no window previews, more tearing), but all other options yield bad gaming performance. If you want a DE that looks a bit like Windows, you might want to have a look at KDE Plasma instead.
To disable it: System Settings
-> General
-> Disable compositing
Pantheon
Unfortunately it appears to not support disabling composition.[3]