I’m deep in the weeds of tinkering with how Steam launches games. In Linux you have a bunch of options. Here’s some experiments I did running Borderlands 4 (Unreal Engine 5) on a mini PC with an AMD Ryzen 7 PRO 8845HS and a Radeon 780M graphics chip, trying to run the game at 1080p on my 6016 x 3384 screen.
Note this machine is woefully underpowered to run this game well, I’m on full Low settings. And Borderlands 4 is considered poorly optimized. I’m mostly concerned about the different display options: resolutions, HDR, upscaling. Those choices should apply on better hardware too but there’s less need to squeeze out more pixels with clever choices.
In all cases I’m changing launch options by right clicking the game in Steam, choosing General / Launch Options, and then pasting in command strings.
I’m using GE-Proton11-1 as the compatibility tool. This is a very recent version.
A useful reference: Proton Variants. This documents all the various fiddly environment variables the different compatibility tools use.
First, two digressions on other options
Frame generation
I am not ever enabling “frame generation” (DLSS or FSR) in the game. This is a gimmick where the GPU will generate whole frames by time-interpolating other frames. But it doesn’t look very good and it adds latency and seems always bad to use.
Gamemoderun
A wildcard: you can preface any program you run with gamemoderun. That enables game mode, a set of Linux kernel tweaks that lowers latency. This seems entirely orthogonal to different display options and offers only a tiny improvement, at least on a quiet system. I mostly use it but will not worry about testing it separately, I just use it everywhere.
Simply running it directly
gamemoderun %command%.
Just launch the game directly without tweaks. This works pretty well in Borderlands and arguably is the best way to run the game. The game will try to run at full desktop resolution but Borderlands detects other resolutions and lets you apply them. You can pick your upscaling algorithm, I’m using AMD’s FSR. TSR looks better but is a little slower.
The one drawback with this is there’s no HDR.
Running it directly with HDR
PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 DXVK_HDR=1 ENABLE_HDR_WSI=1 gamemoderun %command%
This is a variant of simply running it: Borderlands will talk directly to the display compositor the desktop is using. However there’s a whole raft of flags there to enable HDR. Why three flags for HDR? I don’t know honestly, I’m copying what the AI tells me to do. It’s possible these aren’t all necessary, particularly with GE-Proton, but they are harmless if not used.
The other flag here is PROTON_ENABLE_WAYLAND=1. That’s arguably the most important one. Without it, Proton runs games under XWayland, so that Proton is using X11 graphics and the XWayland X server is translating those to Wayland. With that Proton uses a native Wayland driver. That’s better but I guess that native driver isn’t entirely stable yet, so it’s not the default.
Running with Gamescope
gamemoderun gamescope -W 2560 -H 1440 -f -F fsr -- %command%
Gamescope is an intermediate compositor that smooths over a bunch of issues with gaming on Linux. It basically creates a virtual display that the game draws too, then blits that image to the real display. It’s pretty low latency and has solved a lot of problems for me, particularly older games that don’t seem to understand the Linux display very well. It doesn’t seem necessary for Borderlands 4 but we’ll try it anyway. (One drawback: Gamescope breaks the Steam overlay. There’s an experimental flag to enable it again but it doesn’t seem to work.)
-f just tells gamescope itself to be fullscreen, not a window.
-W 2560 -H 1440 -F fsr tells gamescope to run its virtual display at 1440p and use FSR if needed to scale things. The game will think it is running on a 1440p monitor. Borderlands lets me choose my own resolution inside the game, and I choose 1080p. So now Borderlands is drawing at 1080p.
Borderlands is well behaved and lets me set the resolution. Another way to set the resolution is to add -w 1920 -h 1080 to the gamescope options. That tells gamescope to tell the game it’s a 1080p screen but to automatically upscale to 1440p itself. I’m acomplishing the same thing by using the Borderlands menu to pick 1080p.
An added complication here is Borderlands itself may do some spatial upscaling depending on the graphics settings. I’m a little fuzzy on this but an AI tells me on “Performance” mode it renders the game at 50% (540p). So there’s several scaling steps here.
- 540p: the actual game geometry rendering
- 540p → 1080p. Borderlands upscaling with FSR 3.0
- 1080p → 1440p. Gamescope upscaling with FSR 1.0
- 1440p → 3384p. Linux graphics (KDE’s compositor?) upscaling with a crummy linear filter.
- 3384p → monitor. Linux is handing a full 3384p signal so the monitor doesn’t need to use its hardware upscaler. In other circumstances the monitor might upscale.
Writing all this out, step 3 seems bogus and it’d be better to eliminate it. Have gamescope just work at the same resolution you want the game to work at. The flipside is the FSR 1.0 in step 3 is probably better than whatever upscaling is in steps 4 and 5, so it might still be preferable to do the extra work in gamescope.
The other option that seems appealing is to run gamescope -W 6016 -h 3384 and have it fully upscale things with FSR 1.0. I think that’s how gamescope is intended to be used. But that’s a lot of pixels and this little video card is kinda limited, so the AI is advising me 1440p is better. FWIW I tried it at 3384p and it seemed to run just the same as with gamescope at 1080p.
Gamescope with HDR
ENABLE_HDR_WSI=1 DXVK_HDR=1 gamemoderun gamescope -W 2560 -H 1440 -f -F fsr --hdr-enabled -- %command%
Gamescope by default doesn’t do HDR. You have to add these flags to enable HDR both in the game (the environment variables) and in gamescope (--hdr-enabled).
Putting it all together
For Borderlands, I don’t want to use gamescope. I mean I could, and maybe the FSR 1.0 upscaling is better than the linear upscaling the Linux desktop would do. But it doesn’t look much better and gamescope certainly adds complexity and a little latency.
Without Gamescope I get about 39 fps in one little test I ran with this command:
PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 DXVK_HDR=1 ENABLE_HDR_WSI=1 gamemoderun %command%
If I did want to use gamescope, I’d run it at 1080p like this. I tried this and it might look a tiny bit better and runs at 38 fps instead of 39.
ENABLE_HDR_WSI=1 DXVK_HDR=1 gamemoderun gamescope -w 1920 -h 1080 -W 1920 -H 1080 -f -r 60 --hdr-enabled -- %command%
Closing thoughts
Hilarious thing: all these various options don’t really look that different to me. It seems less blurry when I do the more “optimal” things. And maybe I get 10% more framerate depending on how I tweak it. But honestly with this particular heavy game and this particular underpowered hardware, it’s not a big thing.
Linux gaming is easy!
Seriously, all this tinkering is ridiculous. One nice thing about Bazzite is you can ignore most of it: if you use Game Mode, it just handles Gamescope in the background and stuff works. Desktop Steam should get there eventually, but this transition where options like native Wayland rendering don’t work reliably yet is awkward.