9
submitted 1 week ago* (last edited 1 week ago) by arsCynic@beehaw.org to c/linux_gaming@lemmy.ml

Your games on Linux might unknowingly run slower than they need to. My games had inconsistent FPS between different sessions—smooth 144 FPS between stuttering ± 120 FPS—and I couldn't figure out why because all the logs indicated it was running on my dedicated GPU.

First I assumed it was a caching problem due to running distributed computing projects 24/7 [finding primes, not crypto"currencies", don't worry], but it turns out it was in fact arbitrarily using the desktop CPU's integrated graphics instead of the GPU.

Via the Steam game launch options command below one can force the use of one's dedicated GPU—0 or 1 depending on one's PC.

__NV_PRIME_RENDER_OFFLOAD=0 __GLX_VENDOR_LIBRARY_NAME=nvidia %command%

top 2 comments
sorted by: hot top controversial new old
[-] arsCynic@beehaw.org 2 points 20 hours ago* (last edited 20 hours ago)
[-] everett@lemmy.ml 1 points 20 hours ago

DRI_PRIME=1 %command%

this post was submitted on 20 Apr 2025
9 points (90.9% liked)

Linux Gaming

17146 readers
53 users here now

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

founded 5 years ago
MODERATORS