I only play one game and that is UT2004. I have always needed to turn of Compiz when playing as I am a bit finicky when it comes to smooth gaming. Manually disable Compiz is not very convenient, so I used a script for that.
This will stop Compiz when you start UT2004 and start it again when you quit UT2004 automatically.
This script is for KDE so you would need to change "kwin" to "metacity" (and "UT2004" for a different game) if you use Gnome. It has been a long time since I used this script (used it when I used KDE3) so it might not work any longer.
Now I use KDE4 and I made this script:
This script will probably only work for KDE4. Perhaps it would help somebody.
Code:
#!/bin/bash kwin --replace & ut2004 ; killall -s USR2 compiz.real compiz --replace & exit 0
This script is for KDE so you would need to change "kwin" to "metacity" (and "UT2004" for a different game) if you use Gnome. It has been a long time since I used this script (used it when I used KDE3) so it might not work any longer.
Now I use KDE4 and I made this script:
Code:
#!/bin/bash kwriteconfig --file kwinrc --group Compositing --key Enabled false kwin --replace & ut2004 $@ ; kwriteconfig --file kwinrc --group Compositing --key Enabled true kwin --replace exit 0
Comment