perf: memory stack from skornuta/victory-fork (allocator trim, prelude pool, packed budgets, compare in pieces, slot eviction, bindless feedback, GPU detile; all off) #564

Merged
LooperSalty merged 8 commits from upstream-pr/564 into main 2026-11-28 00:01:46 +00:00
LooperSalty commented 2026-11-27 22:58:22 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-27T22:58:22Z.


Summary

Stacked on #563 (the Vice-Tay update): port of skornuta's memory stack (skornuta/victory-fork, branch memory-portable, GPL-3.0), path B of its porting guide: one commit per feature, each switch off by default, off path unchanged. Upstream measured on an RTX 5080 at 4K: VRAM 12.6 → 8.55 GB, private commit 26 → ~20.5 GB, same picture and frame rate.

Commit Switch What
62d1ed6a VICTORY_ALLOCATOR_TRIM=1, VICTORY_PRELUDE_POOL=1, VICTORY_BUDGET_PACK=1 allocators taken anew and idle lists expired; shared prelude pool; 256-byte indirect budgets as slots of a shared buffer
38951085 VICTORY_COMPARE_PIECES=1 refreshes compare the title's range 1 MiB at a time (thread-local scratch) instead of a buffer as large as the largest range
6d85a795 VICTORY_SLOT_EVICT=1 (_PERCENT=60, _LOW_PERCENT=50) idle table-backed textures let go of their card copy under VRAM pressure (upstream 06+07, the deadlock fix included)
88b1d495 VICTORY_BINDLESS_FEEDBACK=1 shaders record which heap textures they read; unread ones can be evicted too
ce359e7e VICTORY_GPU_DETILE=1 (+ ring sizes, trim) textures detiled on the card by a compute shader instead of on the CPU

skornuta's play.ps1 turns them on together with VICTORY_STAGE_POOL_MB=64 and VICTORY_CARD_WINDOW_UPLOAD_MB=256.

Source: skornuta/victory-fork memory-portable, credited per commit (Source: / Co-authored-by:) and in THIRD_PARTY.md.

Test plan

  • cargo test --release -p victory-gpu: 637 passed (also with all switches on, ring trim and the CPU cross-check of the detile)
  • cargo test --release -p victory-shader: 365 passed (synthetic DXIL feedback included); victory-formats 54 passed
  • cargo xtask policy: 375 files ok; cargo check --features diagnostics
  • CI
  • In game, A/B: memory line (VRAM, private commit) and fps with the switches off and on

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5534171606 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/564). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-27T22:58:22Z. --- ## Summary Stacked on #563 (the Vice-Tay update): port of skornuta's **memory stack** (skornuta/victory-fork, branch `memory-portable`, GPL-3.0), path B of its porting guide: one commit per feature, each switch **off by default**, off path unchanged. Upstream measured on an RTX 5080 at 4K: VRAM 12.6 → 8.55 GB, private commit 26 → ~20.5 GB, same picture and frame rate. | Commit | Switch | What | | --- | --- | --- | | 62d1ed6a | `VICTORY_ALLOCATOR_TRIM=1`, `VICTORY_PRELUDE_POOL=1`, `VICTORY_BUDGET_PACK=1` | allocators taken anew and idle lists expired; shared prelude pool; 256-byte indirect budgets as slots of a shared buffer | | 38951085 | `VICTORY_COMPARE_PIECES=1` | refreshes compare the title's range 1 MiB at a time (thread-local scratch) instead of a buffer as large as the largest range | | 6d85a795 | `VICTORY_SLOT_EVICT=1` (`_PERCENT=60`, `_LOW_PERCENT=50`) | idle table-backed textures let go of their card copy under VRAM pressure (upstream 06+07, the deadlock fix included) | | 88b1d495 | `VICTORY_BINDLESS_FEEDBACK=1` | shaders record which heap textures they read; unread ones can be evicted too | | ce359e7e | `VICTORY_GPU_DETILE=1` (+ ring sizes, trim) | textures detiled on the card by a compute shader instead of on the CPU | skornuta's `play.ps1` turns them on together with `VICTORY_STAGE_POOL_MB=64` and `VICTORY_CARD_WINDOW_UPLOAD_MB=256`. Source: skornuta/victory-fork memory-portable, credited per commit (`Source:` / `Co-authored-by:`) and in `THIRD_PARTY.md`. ## Test plan - [x] `cargo test --release -p victory-gpu`: 637 passed (also with all switches on, ring trim and the CPU cross-check of the detile) - [x] `cargo test --release -p victory-shader`: 365 passed (synthetic DXIL feedback included); victory-formats 54 passed - [x] `cargo xtask policy`: 375 files ok; `cargo check --features diagnostics` - [ ] CI - [ ] In game, A/B: memory line (VRAM, private commit) and fps with the switches off and on 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chatgpt-codex-connector[bot] commented 2026-11-27 23:54:26 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T23:54:26Z.


Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-27T23:54:24.571070Z
We couldn’t complete this review. Comment @codex review to try again.
d0e1261 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7230497603 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/564#issuecomment-7230497603). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T23:54:26Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"d0e126197cc99dbd8b34ebe64dcca613eb1df1e1","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-27T23:54:24.571070Z">2026-11-27T23:54:24.571070Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `d0e1261` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-27 23:54:27 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T23:54:27Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7230497852 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/564#issuecomment-7230497852). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T23:54:27Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
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!564
No description provided.