Measure release-build present intervals to diagnose menu frame pacing #2643
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2645"
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?
Imported from Marvisak/VIctory. Originally posted by maxence468 on 2026-11-25T17:29:52Z.
The README tracks pacing drift on one menu screen in release builds. Average FPS can hide alternating short and long intervals. This samples the wall-clock interval between host DXGI Present returns and reports the sample count, median, p95 and maximum at the existing five-second log cadence. It reuses the sample buffer across reports and preserves the interval spanning two reports.
To collect a comparison, hold on a stable menu screen for 30 seconds in release, then repeat on the affected screen. Compare the host present intervals lines. At 30 fps the nominal interval is 33.33 ms. These timings describe application submissions and do not measure monitor scanout.
Added a unit test for empty, single-sample and uneven windows. Checked the percentile rank against the nearest-rank definition for sample counts 1 through 1000 and ran git diff --check. Rust and game data were unavailable locally. The change instruments the issue and leaves the pacing algorithm intact.
Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T17:53:29Z.
Reviewed: interval sampling on Present returns with median/p95/max is the right metric for the pacing drift. Two minor notes:
present_intervals_usgrows unbounded over a session (fine for a diagnostic run, worth a cap if it ever prints per-refresh);n - 1 - n/20gives p95 = max for n < 20, acceptable during warmup. CI green.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T22:16:25Z.
Automated triage for the maintainers.
This PR no longer merges cleanly into
main(f3578e3). The conflict is incrates/victory-gpu/src/host.rs. It will be reviewed once it is rebased onto currentmain.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by Kajanos on 2026-11-26T00:20:09Z.
Tested on Windows 11 Home build 26300, RTX 5080, driver 621.40, rustc 1.98.1, interactive desktop session. PR head
f247480, tested on its own base13f91ca. It does not merge onto currentmain63bcca4(conflict incrates/victory-gpu/src/host.rs, which #2110 and #1997 have since changed), so it was not tested merged.cargo test --locked -p victory-gpu: 194 passed, 2 failed. The same two tests also fail on13f91cawithout this PR (descriptor::host::tests::dynamic_slots_are_held_until_released,memory::tests::lists_share_a_table_and_copies_keep_their_views, both from the view heap being belowHEAP_VIEWS, whichmainhas since fixed). No new failures.present_interval_tests::summarizes_sparse_and_uneven_framespasses in debug and--release.Not run: the retail title (no dump, so no real present-interval readings), clippy, other crates, the PR merged onto current
main.AI-assisted (Claude Code)
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.