Repository navigation
Measure release-build present intervals to diagnose menu frame pacing - #2645
maxence468 wants to merge 1 commit into
Conversation
|
Reviewed: interval sampling on Present returns with median/p95/max is the right metric for the pacing drift. Two minor notes: |
|
Automated triage for the maintainers. This PR no longer merges cleanly into Generated by Claude Code |
|
Tested on Windows 11 Home build 26300, RTX 5080, driver 621.40, rustc 1.98.1, interactive desktop session. PR head
Not run: the retail title (no dump, so no real present-interval readings), clippy, other crates, the PR merged onto current AI-assisted (Claude Code) |
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.