Skip to content

Instantly share code, notes, and snippets.

@srlemke
Last active December 25, 2024 11:27
Show Gist options
  • Save srlemke/8486be004bbac5278ff1b94cf5eec099 to your computer and use it in GitHub Desktop.
Save srlemke/8486be004bbac5278ff1b94cf5eec099 to your computer and use it in GitHub Desktop.
Properly set a frame limiter on Linux with correct Hz for the res. on MangoHUD
#Get the correct refresh rate for the amount of frames/Hz:
-> Bellow is my resolution(5120x1440) and my desired frame cap(165), I want it to display the ideal Hz for that.
I will use the CLI command 'cvt':
slemke@leap:~> cvt 5120 1440 165.00
# 5120x1440 164.88 Hz (CVT) hsync: 261.83 kHz; pclk: 1881.00 MHz
Modeline "5120x1440_165.00" 1881.00 5120 5584 6152 7184 1440 1443 1453 1588 -hsync +vsync
-> Above we can see that the ideal Hz for my resolution@fps is 164.88, so, in my case, we add it to MangoHud config:
slemke@leap:~> grep fps_limit .config/MangoHud/MangoHud.conf
#fps_limit=164.88
fps_limit=119.98
#fps_limit=143.91
#fps_limit=239.90
On iRacing it seems to be sweet spot 117, which I configure on on mangoHud as:
#fps_limit=116.93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment