#!/bin/bash # HOW TO USE: Add this file to any folder in your path, and set this launch parameter in Steam: # gameoptimizer %command% export PROTON_FSR4_UPGRADE=1 # Enable FSR4 export DXIL_SPIRV_CONFIG="wmma_rdna3_workaround" # Enable FSR4 on RDNA3 (FP8 emulation) export PROTON_USE_NTSYNC=1 # Enable NTSync export VKD3D_SHADER_DEBUG="none" # Disable VKD3D logging export PROTON_PRIORITY_HIGH=1 # Set high CPU priority export STAGING_SHARED_MEMORY=1 # Better memory management export PROTON_HEAP_DELAY_FREE=1 # Prevent crashes due to memory bugs # Use with Goverlay settings # Capture game in OBS # Launch gamescope window with these settings: ### Launch in fullscreen ### Enable adaptive-sync. May be unnecesary in your DE ### Enable hdr. Remove this line if your monitor is not hdr capable ### Define window resolution, use your monitor resolution for this setting ### 115 fps max. to ensure VRR is working correctly. I have a 120Hz monitor, so 120-5=115 exec $HOME/fgmod/fgmod \ obs-gamecapture \ gamescope \ --fullscreen \ --adaptive-sync \ --hdr-enabled \ -W 2560 -H 1440 \ -r 115 \ -- "$@"