this post was submitted on 29 Sep 2023
1000 points (97.2% liked)
Linux Gaming
15891 readers
22 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 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Sure thing! Right click on any game in Steam and click Properties. Then in the General tab, you'll see a Launch Options box where you can paste these arguments in.
What most people get wrong when first trying to use it is not knowing how to correctly specify environment variables vs launch options that get passed to the game executable. If you just want to pass arguments to the game, just paste them into the box. So for example with Cyberpunk, you can just paste in
and Steam will launch the game as if you were running
However, if you want to specify environment variables as well, you'll need the
%command%
placeholder. So, in order to enable raytracing and bypass the driver check for ray reconstruction in Cyberpunk, I paste these launch arguments into the settings:which is like running
%command%
is just a placeholder for the game's executable path.Hope that clears things up with regards to the launch options.
As far as knowing which environment variables to use, that's on a game-by-game basis, but the two most common ones that I use for Nvidia GPUs are
PROTON_ENABLE_NVAPI=1
which enables DLSS in games that are not on Proton's NVAPI whitelist, andVKD3D_CONFIG=dxr11
which enables raytracing. I almost never bother with any other environment variables unless there's special game issues I need to workaround (like Cyberpunk's driver version check), in which case I check ProtonDB or the game's issue tracker on the Proton GitHub page.