Logs: drop reasons and card memory by holder, in release #396

Closed
github-bot wants to merge 0 commits from github-bot/gh-396 into main AGit
Owner

@⁠AVD-appezhax on GitHub · 2026-12-01 22:24 UTC · original
AVD-appezhax:logs/drop-reasons-and-memory → main · +80 −38 · 5 files · 72 commits · closed without merging

What it adds: drop reasons and card memory by holder, in release logs

Counting only; no behaviour change.

  • Every 5 s: the top reasons draws were dropped, with shader hashes (dropped N/frame: <reason>).
  • Every minute: the card's memory split by holder: textures (title-filled, render targets, twins), texture-block space, tiles, buffer and window copies, pipelines made, and what the layer does not count.

How it was measured / why

These lines are what found the weather-particle pipeline refusal (separate PR) and the render-target growth on 12 GB cards (#133). Overhead: one log line per 5 s and per minute; no per-frame cost beyond existing counters.

Split out of #335 at the maintainers' request; one change per pull request, independent of the others (applies alone on main 94c3c5f).

Checks (this branch alone, on main)

  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.
  • cargo test -p victory-gpu -p victory-shader --lib --locked: all pass.

🤖 Generated with Claude Code

**@⁠AVD-appezhax** on GitHub · 2026-12-01 22:24 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/396) `AVD-appezhax:logs/drop-reasons-and-memory` → `main` · +80 −38 · 5 files · 72 commits · closed without merging ## What it adds: drop reasons and card memory by holder, in release logs Counting only; no behaviour change. - Every 5 s: the top reasons draws were dropped, with shader hashes (`dropped N/frame: <reason>`). - Every minute: the card's memory split by holder: textures (title-filled, render targets, twins), texture-block space, tiles, buffer and window copies, pipelines made, and what the layer does not count. ## How it was measured / why These lines are what found the weather-particle pipeline refusal (separate PR) and the render-target growth on 12 GB cards (#133). Overhead: one log line per 5 s and per minute; no per-frame cost beyond existing counters. Split out of #335 at the maintainers' request; one change per pull request, independent of the others (applies alone on `main` 94c3c5f). ## Checks (this branch alone, on main) - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. - `cargo test -p victory-gpu -p victory-shader --lib --locked`: all pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Two things release logs could not tell on a 12 GB card:

- 100-360 draws a frame were dropped "without a host pipeline (0 being
  made)" while distant objects flashed, and only diagnostics builds
  named a reason. The tally by reason (pipeline::note_drop) now runs in
  every build and the top 12 are logged every five seconds. Drops of a
  draw that has a host pipeline (its binding or buffers failed) get a
  reason with its shader hashes instead of none; refused pipelines are
  named by hash instead of a Debug dump of their shaders.
- VRAM in use grows past the budget over a session while the texture
  pool stays flat (#133). Once a minute a line now splits the card's use
  into host textures (title-filled, render targets and twins), free
  space in texture blocks, tiles, card copies of title buffers and
  windows with their before-twins, the pipelines made, and what the
  layer does not count (driver, DLSS, frame generation).

Counting only: what is drawn and allocated is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 32c819e37a)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 22:27:25 +00:00
github-bot closed this pull request 2026-12-02 07:54:31 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.