Record present intervals so hitching can be measured #1087
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/fxceless--victory-fork!1087
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1087"
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?
@superboynick on GitHub · 2026-11-25 18:58 UTC · original
superboynick:feat/present-times→main· +182 −1 · 2 files · 5 commits · openFrame rate hides hitching, and an interval alone does not say why. This change does both halves.
Interval recording.
VICTORY_PRESENT_TIMES=<path>writes one row per present with the interval, running p50/p95/p99 and the worst interval so far, plus a total row on exit. On the prologue of the retail title, 1500 presents over 72.8 s:p50 33.4 ms p95 105.4 ms p99 370.8 ms worst 3527 ms stalls over 100 ms: 77Sitting in the menus the same build gives p99 34.2 ms, so the long stalls belong to content streaming, not to the steady state.
Attribution.
VICTORY_STALL_LOG=<ms>prints, for any present slower than the threshold, the counters accumulated during that frame: pipelines created, shaders translated, texture uploads. Real output:Present stall interval_ms=1471.9 pipelines_created=0 shaders_translated=0 texture_uploads=1159 Present stall interval_ms=399.2 pipelines_created=0 shaders_translated=34 texture_uploads=19Across a 120 s run, texture uploads appear in 81 of 91 stalls; shader translation in a handful. That is a correlation and I am not claiming a cause - but it points at the upload path rather than at compilation, which is where I would look next.
Counters that cannot be read cheaply are reported as
nainstead of guessed. Neither variable is read unless set, and with neither set the present path is unchanged.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.