diagnostics: count rendered and generated frames without clearing presents twice #198
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!198
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-198"
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?
@DecayingEagle on GitHub · 2026-12-02 14:57 UTC · original
DecayingEagle:codex/generated-frame-counts→main· +13 −2 · 2 files · 1 commits · merged 2026-12-02 19:54 UTCThe periodic
stats: accountline gains two interval totals,rendered_frames(successful host presents) andgenerated_frames(frames reported by successful FidelityFX callbacks). This lets a long run record frame production withoutVICTORY_PRESENT_TIMINGon every frame. Neither field measures what reached the monitor. The existing FPS and per-frame costs still use rendered frames.The statistics logger drained
C::Frames, queried page faults and then cleared every counter includingC::Framesagain. A present between the two reads disappeared from both reporting intervals. Take each counter once and normalize from that sample. The extra callback counter is compiled only with diagnostics. The banks are concurrent so nearby events can fall across a reporting boundary.Verification
victory-gpu --testsfor x86_64-pc-windows-msvc with and without diagnostics.Developed and tested with OpenAI Codex.