Skip to content

fix: a mode picked at 59 Hz is still applied when the screen is at 60 - #215

Merged
lippdev merged 1 commit into
mainfrom
fix/refresh-rate-exact-59
Nov 17, 2026
Merged

lippdev merged 1 commit into
mainfrom
fix/refresh-rate-exact-59

Conversation

@lippdev

@lippdev lippdev commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Follow-up to #212, from Pullfrog's review (#214 (comment)).

What

DisplayModeMatch.IsSame accepted any rate within 1 Hz, both ways. A TV at @60 then counted as in a @59 mode the user picked on purpose (the resolution list shows @59 and @60 separately), so neither the session start nor a per-game profile applied it.

Now only the rate asked for or the video rate just under it counts (60→59, 24→23, 30→29, 120→119, 144→143). The case #212 fixed (asked for @60, NVIDIA leaves the TV at @59) is unchanged; asking for @59 with the screen at @60 applies the mode again.

No changelog line: #212 isn't released yet and its entry still describes this.

Testing

  • dotnet test: 692 passing (2 new cases). Build left to CI.

🤖 Generated with Claude Code

The 1 Hz tolerance from #212 went both ways, so a screen at @60 counted as
in a @59 mode the user picked from the list and was left there. Only the
video rate just under the one asked for (60→59, 24→23…) counts now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: Reviewed the refresh-rate matching change and its regression cases.

  • Asymmetric refresh-rate matching: A requested mode now matches its exact rate or the immediately lower rate, preserving 60→59 behavior while distinguishing a requested 59 from a current 60.
  • Regression coverage: Added cases for 59/60 and 23/24 asymmetric matching.

Pullfrog  | View workflow run | Using gpt-6-luna | 𝕏

@lippdev
lippdev merged commit 3df4ff8 into main Nov 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant