fix(tools): read session-fps from the per-frame present timing lines #471
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/lobomfz--VIctory-xmem!471
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-471"
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?
@Duckbuster on GitHub · 2026-12-04 14:41 UTC · original
Duckbuster:fix/session-fps-frame-format→main· +286 −34 · 4 files · 2 commits · opensession-fps.sh matches stats: frame samples, which the port does not
write: every run log since present timing landed (
2039e43) carriesper-frame present timing lines instead, so the tool exits with "no
samples" on every log. this rewires the awk to interval_us
(present-to-present frametime), skips sub-millisecond double presents
(counted), and drops the min-draws filter since per-frame lines carry no
draw count. README and docs/DIAGNOSTICS.md described the same phantom
format and now describe the real one. percentiles need gawk's asort.
also adds tools/fps-stats.py for the deeper look: frametime percentiles
and 1%/0.1% lows, a target-relative histogram, fps over time windows and
the frametime-derived fps convention, time below thresholds, and a
per-segment table. the target comes from VICTORY_FRAME_INTERVAL_MS in
run.conf, else 33.333.
tested on a 34k-frame log against a hand parse and a 170k-frame log
(1.8 s), including ANSI-stripping, missing-interval and double-present
edge cases.
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.