[Draft] perf(victory-gpu): wire opt-in ram_trim consumers for pool, shadow, and pipeline (Part 2 of #350) #584

Open
Vladimir-Human wants to merge 2 commits from upstream-pr/584 into main
Vladimir-Human commented 2026-11-28 15:22:30 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by Vladimir-Human on 2026-11-28T15:22:30Z.


Note

Draft — stacked atop PR #350 Part 1 (a9ffceb). Ready to rebase onto main cleanly once #350 lands.

Summary (42320792)

  • Wires ram_trim consumers across shadow (snapshot.rs, snapshot_pool.rs, snapshot_reclaim.rs), pool (aged staging reclamation), and pipeline (shader_container.rs, shader_ram_trim.rs post-PSO DXIL drop & container reload), plus opt-in diagnostics in host/list/texture/watch/copystat.
  • Strictly opt-in behind VICTORY_RAM_TRIM=1 (default OFF preserves exact baseline paths); all new non-test helper modules are modular (<= 191 lines); Cargo.lock untouched; Rule 10 credits preserved (THIRD_PARTY.md + trailers).

Verification

  • cargo clippy -p victory-gpu --all-targets --features diagnostics --locked in third_party/victory (0 warnings in touched files)
  • VICTORY_D3D12_DEBUG=1 cargo test -p victory-gpu --features diagnostics --locked --lib ram_trim: 39/39 passed
  • VICTORY_D3D12_WARP=1 cargo test -p victory-gpu --features diagnostics --locked --lib ram_trim: 39/39 passed
<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5541659951 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/584). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-28T15:22:30Z. --- > [!NOTE] > **Draft — stacked atop PR `#350` Part 1 (`a9ffceb`).** Ready to rebase onto `main` cleanly once `#350` lands. ### Summary (`42320792`) - Wires `ram_trim` consumers across `shadow` (`snapshot.rs`, `snapshot_pool.rs`, `snapshot_reclaim.rs`), `pool` (aged staging reclamation), and `pipeline` (`shader_container.rs`, `shader_ram_trim.rs` post-PSO DXIL drop & container reload), plus opt-in diagnostics in `host`/`list`/`texture`/`watch`/`copystat`. - Strictly opt-in behind `VICTORY_RAM_TRIM=1` (default OFF preserves exact baseline paths); all new non-test helper modules are modular (`<= 191` lines); `Cargo.lock` untouched; Rule 10 credits preserved (`THIRD_PARTY.md` + trailers). ### Verification - `cargo clippy -p victory-gpu --all-targets --features diagnostics --locked` in `third_party/victory` (**0 warnings** in touched files) - `VICTORY_D3D12_DEBUG=1 cargo test -p victory-gpu --features diagnostics --locked --lib ram_trim`: **39/39 passed** - `VICTORY_D3D12_WARP=1 cargo test -p victory-gpu --features diagnostics --locked --lib ram_trim`: **39/39 passed**
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/584:upstream-pr/584'
git switch 'upstream-pr/584'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/584'
git switch 'upstream-pr/584'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/584'
git switch 'upstream-pr/584'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/584'
git switch 'main'
git merge --squash 'upstream-pr/584'
git switch 'main'
git merge --ff-only 'upstream-pr/584'
git switch 'main'
git merge 'upstream-pr/584'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
LooperSalty/AnyXboxX!584
No description provided.