GPU: add optional memory category log #69

Manually merged
github merged 1 commit from github-bot/gh-69 into main 2026-11-26 08:21:46 +00:00 AGit
Owner

@⁠Adika713 on GitHub · 2026-11-26 01:33 UTC · original
Adika713:fix/memory-category-logs → main · +71 −3 · 1 files · 1 commits · merged 2026-11-26 08:17 UTC

Adds an off-by-default VICTORY_MEMORY_CATEGORIES=1 diagnostics line so memory reductions can be judged against working set and commit headroom, not just private bytes. No pagefile change and no runtime behavior change when the switch is off.

What is in it

  • One periodic memory by category line in victory-gpu, using counters that already exist.
  • Reports working set, private total, free physical RAM, commit headroom, title windows, texture copies and pools, descriptor views, shader/pipeline caches, host-list scratch, Rust heap and made-so-far buffers.
  • The line says explicitly that values are approximate, overlapping and not a sum. Cumulative counters are labeled or described as made-so-far.

Tested

  • Build: cargo build --locked --profile diag -p victory --features diagnostics, exit 0.
  • Targeted test: cargo test --locked -p victory-gpu --features diagnostics --lib copystat::own_tests::the_category_line_formats_megabytes -- --exact --test-threads=1: 1 passed / 0 failed / 408 filtered.
  • Full diagnostics lib: 374 passed / 1 failed / 34 ignored. The one failure is the pre-existing descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in; it also fails on base 0a43566.
  • Earlier default workspace runs on branch and base both exited 101 with identical counts: victory-gpu 325 passed / 1 failed / 34 ignored; all other targets passed.
  • One user-approved local run on RX 6950 XT / Ryzen 5 3600 / 32 GB, Series S 1920×1080, 22 category samples: working set median 3857 MB, private median 7500 MB, commit headroom median 3962 MB. All 22 one-second lines stayed at 30.0 fps / 33.3 ms. This is provisional and is not an RX 7900 XTX result.

Not tested

  • No target RX 7900 XTX / i9-12900K / 64 GB run.
  • No per-frame frame-time capture, so median/p95/p99 and longest spike are not reported.
  • Visual output was not validated; the local window stayed black in the user's view.
  • No memory reduction is included.

AI use: OpenCode, model Big Pickle.

**@⁠Adika713** on GitHub · 2026-11-26 01:33 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/69) `Adika713:fix/memory-category-logs` → `main` · +71 −3 · 1 files · 1 commits · merged 2026-11-26 08:17 UTC Adds an off-by-default `VICTORY_MEMORY_CATEGORIES=1` diagnostics line so memory reductions can be judged against working set and commit headroom, not just private bytes. No pagefile change and no runtime behavior change when the switch is off. **What is in it** - One periodic `memory by category` line in `victory-gpu`, using counters that already exist. - Reports working set, private total, free physical RAM, commit headroom, title windows, texture copies and pools, descriptor views, shader/pipeline caches, host-list scratch, Rust heap and made-so-far buffers. - The line says explicitly that values are approximate, overlapping and not a sum. Cumulative counters are labeled or described as made-so-far. **Tested** - Build: `cargo build --locked --profile diag -p victory --features diagnostics`, exit 0. - Targeted test: `cargo test --locked -p victory-gpu --features diagnostics --lib copystat::own_tests::the_category_line_formats_megabytes -- --exact --test-threads=1`: 1 passed / 0 failed / 408 filtered. - Full diagnostics lib: 374 passed / 1 failed / 34 ignored. The one failure is the pre-existing `descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in`; it also fails on base `0a43566`. - Earlier default workspace runs on branch and base both exited 101 with identical counts: `victory-gpu` 325 passed / 1 failed / 34 ignored; all other targets passed. - One user-approved local run on RX 6950 XT / Ryzen 5 3600 / 32 GB, Series S 1920×1080, 22 category samples: working set median 3857 MB, private median 7500 MB, commit headroom median 3962 MB. All 22 one-second lines stayed at 30.0 fps / 33.3 ms. This is provisional and is not an RX 7900 XTX result. **Not tested** - No target RX 7900 XTX / i9-12900K / 64 GB run. - No per-frame frame-time capture, so median/p95/p99 and longest spike are not reported. - Visual output was not validated; the local window stayed black in the user's view. - No memory reduction is included. AI use: OpenCode, model Big Pickle.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:44 +00:00
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 07:55 UTC · original

Merged into main in the next push (tests pass); thanks.

**@⁠avatarmanz** on GitHub · 2026-11-26 07:55 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/69#issuecomment-7185982021) Merged into main in the next push (tests pass); thanks.
github manually merged commit 1a7d64a2ad into main 2026-11-26 08:21:46 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.