You are not logged in.

#1 2026-01-24 22:41:12

virgilggx
Member
Registered: 2024-05-12
Posts: 29

[SOLVED] Nvidia PRIME does not work with Victoria 3

Hello,

I recently purchased a Legion Pro 5 16 with the following two GPUs:
- Ryzen 9 8940HX iGPU
- RTX 5070 dGPU

I am using the 6.17.13-hardened1-2-hardened,  KDE Plasma 6, and Wayland.
I have configured PRIME to use both GPUs.

I also added to the Steam launcher settings (and in the .desktop environment variables) :

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

When I launch the game launcher, it is indeed the Nvidia GPU that is running:

❯ nvidia-smi
Sat Jan 24 23:33:41 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 590.48.01              Driver Version: 590.48.01      CUDA Version: 13.1     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 5070 ...    On  |   00000000:01:00.0 Off |                  N/A |
| N/A   50C    P4             10W /   50W |     144MiB /   8151MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A           43425      G   .../launcher-v2.2025.15/Launcher        113MiB |
|    0   N/A  N/A           43535      G   .../launcher-v2.2025.15/Launcher          2MiB |
+-----------------------------------------------------------------------------------------+

But once I press the play button, the game itself launches on the iGPU.

Is there a way to switch Nvidia varenv to the game process?


[EDIT]

Works with :

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia "/home/USERNAME/.local/share/Steam/steamapps/common/Victoria 3/binaries/victoria3" %command% 

Replace  USERNAME with your username.
This will skip launcher, so remove this line to enable / disable mods or DLC.

Last edited by virgilggx (2026-01-25 12:40:13)

Offline

#2 2026-01-25 05:09:53

5hridhyan
Member
From: Asia
Registered: 2025-12-25
Posts: 231

Re: [SOLVED] Nvidia PRIME does not work with Victoria 3

try with this in launch options

__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only %command% -skiplauncher

if it's still stubborn try with this, also with -skiplauncher

__NV_PRIME_RENDER_OFFLOAD=1 VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json %command%

*it hard forces NVIDIA vulkan, idk it might affect other games, so use pre-game only,

edit:
i'm kinda confused if the game is vulkan or opengl, if it's opengl then "__GLX_VENDOR_LIBRARY_NAME=nvidia" it's correct.
https://wiki.archlinux.org/title/PRIME# … _using_GPU
https://www.tuxedocomputers.com/en/PRIM … ide.tuxedo

Last edited by 5hridhyan (2026-01-25 10:17:22)

Offline

Board footer

Powered by FluxBB