GPU: report whole blocks released by both texture pools #3766

Closed
github-bot wants to merge 1 commit from github-bot/gh-3766 into main AGit
Owner

@⁠tyr0nsur on GitHub · 2026-11-30 06:26 UTC · original
tyr0nsur:codex/texture-heap-release-stats → main · +110 −21 · 2 files · 1 commits · closed without merging

What it changes

The texture-block census was counting the main texture pool only. The live texture totals already include the separate pool for 4 KiB-aligned textures. With VICTORY_POOL_STATS=1, count both pools and show the smaller pool's live and released blocks separately. The diagnostics memory line also separates whole texture blocks from host-buffer blocks.

A release is counted when a pool drops its reference to a whole block. DXGI usage is the separate measure of what the driver reports. #2724 has already preserved cumulative slot-eviction totals on main.

How it was tested

  • Windows 11, RTX 4060 8 GiB, driver 621.14. The motivating play logs used Series S, 1280×720 to 1920×1080, DLSS Quality, frame generation and ray tracing off. This revision was tested without running the title.
  • Before, the pool census missed small-alignment blocks even when the live texture counters included them. The regression checks both pools, waits for a piece to be reclaimable, and checks that its block is counted once. A staging test checks bytes for a 16 MiB block.
  • cargo test -p victory-gpu --features diagnostics --locked --lib pool::tests:: passed (31 passed, 3 ignored). The staged asset-policy check passed for both changed files.
  • The full diagnostics GPU library suite had the same three failures on clean main at e1251c31 and on this PR, in bgrx_plane_selects_a_typed_view (#2646), bindings_record_no_work and every_switch_of_the_translator_is_in_the_key (#4297). The full-tree asset check also flags an unchanged test literal in victory-shader/src/native.rs.
  • Shader wave sizes are outside this change.

Checked for overlap

  • Searched open PRs for the same paths and counters. #3754 changes how room is estimated and #1562 changes pool sizing and eviction. This PR is for the measurements.

Developed with Codex and reviewed with Claude Opus 5.5.

After the upstream history rewrite, the final two-file patch was rebuilt on 7d93ee07. At head 8e953903, cargo test --locked -p victory-gpu --features diagnostics --lib pool::tests -- --test-threads=1 passed with 31 passed and 3 hardware benchmarks ignored.

**@⁠tyr0nsur** on GitHub · 2026-11-30 06:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3766) `tyr0nsur:codex/texture-heap-release-stats` → `main` · +110 −21 · 2 files · 1 commits · closed without merging ## What it changes The texture-block census was counting the main texture pool only. The live texture totals already include the separate pool for 4 KiB-aligned textures. With `VICTORY_POOL_STATS=1`, count both pools and show the smaller pool's live and released blocks separately. The diagnostics memory line also separates whole texture blocks from host-buffer blocks. A release is counted when a pool drops its reference to a whole block. DXGI usage is the separate measure of what the driver reports. #2724 has already preserved cumulative slot-eviction totals on main. ## How it was tested - Windows 11, RTX 4060 8 GiB, driver 621.14. The motivating play logs used Series S, 1280×720 to 1920×1080, DLSS Quality, frame generation and ray tracing off. This revision was tested without running the title. - Before, the pool census missed small-alignment blocks even when the live texture counters included them. The regression checks both pools, waits for a piece to be reclaimable, and checks that its block is counted once. A staging test checks bytes for a 16 MiB block. - `cargo test -p victory-gpu --features diagnostics --locked --lib pool::tests::` passed (31 passed, 3 ignored). The staged asset-policy check passed for both changed files. - The full diagnostics GPU library suite had the same three failures on clean main at `e1251c31` and on this PR, in `bgrx_plane_selects_a_typed_view` (#2646), `bindings_record_no_work` and `every_switch_of_the_translator_is_in_the_key` (#4297). The full-tree asset check also flags an unchanged test literal in `victory-shader/src/native.rs`. - Shader wave sizes are outside this change. ## Checked for overlap - [x] Searched open PRs for the same paths and counters. #3754 changes how room is estimated and #1562 changes pool sizing and eviction. This PR is for the measurements. Developed with Codex and reviewed with Claude Opus 5.5. After the upstream history rewrite, the final two-file patch was rebuilt on `7d93ee07`. At head `8e953903`, `cargo test --locked -p victory-gpu --features diagnostics --lib pool::tests -- --test-threads=1` passed with 31 passed and 3 hardware benchmarks ignored.
Include the small texture pool in the census. Count whole blocks dropped by the pools separately from reusable ranges and CPU-visible blocks so memory-pressure tests can tell what the texture pools returned.
The periodic memory log reads totals since start, but the per-interval log used to zero the same counters. Use consecutive snapshots for intervals so both readers report the values their labels describe.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 06:30:06 +00:00
github-bot changed title from GPU: report slot eviction totals and whole texture blocks let go to GPU: report whole blocks released by both texture pools 2026-11-30 18:40:07 +00:00
github-bot force-pushed github-bot/gh-3766 from 0f3b3eab9f to 8e953903c3 2026-12-01 00:05:32 +00:00 Compare
github-bot closed this pull request 2026-12-01 18:51:19 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:48 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3766#issuecomment-7321596775) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3766
No description provided.