Steam: Difference between revisions
imported>Jhvst add gamescope subsection with relevant information under "Adding missing dependencies" |
imported>Jhvst troubleshooting: add section about changing AMD GPUs driver |
||
| Line 147: | Line 147: | ||
Note: If a game gets stuck on Installing scripts, check for a DXSETUP.EXE process and run it manually, then restart the game launch. | Note: If a game gets stuck on Installing scripts, check for a DXSETUP.EXE process and run it manually, then restart the game launch. | ||
==== Changing the driver on AMD GPUs ==== | |||
Sometimes, changing the driver on AMD GPUs helps. To try this, first, install multiple drivers such as radv and amdvlk: | |||
<syntaxHighlight lang=nix> | |||
hardware.opengl = { | |||
## radv: an open-source Vulkan driver from freedesktop | |||
driSupport = true; | |||
driSupport32Bit = true; | |||
## amdvlk: an open-source Vulkan driver from AMD | |||
extraPackages = [ pkgs.amdvlk ]; | |||
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ]; | |||
}; | |||
</syntaxHighlight> | |||
In the presence of both drivers, Steam will default to amdvlk. The amdvlk driver can be considered more correct regarding Vulkan specification implementation, but less performant than radv. However, this tradeoff between correctness and performance can sometimes make or break the gaming experience. | |||
To "reset" your driver to radv when both radv and amdvlk are installed, set either <code>AMD_VULKAN_ICD = "RADV"</code> or <code>VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json"</code> environment variable. For example, if you start Steam from the shell, you can enable radv for the current session by running <code>AMD_VULKAN_ICD="RADV" steam</code>. If you are unsure which driver you currently use, you can launch a game with [https://github.com/flightlessmango/MangoHud MangoHud] enabled, which has the capability to show what driver is currently in use. | |||
=== SteamVR === | === SteamVR === | ||