2 bugs / issues

gamescope breaks vsync and limting fix, mangohud makes games not start


game-run --no-mangohud gamescope -w 1920 -h 1080 -W 1920 -H 1080 -r 60 --force-grab-mouse --mangoapp -- %command%

game-run is a bash script
#!/bin/bash

# Set common environment variables
export __GL_SHADER_DISK_CACHE=1
export __GL_SHADER_DISK_CACHE_SIZE=100000000000
export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1
export __GL_SYNC_TO_VBLANK=1
export OBS_VKCAPTURE=1
export ENABLE_VKBASALT=1
export DXVK_HUD=compiler
export STRANGLE_VSYNC=2
export DXVK_FRAME_RATE=60
export VKD3D_FRAME_RATE=60
export MANGOHUD_CONFIG="preset=2,fps_limit=60"

# Check for '--no-mangohud' flag
NO_MANGOHUD=0
CLEAN_ARGS=()
for arg in "$@"; do
    if [ "$arg" == "--no-mangohud" ]; then
        NO_MANGOHUD=1
    else
        CLEAN_ARGS+=("$arg")
    fi
done

# Adjust MANGOHUD based on the flag
if [ "$NO_MANGOHUD" -eq 1 ]; then
    export MANGOHUD=0
    exec gamemoderun strangle 60 -v 2 "${CLEAN_ARGS[@]}"
else
    export MANGOHUD=1
    exec mangohud gamemoderun strangle 60 -v 2 "${CLEAN_ARGS[@]}"
fi

fps doesnt seem to be locked at 60fps when i use gamescope but without gamescope only game-run --no-mangohud %command%
fps is locked and limited to 60fps

also mangohud makes games not start this is why i use --no-mangohud, idk what is wrong in mangohud
my mangohud config
Was this page helpful?