Reuse finished texture blocks for streamed coarse views under pressure #2747

Open
github-bot wants to merge 1 commit from github-bot/gh-2747 into main AGit
Owner

@⁠LogicGrove on GitHub · 2026-11-29 16:48 UTC · original
LogicGrove:fix/coarse-texture-pool → main · +379 −33 · 7 files · 1 commits · open

What it changes

VICTORY_COARSE_AT_PRESSURE=1 lets a streamed 2D view that already requests smaller mip levels use free space in a finished texture-pool block when normal admission refuses it. Each copy is capped at 2 MiB and leaves at least 128 MiB available in its pool. Mip-zero requests stay on the normal path. The descriptor moves only after the list that uploaded that exact copy has completed.

How it was tested

  • On Windows with an RTX 2060, the release GPU test subset passed, with 34 passed and 3 ignored. The subset covers mip selection, the pool reserve, reuse of completed blocks and keeping pressure flips on their original list.
  • The tests use synthetic data. The earlier local implementation was exercised in Series S play on the RTX 2060. Its in-game results apply to that build.
  • The changed Rust files passed the staged asset-policy check. The tree-wide policy scan reports an existing violation in crates/victory-loader/src/heap_sites/frame_users.rs.

Checked for overlap

  • Checked the open pull requests. #2493 can construct smaller copies and grow them later. This opt-in path reuses finished blocks for views already asking for smaller levels.

The base CI is already failing on the unused unwind_copy function. #2019 tracks that failure, and #2208 tracks the existing diagnostics compile failures.

**@⁠LogicGrove** on GitHub · 2026-11-29 16:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2747) `LogicGrove:fix/coarse-texture-pool` → `main` · +379 −33 · 7 files · 1 commits · open ## What it changes `VICTORY_COARSE_AT_PRESSURE=1` lets a streamed 2D view that already requests smaller mip levels use free space in a finished texture-pool block when normal admission refuses it. Each copy is capped at 2 MiB and leaves at least 128 MiB available in its pool. Mip-zero requests stay on the normal path. The descriptor moves only after the list that uploaded that exact copy has completed. ## How it was tested - On Windows with an RTX 2060, the release GPU test subset passed, with 34 passed and 3 ignored. The subset covers mip selection, the pool reserve, reuse of completed blocks and keeping pressure flips on their original list. - The tests use synthetic data. The earlier local implementation was exercised in Series S play on the RTX 2060. Its in-game results apply to that build. - The changed Rust files passed the staged asset-policy check. The tree-wide policy scan reports an existing violation in `crates/victory-loader/src/heap_sites/frame_users.rs`. ## Checked for overlap - [x] Checked the open pull requests. #2493 can construct smaller copies and grow them later. This opt-in path reuses finished blocks for views already asking for smaller levels. The base CI is already failing on the unused `unwind_copy` function. #2019 tracks that failure, and #2208 tracks the existing diagnostics compile failures.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 16:49:28 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/descriptor/host.rs
  • crates/victory-gpu/src/draw.rs
  • crates/victory-gpu/src/pool.rs
  • crates/victory-gpu/src/resource.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2747/head:github-bot/gh-2747'
git switch 'github-bot/gh-2747'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2747'
git switch 'github-bot/gh-2747'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2747'
git switch 'github-bot/gh-2747'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2747'
git switch 'main'
git merge --squash 'github-bot/gh-2747'
git switch 'main'
git merge --ff-only 'github-bot/gh-2747'
git switch 'main'
git merge 'github-bot/gh-2747'
git push origin 'main'
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!2747
No description provided.