Keep disabled render diagnostics off the release path #28
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/gamingwithhomie--larp!28
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/28/head"
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?
@yyc160 on GitHub · 2026-12-05 15:43 UTC · original
yyc160:perf/skip-disabled-render-reports→main· +11 −4 · 4 files · 2 commits · merged 2026-12-05 15:49 UTCThe normal logger is capped at INFO. Nevertheless every attempted draw/dispatch wrote shared atomic counters, and the presentation path walked the texture registry and polled the video-memory budget for DEBUG reports.
Gate attempted-command accounting on the existing diagnostics feature. Skip the expensive report inputs when the module's DEBUG log is disabled. With reporting enabled, a budget crossing can be reported again after usage falls below budget. Successful draws, dropped-work accounting, card timings and resource lifetimes are unchanged.
Verified on Windows x64 on
03efd5b:cargo test --release --locked -p larp-gpu --libandcargo check --release --locked -p larp --features diagnosticsboth passed. This removes known unused work; there is no same-route gameplay A/B measurement.AI-assisted by GPT-6.2 Astra.