Frame pacing: honor title intervals under the default cap #250
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!250
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-250"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@loyodea on GitHub · 2026-11-26 12:40 UTC · original
loyodea:victory-opening-av-timing→main· +73 −21 · 1 files · 2 commits · openRelated to #59. The default 240 Hz cap previously replaced the title's cadence. Honor slower title requests and limit faster ones to 240 Hz. Explicit VICTORY_FPS overrides, uncapped mode, and token behavior stay as before.
Tested
4f62c2afailed the same write-watch assertion.The connection to the reported audio repeats, flicker, and subtitle overlap remains unverified. Codex helped implement and test this patch.
Review follow-up for the fixed FPS boundary
Fixed FPS conversion now stores a period of at least 1 ns, matching the minimum already used by the scheduler. The regression checks 1,000,000 FPS (1,000 ns), 1,000,000,000 FPS (1 ns), 1,000,000,001 FPS (1 ns), and
u32::MAX(1 ns). On the previous revision the test failed at 1,000,000,001 FPS with a stored period of 0 ns. All four frame tests passed on Windows, including an independent rerun. Review thread@gut0to on GitHub · 2026-11-26 15:32 UTC · original · reviewed
AI-assisted static review; I inspected this diff and the added tests, but did not run tests or the game.
@ -60,0 +74,4 @@let minimum = Duration::from_nanos(1_000_000_000_u64.div_ceil(u64::from(DEFAULT_FPS)));requested.max(minimum)}Pacing::Fixed(fps) => Duration::from_nanos(1_000_000_000 / u64::from(fps)),@gut0to on GitHub · 2026-11-26 15:32 UTC · original
VICTORY_FPSaccepts any positiveu32, so values above 1,000,000,000 make this division return a zero-nanosecond interval and remove the intended pacing delay. Could the parser cap/reject those values (or enforce a minimum interval) and add a boundary test?@ -60,0 +74,4 @@let minimum = Duration::from_nanos(1_000_000_000_u64.div_ceil(u64::from(DEFAULT_FPS)));requested.max(minimum)}Pacing::Fixed(fps) => Duration::from_nanos(1_000_000_000 / u64::from(fps)),@loyodea on GitHub · 2026-11-26 18:53 UTC · original
Thanks for flagging this. Overrides above 1,000,000,000 FPS produce a zero
Durationinframe_interval.next_tickalready applies.as_nanos().max(1), so fixed pacing still uses a 1 ns interval. Applying that minimum at conversion would make it explicit and give the boundary a direct test.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.