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

Open
LogicGrove wants to merge 1 commit from upstream-pr/2747 into main
LogicGrove commented 2026-11-29 16:48:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by LogicGrove on 2026-11-29T16:48:06Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5552886193 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2747). Originally posted by [LogicGrove](https://github.com/LogicGrove) on 2026-11-29T16:48:06Z. --- ## 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.
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/2747:upstream-pr/2747'
git switch 'upstream-pr/2747'

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/2747'
git switch 'upstream-pr/2747'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2747'
git switch 'upstream-pr/2747'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2747'
git switch 'main'
git merge --squash 'upstream-pr/2747'
git switch 'main'
git merge --ff-only 'upstream-pr/2747'
git switch 'main'
git merge 'upstream-pr/2747'
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
trustno1-coder/VIctory-NVIDIA!2747
No description provided.