
How To Improve Gaming Performance When Using Lutris
This video covers some optional tweaks you can enable in Lutris to improve performance in some games.
Step 1. Install Latest GPU Drivers and Wine.
https://github.com/lutris/docs/blob/master/InstallingDrivers.md
https://github.com/lutris/lutris/wiki/Wine-Dependencies
Step 2. Disable Desktop Composition.
The first tweak is to disable any desktop effects when a game is launched through Lutris which can help to reduce stuttering.
This is done by navigating to Preferences / System options / Disable desktop effects.
Step 3. Use Feral Gamemode.
GameMode is a daemon/lib combo for Linux that allows games to request a set of optimisations be temporarily applied to the host OS and/or a game process.
https://github.com/FeralInteractive/gamemode#gamemode
Assuming you have installed Gamemode, it should be enabled by default.
Step 4. Specify A Custom Nvidia Shader Cache Location.
The third tweak is exclusive to nVidia GPUs, and it involves designating a custom location for a shader cache file to be created.
By default, nVidia shader cache is limited to 1GB for all Wine installations, but if you specify a separate cache location for each game, you are able to get around this limitation.
This greatly helps with stuttering in games and can be activated by adding the following to the Environmental variables of each game installation.
For example, for Dragon Age Inquisition on my system it would be:
Key - __GL_SHADER_DISK_CACHE_PATH
Value - /home/ryanj/Games/dragon-age-inquisition
Environmental variables can be found at Game Installation / Configure / System options / Environmental variables.
Step. 5. Remove Nvidia Shader Cache Limit.
The fourth and final tweak is to remove the limitation of 1GB for a shader cache by adding the following to the Environmental variables for Lutris.
Key - __GL_SHADER_DISK_CACHE_SKIP_CLEANUP
Value – 1
This time it located at Preferences / System preferences / Environment variables.
Technically this will overwrite the previous step.
#linuxgaming #lutris #gamemode