User:Sabak/Gaming

From ArchWiki

The biggest usecase most users look for landing on this page is functional substitution via Wine/Proton. As such, a quick and to the point procedure to run games is imperative and covered below. For anything indepth, visit Wine. and Proton. For different environment, #Game environments..

This has been tested on an Arch Linux machine and a large portion of games ran out of the box. Multilib must be enabled. Check the AUR if the packages below are not found under Pacman.

1. Installing drivers

Preparing the hardware.

Install the mesa, lib32-mesa packages.

This is for Intel and AMD. See NVIDIA for respective packages. Further packages were needed such as mesa-libgl and lib32-mesa-libgl but since they have been merged in mesa, it is replaced and no longer needed.

2. Installing graphics* SDK

Preparing the SDKs.

Install the DDX and Vulkan packages for AMD - xf86-video-amdgpu, vulkan-radeon, lib32-vulkan-radeon, amdvlk, lib32-amdvlk, vulkan-amdgpu-proAUR, lib32-vulkan-amdgpu-proAUR, vulkan-icd-loader, lib32-vulkan-icd-loader.

Install the Open*L packages - openal, lib32-openal, opencl-amdAUR, ocl-icd, lib32-ocl-icd.

As before, check Nvidia for respective packages. Some of these package names may have changed. Look for opencl-icd-loaderAUR, lib32-opencl-icd-loaderAUR, openclAUR, lib32-opencl-amdAUR instead if the above are not present.

3. Installing general system dependencies

Preparing system dependencies.

Some of these might already be on your system as a result of the installation of other software (e.g Vlc, Clementine, GnuPG, PulseAudio, etc). Verify just in case.

Install the following packages:

These are libraries needed by the system itself along with core microsoft fonts.

4. Installing Wine/Proton and Mono

Preparing the functional substitution layer.

Install wine - wine, winetricks.

Install proton - protonAUR, protontricksAUR, proton-nativeAUR, steam-native-runtime.

Install mono - mono, monodevelop-stableAUR

These are frameworks/packages providing alternate calls.

5. Installing prefix redistributables in Wine/Proton

Preparing prefix redistributables.

$ winetricks corefonts dxvk vcrun2017
$ protontricks corefonts dxvk vcrun2017

These commands prepare your prefix with the game's actual dependencies. If your game needs more dependencies (mf-media or others), you need to install them here.

6. Installing microcode

Preparing processor patches.

Install amd-ucode for AMD or intel-ucode for Intel.

Nvidia may or may not provide processor patches. For overall information on what this is, see Microcode.

7. Running your game and extra parameters

Preparing config (if necessary).

Attempting to use the x64 version of each of these below may also work.

Adding DRI_PRIME=1 to wine/proton's flags can attempt to run the game using your graphics card if the game falls back to software rendering for whatever reason.

Note: There are kernel packages and staging versions for custom builds of wine/proton just in case doing all the steps fails to run your game. Further, check ProtonDB.com to see if anyone has any solutions/tweaks and if the game has been successfully run. Below are the GitHub repository links if you wish to stay updated:
$ wine game.exe
$ proton run game.exe
$ wine64 game.exe
...

Verify logs and output if the commands above do not work.