Repository navigation
fix: a mode picked at 59 Hz is still applied when the screen is at 60 - #215
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ 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.
gpt-6-luna | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Follow-up to #212, from Pullfrog's review (#214 (comment)).
What
DisplayModeMatch.IsSameaccepted 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