How I got Counter Strike 2 to run smooth with downscaling
I've spent many nights trying to get CS:2 to run somewhat smooth in Linux, so I thought I'd share the combination of settings I've found to make it run flawlessly.
At 3840 x 1600 @ 160 Hz, my monitor seems to be pushing the limits of what my 6700 XT + i9-9900K desktop is able to handle. Running at monitor native resolution was not a great experience for competitive CS, both due to being too big at 38", and computer struggling to keep up with the resolution.
Downscaling to any of the lower native resolutions in CS2 would make the game a blurry mess. With the following settings, my FPS is close to what I've been seeing in Windows previously. I no longer dual boot, so I haven't been able to confirm with actual stats.
On my 3840 x 1600 monitor, this gives me 1440p with black bars.
If you want to stretch the image you could add -S stretch or even downscale to 1080p:
-W 2560 -H 1440 -w 1920 -h 1080 -f -S stretch
Details
env LD_PRELOAD="" I had some random stutter after 40 min of gameplay, and I think this was the fix. I believe this stops the steam overlay renderer from being loaded.
--mangohud is optional, so you can run without it if you want, but will give you a nice, highly configurable monitoring overlay.
-noreflex gave me +20% FPS boost, and as far as I understand my GPU doesn't even support reflex.
--force-grab-cursors is necessary, or the mouse will be inverted and locked to a tiny box in the middle of the screen for some reason.
Variable refresh rate
--adaptive-sync should be enabled if your monitor supports VRR (Freesync / GSync).
If you use Gnome, you have to enable VRR as an experimental feature for now
Refresh rate is not specified ingame without -r [your refresh rate here], but it seems like the game is running at whatever the refresh rate is set to in your DE, even though display settings are saying "60".
--framerate-limit 156 To avoid VRR range exceedance, it is recommended to set a frame cap to ~3% below your refresh rate.
When it comes to the graphic settings in CS2 I use freesync with vsync off. As far as I understand, vsync will only happen if the VRR range is exceeded. Therefore input lag will not be increased, as long as FPS is below your refresh rate. This seems accurate, as I could not notice any difference with it on/off after capping the FPS to 156. I was always very sensitive to the judder vsync introduced on traditional TN/VA panels, and it is in my opinion no longer noticeable with VRR.
If you don't have VRR you should probably disable vsync to avoid judder. Tearing is generally preferred over judder for competitive game-play in my experience. Also:
@ag10n@Arose8334 vsync locks the game to the monitors refresh rate. I'm pretty sure adaptive sync and free sync adjust the displays refresh rate to match the game.
It syncs the output of the graphics card with the display
Similar to vsync in that you’re telling the software/source to sync with the display; adaptive means it’s not a fixed frequency/framerate
Developed by VESA, Adaptive Sync adjusts the display’s refresh rate to match the GPU’s outputting frames on the fly. Every single frame is displayed as soon as possible to prevent input lag and not repeated, thus avoiding game stuttering and screen tearing.
Without adaptive sync is still better than native resolution without gamescope, so I'm not sure why you're so dismissive. I'm just trying to share a list of tweaks that made the experience better.