A script I use to launch steam games on my CachyOS desktop
gameoptimizer
edited
1#!/bin/bash
2
3# HOW TO USE: Add this file to any folder in your path, and set this launch parameter in Steam:
4# gameoptimizer %command%
5
6export PROTON_FSR4_UPGRADE=1 # Enable FSR4
7export DXIL_SPIRV_CONFIG="wmma_rdna3_workaround" # Enable FSR4 on RDNA3 (FP8 emulation)
8export PROTON_USE_NTSYNC=1 # Enable NTSync
9export VKD3D_SHADER_DEBUG="none" # Disable VKD3D logging
10export PROTON_PRIORITY_HIGH=1 # Set high CPU priority
11export STAGING_SHARED_MEMORY=1 # Better memory management
12export PROTON_HEAP_DELAY_FREE=1 # Prevent crashes due to memory bugs
13
14# Use with Goverlay settings
15# Capture game in OBS
16# Launch gamescope window with these settings:
17### Launch in fullscreen
18### Enable adaptive-sync. May be unnecesary in your DE
19### Enable hdr. Remove this line if your monitor is not hdr capable
20### Define window resolution, use your monitor resolution for this setting
21### 115 fps max. to ensure VRR is working correctly. I have a 120Hz monitor, so 120-5=115
22exec $HOME/fgmod/fgmod \
23 obs-gamecapture \
24 gamescope \
25 --fullscreen \
26 --adaptive-sync \
27 --hdr-enabled \
28 -W 2560 -H 1440 \
29 -r 115 \
30 -- "$@"