Skip to content

High refresh rate support

Created by: Druneau

With the script as is it wouldn't select some of my higher refresh rates. My current refresh rate setup consists of:

  • 100Hz for 25/50fps
  • 96Hz for 24fps
  • 95.904Hz for 23.976fps
  • 90Hz for 30fps
  • 89.991Hz for 29.997fps
  • 60Hz for 60fps
  • 59.994Hz for 59.994fps

First problem I had was that the script only tries matching with a 3x multiplier. Because of this it was never able to choose the highest refresh rates. Then I realized the for loop was testing "1 x fps" before 2x.. which made it return the lowest matching refresh rate.

So I changed it from:

for m=1, 3 do

to;

for m=4, 1, -1 do

This allows your script to work beautifully with high refresh rates.

Thanks for posting it.