Skip to content

Instantly share code, notes, and snippets.

@ThisIsAreku
Last active October 28, 2020 12:54
Show Gist options
  • Save ThisIsAreku/66eabedd25b6c52e90544c57bb28ceeb to your computer and use it in GitHub Desktop.
Save ThisIsAreku/66eabedd25b6c52e90544c57bb28ceeb to your computer and use it in GitHub Desktop.
Steam on Linux - cheatsheet

Useful environment variables to run app on dGPU

__NV_PRIME_RENDER_OFFLOAD=1         # enable renderer offloading
__GLX_VENDOR_LIBRARY_NAME=nvidia    # required for GLX app
__VK_LAYER_NV_optimus=NVIDIA_only   # report only NVIDIA gpu to Vulkan

DXVK (https://github.com/doitsujin/dxvk) might use the iGPU, we filter for Nvidia devices only.
use glxinfo|grep 'OpenGL renderer string' to get the string use vulkaninfo|grep deviceName to get the string (from vuklan-tools package)

DXVK_FILTER_DEVICE_NAME="GeForce"
DXVK_HUD=1
PROTON_LOG=1 # optionnal

Steam game command line parameter:

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only DXVK_FILTER_DEVICE_NAME="GeForce" %command%

DXVK_HUD possible values

  • 1: devinfo,fps
  • full: all of them
  • devinfo: Displays the name of the GPU and the driver version.
  • fps: Shows the current frame rate.
  • frametimes: Shows a frame time graph.
  • submissions: Shows the number of command buffers submitted per frame.
  • drawcalls: Shows the number of draw calls and render passes per frame.
  • pipelines: Shows the total number of graphics and compute pipelines.
  • memory: Shows the amount of device memory allocated and used.
  • gpuload: Shows estimated GPU load. May be inaccurate.
  • version: Shows DXVK version.
  • api: Shows the D3D feature level used by the application.
  • compiler: Shows shader compiler activity
  • samplers: Shows the current number of sampler pairs used [D3D9 Only]

Edit user_settings.py in $HOME/.steam/steam/steamapps/common/Proton/ so it's applied on every Proton games

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment