perf(gpu): gate DRAWS and DISPATCHES atomic counters behind diagnostics #628
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!628
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-628"
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?
@chefulano on GitHub · 2026-12-05 20:27 UTC · original
chefulano:perf/gate-hot-path-counters→main· +64 −32 · 2 files · 1 commits · openIn default (non-
diagnostics) builds,crates/victory-gpu/src/list.rsstill updates the globalDRAWSandDISPATCHESatomic counters alongsideTOTALS, even thoughDRAWSandDISPATCHESare only consumed by the power-of-twoframe presenteddiagnostic log incrates/victory-gpu/src/queue.rs.Building cleanly on #511's
CountBatchbatching, this change gates theDRAWSandDISPATCHESatomic updates (in bothCountBatch::dropandcount_add) and the power-of-twotake_counts()log inqueue.rsbehindcfg!(feature = "diagnostics").TOTALScontinues to be updated unconditionally so frame-to-frame metrics (crate::popwatch) are unchanged.Ported cleanly from
gamingwithhomie/larp(PR #28) and adapted ontomainpost-#511.Queue check
DRAWS/DISPATCHESatomic updates on top ofCountBatch. No open PR duplicates this.Checks
cargo xtask policy— pass (368 files ok)cargo check --locked --release --target x86_64-pc-windows-msvc -p victory-gpu -p victory --tests(default and--features diagnostics) — passcargo clippy --no-deps --locked --release --target x86_64-pc-windows-msvc -p victory-gpu --all-targets— 0 new warningsPKG=victory-gpu ./build.sh test --lib -- draws_and_dispatches_counters_are_gated_by_diagnostics— 1/1 passed (verifiesTOTALSalways increments across direct andCountBatchpaths whileDRAWS/DISPATCHESstay 0 withoutdiagnostics)"frame presented (since the last line: draws and dispatches...)"log line is now emitted only indiagnosticsbuilds.Created with Gemini 4 Neon in T3 Code.
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.