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)