Keep disabled render diagnostics off the release path #28

Manually merged
github merged 2 commits from gh-pr/28/head into gh-pr/28/base 2026-12-05 17:22:24 +00:00
Owner

@⁠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 UTC

The 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 --lib and cargo check --release --locked -p larp --features diagnostics both passed. This removes known unused work; there is no same-route gameplay A/B measurement.

AI-assisted by GPT-6.2 Astra.

**@⁠yyc160** on GitHub · 2026-12-05 15:43 UTC · [original](https://github.com/gamingwithhomie/larp/pull/28) `yyc160:perf/skip-disabled-render-reports` → `main` · +11 −4 · 4 files · 2 commits · merged 2026-12-05 15:49 UTC The 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 --lib` and `cargo check --release --locked -p larp --features diagnostics` both passed. This removes known unused work; there is no same-route gameplay A/B measurement. AI-assisted by GPT-6.2 Astra.
Do not take the streaming allocator and texture registry locks or collect the periodic process budget listing for debug lines that cannot be emitted. Rearm the budget-crossing notification when usage drops below the budget.

AI-assisted by GPT-6.2 Astra.
The counters for attempted draws and dispatches are read solely by the power-of-two debug report. A normal build logs only info and above. Remove these writes shared by recording threads, retaining successful work, drop counts and optional card clocks.

AI-assisted by GPT-6.2 Astra.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 17:22:21 +00:00
github manually merged commit 11282994e3 into gh-pr/28/base 2026-12-05 17:22:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.