6.2 KiB
Lutris
Lutris is a free and open source video game platform for Linux systems. It features compatibility with GOG, Humble Bundle, Epic Games, Steam and many other Windows games via its own installer that uses WINE. Lutris can also use Proton
- a patched version of WINE developed by Valve. Additionally to that Lutris supports many different emulators. For running both Windows applications aswell as games Bottles can be used.
Usage
Manually Add a Game
By clicking on the +
in the left upper corner of the Lutris application a new
game can be manually added.
Mount .iso
files first using the mount -o loop <path to iso> <path to mount>
command.
Check the directory the media was mounted to afterwards to select the appropiate
Option.
If a setup executable is available select Install a Windows game from media
.
Then select the setup executable from the mounted path.
And proceed with the installation.
Lutris will automatically pick the correct executable to start the game after
setup.
For non-setup .exe
files of completely downloaded games select
Add locally installed game
.
Make sure to select the runner WINE for the game in the
following window.
Make sure to set the Wine prefix
to the desired location.
Select the Working directory
to be the location of the downloaded game.
For cleanup afterwards the game can be moved into the WINE prefix folder as if
it was installed inside Windows.
If so make sure to point the Executable
after right-clicking the game and
selecting Configure
to the right location and remove the Working directory
entry as it is not needed if the executable is inside the WINE prefix.
Setting Environment Variables
Environment variables can be set globally or on a per game basis.
To set them globally navigate to the Global options
tab in the Preferences
.
There the Environment variables
can be added and removed by selecting the
corresponding buttons.
To set the environment variables for a single game right-click the game and
select Configure
.
Navigate to the System options
tab where the Environment variables
can be
found.
An environment variable has two parts.
The key and the value.
This guide uses the notation key=value
for better readability.
The following is an example of an environment variable in this notation.
__GL_SHADER_DISK_CACHE=1
Nvidia Shader Cache Settings
This section is based on a piece of documentation by Lutris regarding performance optimization for systems with Nvidia GPUs.
For Nvidia GPUs the shader cache is set to have a softlimit of 128MB.
This can be easily reached by some games and will cause performance limitations.
The cleanup of the cache after reaching 128MB can be disabled.
For this set __GL_SHADER_DISK_CACHE_SKIP_CLEANUP
to 1
as explained in the
section regarding environment variables.
By default Lutris uses a cache location for all games.
For better trouble shooting capabilities a unique shader location for each game
can be set.
This can be done with the environment variable
__GL_SHADER_DISK_CACHE_PATH=</path/to/shaders/>
that has to be set as a per
game variable and adapted with a path of your choosing.
Performance Tweaks
This section addresses ways of increasing the performance of games when run by Lutris.
An easy way to increase the performance of games is to install and enable
Feral GameMode as recommended in
the documentation of Lutris.
It is important to install both the 64-bit and the 32-bit version to ensure full
functionality.
Check the package manager of your distribution for packages with the names
gamemode
and lib32-gamemode
or similar names or install it manually via git.
Afterwards check in Lutris Preferences
if Enable Feral GameMode
is checked
under the Global options
tab.
Another way to increase the performance is to increase the Nvidia Shader Cache limit.
Installing Windows DLLs
Select the game in the Games
tab of the library.
Then select the upwards arrow next to the WINE symbol in
the bar at the lower screen.
Select Winetricks
and Select the default wineprefix
in the window
afterwards.
After selecting Install a Windows DLL or component
the package to install can
be selected.
Change WINE/Proton Version
Windows games are handled by
WINE.
After right-clicking a game and selecting Configure
the Wine version
can be
changed under the Runner options
tab.
There are many different versions of WINE, WINE-fshack and various
Proton and
Proton GE versions to select.
Using the default runner of Bottles called Caffe
is also possible.
Troubleshooting
This section explains ways of solving various problems that can occur when using Lutris.
DX12/DX13 is not Supported on Your System
This section handles a fix if the game is not able to run due to the system not
supporting DX12 or DX13.
This can be easily fixed by inserting -dx11
in Arguments
under the
Game options
tab that pops up after selecting Configure
for a selected game.
Crashes for Windows Games
When it comes to crashes for Windows games that get handled by WINE one point of failure is the selected WINE version. Change the version used as explained in the regarding section. Especially trying Proton GE versions or WINE fshack versions can lead to successful running of the game. Specific games also benefit from running Caffe.