Measure release-build present intervals to diagnose menu frame pacing #2645
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2645
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@maxence468 on GitHub · 2026-11-25 17:29 UTC · original
maxence468:gpu/present-intervals→main· +46 −4 · 1 files · 1 commits · openThe 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.
@kotekompotek on GitHub · 2026-11-25 17:53 UTC · original
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.@Marvisak on GitHub · 2026-11-25 22:16 UTC · original
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
@Kajanos on GitHub · 2026-11-26 00:20 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.