Repository navigation
libretro: report 60.00 fps for NTSC instead of 59.94 - #2333
Merged
Merged
Conversation
Aligns the reported core framerate with the typical 60 Hz host display refresh, eliminating the periodic frame-pacing skip that drift between 59.94 fps content and a 60 Hz monitor produces under strict V-Sync or Black Frame Insertion (the skip happens roughly every 17 seconds). PAL (50.0 Hz) is unchanged. The 240p VGA rate is also moved to 60.0 so it benefits from the same alignment. Audio sample rate stays at 44100 Hz; the per-run sample count `sample_rate / fps` adjusts automatically. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
Author
|
Closing for personal reasons. Will revisit later. |
flyinghead
added a commit
that referenced
this pull request
Jun 4, 2026
This reverts commit 2c7c687.
Owner
|
I had to revert this change by fear of starting a religious war. My personal opinion is that, given the current timing precision of Flycast, reporting 59.94 Hz instead of 60 Hz is ridiculous. But any rational argument is useless when accuracy is elevated to the rank of religion. |
Contributor
Author
|
I understand, sir. Thank you for the clarification |
misantronic
pushed a commit
to misantronic/flycast
that referenced
this pull request
Jun 10, 2026
Aligns the reported core framerate with the typical 60 Hz host display refresh, eliminating the periodic frame-pacing skip that drift between 59.94 fps content and a 60 Hz monitor produces under strict V-Sync or Black Frame Insertion (the skip happens roughly every 17 seconds). PAL (50.0 Hz) is unchanged. The 240p VGA rate is also moved to 60.0 so it benefits from the same alignment. Audio sample rate stays at 44100 Hz; the per-run sample count `sample_rate / fps` adjusts automatically. Co-authored-by: jf624708-blip <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> [ci skip]
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.
Summary
Changes the NTSC framerate reported to the libretro frontend in
setAVInfo()from59.94to60.00(and the 240p NTSC-mode special case from59.82366to60.00). PAL is unchanged.Motivation
On non-VRR 60 Hz displays, the 0.1% drift between the core's reported 59.94 fps and the host's 60 Hz refresh produces a periodic frame skip/duplicate roughly every 17 seconds. The hiccup is normally absorbed by frontend audio resampling and goes unnoticed, but it becomes visible when:
Reporting 60.00 fps lines the core up with the typical 60 Hz monitor and removes the hiccup entirely on those setups.
Diff
Trade-off
The reported rate diverges 0.1% from cycle-accurate NTSC. Audio sample rate is unchanged (44100 Hz) and the per-run sample count
sample_rate / fpsadjusts automatically, so frontend resamplers absorb the difference cleanly. Anyone needing strict NTSC timing should rely on the frontend's auto-refresh-rate features (or VRR), which is the more correct fix anyway.If a configurable option is preferred (
force_60hzstyle), happy to follow up with one — kept this PR minimal.Test plan
[INFO] [Core] ... FPS: 60.00instead of59.94