# Linux gaming \[Guide\]

**URL:** <https://forum.endeavouros.com/t/linux-gaming-guide/7339>\
**Category:** Gaming, sound and video\
**Created:** [August 24, 2020, 6:37pm UTC](https://forum.endeavouros.com/t/linux-gaming-guide/7339 "2020-08-24T18:37:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![keybreak](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/keybreak/32/9257_2.png) [@keybreak](https://forum.endeavouros.com/u/keybreak)\
**Post date:** [August 24, 2020, 6:37pm UTC](https://forum.endeavouros.com/t/linux-gaming-guide/7339/1 "2020-08-24T18:37:36Z")

</div>

# Linux gaming

😡 &nbsp; Why should **YOU** care?  
🤨 &nbsp; You **JUST** want to game?  
🧐 &nbsp; It must be very hard to **ENJOY**?

**Not hard at all to just enjoy!**  
Buckle up and let’s spread some knowledge to make it easy for everyone! 🚀

Let this be our gaming hub, please share:

- Update of tools
- Best practices
- Quality guides
- New hot tech
- Performance tips

* * *

**Table of contents:**

1. **[Introduction](#heading--linux-gaming-intro)**  
1.1 **[Platforms](#heading--linux-gaming-platforms)**  
1.2 **[Common terms](#heading--linux-gaming-common-terms)**  
1.3 **[Engines](#heading--linux-gaming-engines)**
2. **[Requirements](#heading--linux-gaming-requirements)**
3. **[Steam](#heading--linux-gaming-steam)**  
3.1 **[Setup](#heading--linux-gaming-steam-setup)**  
3.2 **[Install games](#heading--linux-gaming-steam-install)**  
3.3 **[Configuration](#heading--linux-gaming-steam-config)**  
3.4 **[Problems](#heading--linux-gaming-steam-problems)**
4. **[Wine](#heading--linux-gaming-wine)**  
4.0 **[Prepare](#heading--linux-gaming-wine-prepare)**  
4.1 **[Setup](#heading--linux-gaming-wine-setup)**  
4.2 **[Engine](#heading--linux-gaming-wine-engine)**  
4.3 **[Create prefix](#heading--linux-gaming-wine-prefix)**  
4.4 **[Install game](#heading--linux-gaming-wine-install)**  
4.5 **[Configuration](#heading--linux-gaming-wine-config)**  
4.6 **[Problems](#heading--linux-gaming-wine-problems)**
5. **[Lutris](#heading--linux-gaming-lutris)**  
5.1 **[Setup](#heading--linux-gaming-lutris-setup)**  
5.2 **[Configuration](#heading--linux-gaming-lutris-config)**  
5.3 **[Add game](#heading--linux-gaming-lutris-game)**  
5.4 **[Game configuration](#heading--linux-gaming-lutris-game-config)**  
5.5 **[Install game](#heading--linux-gaming-lutris-game-install)**
6. **[Common problems](#heading--linux-gaming-problems)**
7. **[Advanced](#heading--linux-gaming-advanced)**  
7.1 **[GPU PhysX](#heading--linux-gaming-advanced-physx)**  
7.2 **[ReShade & Ray tracing on any GPU in any game](#heading--linux-gaming-advanced-reshade)**
8. **[Resources](#heading--linux-gaming-resources)**

  

# Introduction

This section consist of just few terms / conceptions / libraries which may be scary sounding for newcomers - but they’re **not** , when structured right.

You may enjoy learning to avoid common pitfalls! 👾

But if you **JUST** want to game - read **[Requirements](#heading--linux-gaming-requirements)**, **[Steam](#heading--linux-gaming-steam)** / **[Wine](#heading--linux-gaming-wine)**, **[Lutris](#heading--linux-gaming-lutris)** and you’re good to go!

### 1. Platforms

| Platform | Pros | Cons |
| --- | --- | --- |
| Linux&nbsp;Steam | • Very easy to use   
 • Performance are same or better than Windows & Native   
 • Big community | • Based on proprietary **Steam** client made by **Valve**   
 • Your game library and saves depends on Valve corporation (unless manually backup) |
| Linux Wine | • Easy when you know   
 • Performance are same or better than Windows & Native   
 • Big community   
 • FOSS   
 • Privacy   
 • Gives you 100% control of your engine, data and games | • Requires some knowledge or tools for ease of use   
 • May break on update if you always use latest engine (not recommended practice!) |
| Linux Native | • Best performance   
 | • May break on update, unless sandboxed   
 • Currently limited number of games |
| Windows | • Ease of use   
 • Compatibility | • Huge privacy and security risks!   
 • Forced updates   
 • Performance getting worse and worse compared to late years Linux, because a lot of PC resources are aimed on spying, even when you game. |

  

### 2. Common terms

| Term | Description |
| --- | --- |
| PREFIX&nbsp;/&nbsp;WINEPREFIX | Separate directory inside your Linux, which represents “Windows” machine, it’s drives, folders, registry etc, think of it as little sandbox |
| Engine&nbsp;/&nbsp;(Wine&nbsp;/&nbsp;Proton) | • This is what allow you to run Windows programs on Linux   
 • You can easily downgrade / update engine version for any **PREFIX** |
| ARCH | Architecture of **PREFIX** is **win64** or **win32** based on chosen **Engine**  
 ❗ You can use only one **ARCH** for **PREFIX** since it’s created, good thing that in 99% of cases, even if guides write otherwise you should use **win64**! |
| dll override / WINEDLLOVERRIDES | It’s not always possible to run an application on builtin DLLs. Sometimes native DLLs simply work better.   
  
 You can override any dll in your **PREFIX** , these DLL overrides can be set using **winecfg** or you might want to use the `WINEDLLOVERRIDES` environment variable to set them.   
  
 Options available:   
 • native (=n)   
 • builtin (=b)  
 • disable (=)   
 • native, builtin (=n,b)   
 • builtin, native (=b,n) |
| Winetricks&nbsp;/&nbsp;Protontricks | Very important tool in your arsenal, which will help you tweak **PREFIX** to overcome some known problems, or install real **Windows** libraries, to heal some unfinished parts of **Wine**. |
| DXVK | **Vulkan** -based translation layer for DirectX 9 / 10 / 11   
 Probably most important project and milestone for gaming on Linux! |
| VKD3D | Aims to implement the full DirectX 12 API on top of **Vulkan**.   
 ❗ Early in development, may have a lot of bugs and performance problems |
| Esync | Removes wineserver overhead for synchronization objects. This can increase performance for some games, especially ones that rely heavily on the CPU. |
| Fsync | More recent alternative with even better performance improvements, then **Esync**. However, you do need an **Engine** and **Kernel** that supports it. |

  

### 3. Engines

| Engine | Description |
| --- | --- |
| Wine | In the beginning was the Word, and the Word was with Linux, and the Word was **Wine**.   
  
This is most **[important](https://wiki.winehq.org/Importance_Of_Wine)** project for topic at hand, in 1993 there were bunch of absolutely insane people who decided to start reverse-engineer Windows proprietary crap and redirect it to Linux native FOSS style for future compatibility, when Windows will die.   
  
Take a moment to create shrine for those people, it’s miracle that we see anything working at all!! 🤩 |
| Wine&nbsp;staging | It contains bug fixes and features, which have not been integrated into the development branch yet.  
  
 The idea of Wine Staging is to provide experimental features faster to end users and to give developers the possibility to discuss and improve their patches before they are integrated into the main branch. |
| Proton | This is fork of **Wine** maintained by **Valve / Steam** , but still itself FOSS.  
And what a great boost it gave for Linux gaming!  
  
But it is basically a set of patches:   
• **DXVK** enabled by default   
 • **Esync** ready   
 • **Fsync** ready   
  
Made to work with **Steam** , so keep this in mind when hearing term “ **Protonified** ”!  
 Although it’s not officially recommended - you can easily use **Proton** with **Wine** directly. |
| Wine-TKG&nbsp;  
Proton-TKG | Custom bleeding edge builds by **Tk-Glitch** , may greatly improve compatibility or performance, especially with fresh games!   
  
 • **Esync** ready   
 • **Fsync** ready  
  
 If you have fresh game which doesn’t work from day 1 - try it and watch for news, it most likely will be first build to run your game in few days! |
| Wine-GE  
Proton-GE | Custom bleeding edge builds by **GloriousEggroll** aka “the most **[patched](https://github.com/GloriousEggroll/proton-ge-custom#overview)** Wine”, may greatly improve compatibility or performance, especially with fresh games!   
  
 • **Esync** ready   
 • **Fsync** ready  
• **vkd3d** ready  
  
 If you have fresh game which doesn’t work from day 1 - try it and watch for news, it most likely will be first build to run your game in few days! |

  

# Requirements

### 1. Make sure your GPU supports Vulkan

Check your GPU in **[database](https://vulkan.gpuinfo.org)**

- ✅ If there is an entry - you’re good to continue! 👾

- ⚠ if API is below v1.3 - you will [**NOT** be able](https://github.com/doitsujin/dxvk/wiki/Driver-support) to run **DXVK 2.0+** and **wine / proton v7.1+**.

- ❌ Not on the list? - that means your GPU is old enough to not support Vulkan.

### 2. Install **Vulkan**

```bash
vulkan-icd-loader
lib32-vulkan-icd-loader

```

### 3. Install **Vulkan driver** for your GPU driver

⚠ Even if you don’t have AMD GPU make sure you’ve uninstalled **AMDVLK** (unless you use it), because this driver is enforced by default and can reduce your performance!

#### NVIDIA

- **NVIDIA** (proprietary, maintained by Nvidia)

#### INTEL

- **INTEL** (open, maintained by Mesa, Intel)

#### AMD

- **RADV** (open, maintained by Mesa, Valve, Red Hat, Google etc.)  
⭐ Best performance and compatibility.

- **AMDVLK** (open, maintained by AMD)  
Only use in case **RADV** doesn’t work.

- **AMDGPU PRO** (proprietary, maintained by AMD)  
Best for ray-tracing performance at the moment.

#### HYBRID / OPTIMUS GPU (Laptop)

- **[ArchWiki](https://wiki.archlinux.org/index.php/Vulkan#Installation)**

  

# Steam

**TL;DR**  
Current best practice:

1. Enable **Proton** in **Steam play**
2. Check your game in **[protondb](https://www.protondb.com/)** for game state / recommendations
3. Problems?  
Try **[GloriousEggroll](https://github.com/GloriousEggroll/proton-ge-custom/releases)** or **[TK-Glitch](https://github.com/Frogging-Family/wine-tkg-git/releases)** engines or see full **[4.4 Problems](#heading--linux-gaming-steam-problems)** section 👾

* * *

Config location:

```bash
~/.steam

```

**Proton** engines location:

```bash
~/.steam/steam/steamapps/common

```

Keep in mind that **Proton** will be installed in the same library as the first Steam Play game you try to launch, and will only be installed in one location.

Game **PREFIX** location, where [appid] is your game id (look up **[steamdb](https://steamdb.info/)** if in doubt):

```bash
~/.steam/steam/steamapps/compatdata/[appid]/pfx/

```

**[More Proton FAQ](https://github.com/ValveSoftware/Proton/wiki/Proton-FAQ)**

### 1. Setup

1. Create account in **[Steam](https://store.steampowered.com/)**
2. Install package:

```bash
steam

```

if you plan to use controllers. also install this one from AUR:

```bash
game-devices-udev

```

3. Launch client and login to your account
4. Enable **Proton** so you can play Windows games with Linux Steam:  
Steam → Settings → Steam Play   
  
✅ Enable Steam Play for supported titles  
✅ Enable Steam Play for all other titles  
🔻 **Run other titles with** dropdown - here you can choose **Proton** version which will be used globally.

### 2. Install games
Now you're ready to install games!
1. Before buy, you may want to check **[protondb](https://www.protondb.com/)**, maybe it’s rare case which still have problems or game is just out and doesn’t work in **Proton** just yet (usually resolved pretty quickly week-month)
2. Buy / Download game
3. Go to Library tab
4. Select your game title on left panel
5. Hit Play!

### 3. Configuration

- To configure **Proton** through Environment variables, which you may see in **protondb** reports (see available **[options](https://github.com/ValveSoftware/Proton#runtime-config-options)**)   

- Install additional original Windows libraries with **Winetricks** (if required), where [appid] is your game id (look up **[steamdb](https://steamdb.info/)** if in doubt)

- To use specific version of **Proton** for specific game (may be useful if latest gives problems)

- Install custom **Proton** engine

- Change default location for games library  
Steam → Settings → Downloads → Steam library folders   

- You want to use NTFS disk with Linux Steam ( ❗ Why? - just drop Windows already 🙃)

- You want to create log file to check if everything fine or file a bug, use Environment variable:

### 4. Problems

• Game doesn’t launch or crash

1. See if there are some known solutions to problems of this game at **[protondb](https://www.protondb.com/)** or **[lutris](https://lutris.net/)**.

2. Try to disable **DXVK**

3. Still doesn’t work?  
Check **[Requirements](https://github.com/ValveSoftware/Proton/wiki/Requirements)** and **[Proton bugs](https://github.com/ValveSoftware/Proton/wiki/Checklist-Proton-bugs)**. If you have AMD GPU **[check this](https://github.com/ValveSoftware/Proton/wiki/For-AMD-users-having-issues-with-non-OpenGL-games)**.

4. Even now doesn’t work?  
Please **[report bug](https://github.com/ValveSoftware/Proton/issues)** to **Proton** if it doesn’t exist already!

• Language doesn’t display properly during user input

Force your preferred locale:

```bash
HOST_LANG=ru_RU.UTF-8 HOST_LC_ALL=ru_RU.UTF-8 %command%

```

• Some games stutter at the beginning

- This is normal, because at the beginning shaders have to be loaded first - so that it doesn’t stutter next time. They are written directly into shader cache.

  

# Wine

❗Do **NOT** launch wine / winetricks directly from launcher or terminal without ENVIROMENT VARIABLES, as this will add unnecessary stuff and mess your mime-associations, icons etc.

**TL;DR**  
Current best practice:

1. Create non-system **WINEPREFIX** with non-system **Wine (amd64)**:  
**[POL](https://www.playonlinux.com/wine/binaries/phoenicis/)** (staging-linux-amd64, upstream-linux-amd64)  
❗it’s better to use separate prefix for each game
2. Check **[protondb](https://www.protondb.com/)** and **[lutris](https://lutris.net/)** for game state / recommendations
3. Install game, prefer drm-free installers like **[GOG](https://www.gog.com/)**
4. Use **Lutris** as launcher
5. Enable **DXVK** and **Esync**
6. Problems?  
Try **[GloriousEggroll](https://github.com/GloriousEggroll/wine-ge-custom/releases)** or **[TK-Glitch](https://github.com/Frogging-Family/wine-tkg-git/releases)** engines or see full **[4.6 Problems](#heading--linux-gaming-wine-problems)** section 👾

* * *

Default **WINEPREFIX** for system version of Wine  
(don’t need it for Games - can be safely removed, if it does not used by anything else):

```bash
~/.wine

```

**Mono** (FOSS .NET by Wine) & **Gecko** (FOSS Internet Explorer by Wine) installers location, both auto-installed while creating **WINEPREFIX** :

```bash
~/.cache/wine

```

Winetricks downloaded installers location:

```bash
~/.cache/winetricks

```

### 0. Prepare

Create all this bash scripts and make them executable.

**create-structure.sh**

> **Details**
>
> ```bash
> #!/bin/bash
> title=$(basename "$0")
> echo -n -e "\033]0;$title\007"
> 
> # Colors
> c0=$'\e[0m'
> c1=$(tput setaf 202)
> c2=$(tput setaf 154)
> b0=$'\e[25m'
> b1=$'\e[5m'
> 
> # Force output in english
> export LC_ALL=en_US.UTF-8
> 
> # OPTIONS
> WINE_ROOT="$HOME/.PlayOnLinux"
> 
> STRUCTURE=(
> "$WINE_ROOT"
> "$WINE_ROOT/wineprefix"
> "$WINE_ROOT/wine"
> "$WINE_ROOT/wine/linux-amd64"
> "$WINE_ROOT/wine/linux-x86"
> )
> 
> main() {
> 
> create_structure
> }
> 
> create_structure() {
> 
> echo
> echo " --------------- Create structure --------------- "
> echo
> 
> for path in "${STRUCTURE[@]}";
> do
> if [! -e "$path"];
> then
> mkdir -p "$path" \
> && echo "${c2}[+]${c0} ${path}" \
> || echo "${c1}[${b1} ${b0}]${c0} ${path}"
> else
> echo "${c2}[x]${c0} ${path}"
> fi
> done
> 
> echo
> echo "${c2}Script finished!${c0}"
> }
> 
> main "$@"
> 
> ```

  

**create-prefix.sh**

> **Details**
>
> ```bash
> #!/bin/bash
> title=$(basename "$0")
> echo -n -e "\033]0;$title\007"
> 
> # Colors
> c0=$'\e[0m'
> c1=$(tput setaf 202)
> c2=$(tput setaf 154)
> b0=$'\e[25m'
> b1=$'\e[5m'
> 
> # Force output in english
> export LC_ALL=en_US.UTF-8
> 
> # OPTIONS
> NAME="GameName"
> ENGINE="5.11-staging"
> ARCH="amd64"
> 
> WINE_ROOT="$HOME/.PlayOnLinux"
> PREFIX="${WINE_ROOT}/wineprefix/${NAME}"
> WINE="${WINE_ROOT}/wine/linux-${ARCH}/${ENGINE}"
> LOADER="${WINE}/bin/wine"
> SERVER="${WINE}/bin/wineserver"
> 
> main() {
> 
> create_prefix
> }
> 
> create_prefix() {
> 
> echo
> echo " ---------------- Create prefix ----------------- "
> echo
> 
> ARCH=$(["$ARCH" == "amd64"] && echo "win64" || echo "win32")
> 
> env WINEARCH="$ARCH" WINEPREFIX="$PREFIX" WINELOADER="$LOADER" WINESERVER="$SERVER" WINEDEBUG="-all" wineboot
> env WINEPREFIX="$PREFIX" WINE="$LOADER" WINESERVER="$SERVER" winetricks isolate_home mimeassoc=off
> 
> echo
> echo "${c2}Script finished!${c0}"
> }
> 
> main "$@"
> 
> ```

  

**install.sh**

> **Details**
>
> ```auto
> #!/bin/bash
> title=$(basename "$0")
> echo -n -e "\033]0;$title\007"
> 
> # Colors
> c0=$'\e[0m'
> c1=$(tput setaf 202)
> c2=$(tput setaf 154)
> b0=$'\e[25m'
> b1=$'\e[5m'
> 
> # Force output in english
> export LC_ALL=en_US.UTF-8
> 
> # OPTIONS
> SETUP="Setup.exe"
> NAME="GameName"
> ENGINE="5.11-staging"
> ARCH="amd64"
> 
> WINE_ROOT="$HOME/.PlayOnLinux"
> PREFIX="${WINE_ROOT}/wineprefix/${NAME}"
> WINE="${WINE_ROOT}/wine/linux-${ARCH}/${ENGINE}"
> LOADER="${WINE}/bin/wine"
> SERVER="${WINE}/bin/wineserver"
> 
> main() {
> 
> run "${SETUP}"
> }
> 
> run() {
> 
> echo
> echo " --------------------- Run ---------------------- "
> echo
> 
> local file="$1"
> [-f "$file"] || exit_error "$file doesn't exist"
> 
> if echo "$file" | grep -iq '.msi';
> then
> echo "${c2}[>] run .msi ${c0} $file"
> env WINEPREFIX="$PREFIX" WINELOADER="$LOADER" WINESERVER="$SERVER" WINEDEBUG="-all" WINEDLLOVERRIDES="winemenubuilder.exe=d" msiexec /i "$file"
> else
> echo "${c2}[>] run .exe ${c0} $file"
> env WINEPREFIX="$PREFIX" WINELOADER="$LOADER" WINESERVER="$SERVER" WINEDEBUG="-all" WINEDLLOVERRIDES="winemenubuilder.exe=d" "$LOADER" "$file"
> fi
> 
> echo
> echo "${c2}Script finished!${c0}"
> }
> 
> main "$@"
> 
> ```

  

**tricks.sh**

> **Details**
>
> ```auto
> #!/bin/bash
> title=$(basename "$0")
> echo -n -e "\033]0;$title\007"
> 
> # Colors
> c0=$'\e[0m'
> c1=$(tput setaf 202)
> c2=$(tput setaf 154)
> b0=$'\e[25m'
> b1=$'\e[5m'
> 
> # Force output in english
> export LC_ALL=en_US.UTF-8
> 
> # OPTIONS
> TRICKS=(
> win7
> )
> NAME="GameName"
> ENGINE="5.11-staging"
> ARCH="amd64"
> 
> WINE_ROOT="$HOME/.PlayOnLinux"
> PREFIX="${WINE_ROOT}/wineprefix/${NAME}"
> WINE="${WINE_ROOT}/wine/linux-${ARCH}/${ENGINE}"
> LOADER="${WINE}/bin/wine"
> SERVER="${WINE}/bin/wineserver"
> 
> main() {
> 
> tricks
> }
> 
> tricks() {
> 
> echo
> echo " -------------------- Tricks -------------------- "
> echo
> 
> printf "%s\n" "${TRICKS[@]}"
> 
> env WINEPREFIX="$PREFIX" WINE="$LOADER" WINESERVER="$SERVER" winetricks "${TRICKS[@]}"
> 
> echo
> echo "${c2}Script finished!${c0}"
> }
> 
> main "$@"
> 
> ```

  

### 1. Setup

1. Install **Wine** package (it doesn’t really matter which one you use as system version):

```bash
wine-staging

```

or

```bash
wine

```

2. Install **Winetricks** package

```bash
winetricks

```

3. Run **create-structure.sh** script, it will create folder structure in your `~/.PlayOnLinux`

```auto
.PlayOnLinux
├── wine
│ ├── linux-amd64
│ └── linux-x86
└── wineprefix

```

### 2. Engine

With **Wine** you can use any **Engine**!

Few things to know:

1. Usually it’s best to use latest version, unless there is known problem or update have broken compatibility for specific game

2. You can upgrade or downgrade to any **Engine** and **Version** without problems, just note that if you go from **Wine** to **Proton** your new user directory will move to:

3. ❗ You can use only one **ARCH** for **PREFIX** since it’s created, good thing that in 99% of cases, even if guides write otherwise you should use **amd64**!

Best to choose engines in given order, in case of problems:

- **[PlayOnLinux](https://www.playonlinux.com/wine/binaries/phoenicis/)** ( **staging-linux-amd64** , **upstream-linux-amd64** )  
Best place for compiled versions of original **Wine** / **Wine-staging**.
- **[TK-Glitch](https://github.com/Frogging-Family/wine-tkg-git/releases)** ( **Wine** version)
- **[GloriousEggroll](https://github.com/GloriousEggroll/wine-ge-custom/releases)**
- **Proton** **[Compile source](https://github.com/ValveSoftware/Proton)** or if you have **Steam** client - download it and copy this dir:

```bash
~/.steam/root/steamapps/common/Proton 5.0/dist

```

to your **Engines** path and rename it like that **5.0-proton** :

```bash
~/.PlayOnLinux/wine/linux-amd64/5.0-proton

```

Once downloaded - put engine in:

```bash
~/.PlayOnLinux/wine/linux-amd64

```

### 3. Create prefix

From now to demonstrate complex case, let’s install **Crysis** from **GOG**.  
After all, this is most important question of gaming: “But can it run Crysis?!”

1. Open **create-prefix.sh** with text editor of your choice, and change this options:

```auto
# OPTIONS
NAME="Crysis"
ENGINE="5.11-staging"

```

2. Run **create-prefix.sh** script  
this will create your prefix at:

```bash
~/.PlayOnLinux/wineprefix/Crysis

```

> **PRO TIP**
>
> Such a PREFIX is fully portable, if you remove this dir with symlinks to devices:
> 
> ```bash
> ~/.PlayOnLinux/wineprefix/Crysis/dosdevices
> 
> ```
> 
> Now it’s safe to copy / backup PREFIX.  
> It will be auto-created next time you’ll run anything in PREFIX - so it’s safe!
> 
> * * *

### 4. Install game

1. Open **install.sh** with text editor of your choice, and change this options:

2. Run **install.sh** script

3. Follow installer steps and install to some simple location like `C:\Games\Crysis`  
if possible avoid and **disable** :

> **PRO TIP**
>
> In case you don’t like auto-installed proprietary garbage (sadly GOG installers doesn’t ask you about installing redistributables)
> 
> 1. Create temporary PREFIX **CrysisTemp**
> 2. Install game as usual
> 3. Move game folder to clean **Crysis** PREFIX
> 4. Remove **CrysisTemp** PREFIX
> 
> * * *

1. This is rare case, but if you look on **[Lutris db](https://lutris.net/games/crysis/)** see **Wine GOG version**  
Install → dropdown 🔻 → Views install script

2. Open **tricks.sh** with text editor of your choice, and change this options:

3. Run **tricks.sh** script  
Just proceed with installers windows-style, in case asked about **Sending anonymous information** or something along those lines - obviously choose **NOT**!

### 5. Configuration

- Use **Lutris** as launcher it will make your life so much easier! 👾  
Read from **[5. Lutris](#heading--linux-gaming-lutris)** up to **[5.4 Game configuration](#heading--linux-gaming-lutris-game-config)**

- To disable network for **WINEPREFIX** use Firewall

### 6. Problems

- Installer throw errors like that:

- Installer fails:

- Launch fails or crashes during gameplay:

  

# Lutris

Best all-around game launcher, which can be used for: **Wine** , **Steam** , **Native** , **Emulators**  
Has vast variety of options 👾

❗When using **Proton** or **Protonified** engine with Lutris you **MUST** use option:

- ✅ **Disable [Lutris runtime](https://github.com/lutris/docs/blob/master/LutrisRuntime.md)** either globally or for specific game.  
See how at **[5.2 Configuration](#heading--linux-gaming-lutris-config)** and **[5.4 Game configuration](#heading--linux-gaming-lutris-game-config)**.

* * *

Config locations:

```plaintext
~/.config/lutris
~/.local/share/lutris

```

Icons created by **Lutris** (might be useful to backup / transfer your library):

```plaintext
~/.local/share/icons/hicolor/128x128/apps

```

Wine / Proton engines location

```plaintext
~/.local/share/lutris/runners/wine

```

A lot of useful libraries & runtimes which for example allow to easily run **Proton** without steam client!

```plaintext
~/.local/share/lutris/runtime

```

### 1. Setup

Install **Lutris** package:

```bash
lutris

```

### 2. Configuration

You can configure **Defaults** for each runner (Default settings when you add new game)  
On left panel hover your 🐁 over **Wine** tab - ⚙ **Cog** will appear, press it!

✅ **Show advanced options** on left bottom -we’re no amateurs here 🤖

Runner options tab:

- **Wine version** - most important one, here you can set / update default **Engine** which will be used for all games, you can use anything installed: System, PlayOnLinux, Steam  
or any **Engine** you put in:

```plaintext
~/.local/share/lutris/runners/wine

```

```plaintext
~/.PlayOnLinux/wine/linux-amd64

```

- ✅ **Enable DXVK/VKD3D** - useful to turn off globally, if your GPU doesn’t support Vulkan

System options tab:

- Other ones may be useful to have:  
✅ **Restore resolution on game exit**  
✅ **Switch to US keyboard layout** (may remedy problems in case of multi-lingual inputs)

### 3. Add game

1. Press ➕ plus on top of GUI, to add game, let’s do it minimal setup required to start.

2. **Game info** tab

3. **Game options** tab

4. **Save** - your game will now be available on list

5. If there’s no game image, that’s caused by **Name** not exactly identical to database one.  
No worries - easy to fix by **Identifier**!

### 4. Game configuration

Here are some essential configuration options to know!

Select game, Right&nbsp;🐁&nbsp;Button → Configure

Runner options tab:

1. **Wine version** - you can force **Engine** for specific game (will be used even if you change global, so don’t forget to change that option back if you need)

2. ✅ **Enable DXVK/VKD3D** in most cases it’s best to use it, but you can toggle in case of problems

3. **DXVK version** - you can force specific **DXVK** version for specific game, in case of problems.

4. ✅ **Enable Esync** - best to enable in most games which heavily use CPU or avoid stutter

5. ✅ **Enable Fsync** - same as **Esync** , should be better, but **Engine** and **Kernel** must support it!  
Lutris will alert you if it’s not supported by **Engine** in use 👾

System options tab:

1. ✅ **Disable Lutris runtime**

Game options tab:

1. **Arguments** - that is very useful option!  
You can pass game command-line options, for example in **Crysis** let’s force DirectX 10 mode:

```plaintext
-dx10

```

### 5. Install game

**Lutris** is easiest way to install games without 🧠, it will auto-install required **Engine** and **Winetricks**!  
Also you can download **Install script** and edit it yourself 👾

❗ However it’s not recommended method of installation (without 🧠), because:

• Scripts are made by other people and can be opinionated, outdated or not include current best practices mentioned in this guide, sometimes even work worse!

• Scripts can use win32 **Engine** which makes no sense this days.  
You can change Wine / Proton version later, but not it’s **ARCH**!

* * *

1. Find your game from **Lutris** program (or on **[Lutris db](https://lutris.net/games)**)

2. Select game, Install

3. Choose **Installer script** to use, it might be:  
**Wine** / **Steam** / **Emulator** - choose wisely!

4. From now just follow dialogs and install whatever is offered to you

5. Turn off **Lutris** search mode, now it will be available in your games library and you can play

  

# Common problems

### Sound crackles / cut off phrases

That is very rare case, for example with **Mirror’s edge (2009)**

1. Install packages

2. Configure by running terminal command:

3. Apply

4. For **Wine** / **Lutris** override dll with **winecfg**

* * *

### Can’t set resolution / resolution is messed up

For **Wine** / **Lutris** :

1. Select game in **Lutris** , Right&nbsp;🐁&nbsp;Button → Wine Configuration open Graphics tab
2. ✅ **Emulate a virtual desktop**
3. You can change **Desktop size** if you need
4. Press Apply and OK
5. Now you can:
  - Change resolution in-game options, preferably to your native  
Disable **Emulate a virtual desktop** which you’ve used on step 2

  - Just keep using it with **Virtual desktop**

  

# Advanced

### GPU PhysX

So many times people on **protondb** mentioned, even on Nvidia GPUs to just turn off PhysX, because game start to lag since there are no GPU acceleration for it…

There are very interesting games with PhysX and no reason to limit yourself, which could make a world of difference!

1. GPU PhysX works only with **wine-staging** engine for now.

2. Install OpenCL headers

3. Install CUDA for your driver version:

4. In your game PREFIX install this **winetricks** :

5. Make sure **PhysX** enabled in game settings!

Problems:

- Some newer games like **Batman Arkham knight** for example, use newer library called **nvapi** , for now it’s **[not supported](https://github.com/doitsujin/dxvk/wiki/Common-issues#nvapi)**

- There are constantly **[attempts](https://github.com/doitsujin/dxvk/issues/853)** to add it, but it’s real die hard! 🌰 if you have ideas & experience - please step in and help!

### ReShade & Ray tracing on any GPU in any game

**[FOSS screen space ray tracing with any game and GPU](https://forum.endeavouros.com/t/foss-screen-space-ray-tracing-with-any-game-and-gpu-on-linux-wine-proton/6252)**

  

# Resources

| Project | Links | Bugs | Wiki | Support | Devs |
| --- | --- | --- | --- | --- | --- |
| DXVK | [GitHub](https://github.com/doitsujin/dxvk) | [GitHub](https://github.com/doitsujin/dxvk/issues) | [Wiki](https://github.com/doitsujin/dxvk/wiki) | | [doitsujin](https://github.com/doitsujin)  
 [Joshua-Ashton](https://github.com/Joshua-Ashton)  
 [Contributors](https://github.com/doitsujin/dxvk/graphs/contributors) |
| VKD3D | [GitHub&nbsp;(Proton)](https://github.com/HansKristian-Work/vkd3d-proton)  
 [GitLab&nbsp;(Wine)](https://gitlab.winehq.org/wine/vkd3d) | [GitHub&nbsp;(Proton)](https://github.com/HansKristian-Work/vkd3d-proton/issues)  
 [Bugzilla&nbsp;(Wine)](https://bugs.winehq.org/describecomponents.cgi?product=vkd3d) | [Wiki](https://wiki.winehq.org/Vkd3d) | | [Józef Kucia (RIP)](https://www.winehq.org/news/2019091101)  
 Alexandre Julliard  
 [Hans-Kristian Arntzen](https://github.com/HansKristian-Work)  
 [Contributors (Wine)](https://gitlab.winehq.org/wine/vkd3d/-/graphs/master?ref_type=heads)  
 [Contributors (Proton)](https://github.com/HansKristian-Work/vkd3d-proton/graphs/contributors) |
| Lutris | [Website](https://lutris.net)  
[GitHub](https://github.com/lutris/lutris)   
 [Database](https://lutris.net/games) | [GitHub](https://github.com/lutris/lutris/issues) | [Wiki](https://github.com/lutris/lutris/wiki) | [Donate](https://lutris.net/donate) | [Mathieu Comandon](https://github.com/strycore)  
 [Contributors](https://github.com/lutris/lutris/graphs/contributors) |
| Wine | [GitLab](https://gitlab.winehq.org/wine/wine)  
 [Database](https://appdb.winehq.org/) | [Bugzilla](https://bugs.winehq.org/) | [Wiki](https://wiki.winehq.org/Main_Page)  
 [Docs](https://www.winehq.org/documentation) | [Donate](https://www.winehq.org/donate) | [Army of them](https://wiki.winehq.org/Who%27s_Who) |
| Wine&nbsp;staging | [GitLab](https://gitlab.winehq.org/wine/wine-staging) | [Bugzilla](https://bugs.winehq.org/describecomponents.cgi?product=Wine-staging) | [Wiki](https://wiki.winehq.org/Wine-Staging) | [Patreon](https://www.patreon.com/winestaging) | [Alistair Leslie-Hughes](https://gitlab.winehq.org/alesliehughes)  
 [Contributors](https://gitlab.winehq.org/wine/wine-staging/-/project_members?page=1) |
| Proton | [GitHub](https://github.com/ValveSoftware/Proton)  
 [Database](https://www.protondb.com/) | [GitHub](https://github.com/ValveSoftware/Proton/issues) | [Wiki](https://github.com/ValveSoftware/Proton/wiki)  
 [Options](https://github.com/ValveSoftware/Proton#runtime-config-options) | [Patreon (protondb)](https://www.patreon.com/protondb) | Valve  
 [Contributors](https://github.com/ValveSoftware/Proton/graphs/contributors) |
| Kron4ek | [GitHub](https://github.com/Kron4ek/Wine-Builds) | [GitHub](https://github.com/Kron4ek/Wine-Builds/issues) | [README](https://github.com/Kron4ek/Wine-Builds?tab=readme-ov-file#available-builds) | [Sponsor](https://github.com/Kron4ek/Wine-Builds) | [Kron4ek](https://github.com/Kron4ek)  
 [Contributors](https://github.com/Kron4ek/Wine-Builds/graphs/contributors) |
| Wine-GE | [GitHub (Wine)](https://github.com/GloriousEggroll/wine-ge-custom/releases) | | [README](https://github.com/GloriousEggroll/wine-ge-custom?tab=readme-ov-file#wine-ge-custom) | [Patreon](https://www.patreon.com/gloriouseggroll) | [GloriousEggroll](https://github.com/GloriousEggroll)  
 [Credits](https://github.com/GloriousEggroll/wine-ge-custom?tab=readme-ov-file#credits) |
| Proton-GE | [GitHub (Proton)](https://github.com/GloriousEggroll/proton-ge-custom/releases) | | [Wiki](https://github.com/GloriousEggroll/proton-ge-custom/wiki)  
 [README](https://github.com/GloriousEggroll/proton-ge-custom#proton-ge-custom) | [Patreon](https://www.patreon.com/gloriouseggroll) | [GloriousEggroll](https://github.com/GloriousEggroll)  
 [Credits](https://github.com/GloriousEggroll/proton-ge-custom#credits) |
| Wine-TKG   
 Proton-TKG | [GitHub](https://github.com/Frogging-Family/wine-tkg-git) | [Bugs](https://github.com/Frogging-Family/wine-tkg-git/issues) | [Wiki](https://github.com/Frogging-Family/wine-tkg-git/wiki) | [Patreon](https://www.patreon.com/tkglitch) | [Frogging-Family](https://github.com/Frogging-Family) |

---

_[View the full topic](https://forum.endeavouros.com/t/linux-gaming-guide/7339)._
