Setting up gamemoderun correctly
GameMode is a handy tool that applies a few performance tweaks and optimisations for gaming on linux. I initially installed it and started using it but I realised I hadn't actually configured it at all...
yay -Syu gamemoderun lib32-gamemode
Once installed then add yourself to the gamemode user group
sudo gpasswd -a $USER gamemode
Then add the following to /etc/gamemode.ini
:
[general]
reaper_freq=5
renice=10
inhibit_screensaver=1
disable_splitlock=1
[custom]
start=notify-send -a "GameMode" "GameMode started"
end=notify-send -a "GameMode" "GameMode ended"
Now you can update your steam games launch options to the following:
gamemoderun %command%
However, since I have a 4K HDR monitor I use the following to enable HDR in games:
DXVK_HDR=1 gamemoderun gamescope -W 3840 -H 2160 -f --hdr-enabled -- %command%