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
use glxinfo|grep 'OpenGL renderer string'
to get the stringvulkaninfo|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