GPU: scale the texture allocation floor to the VRAM budget #51

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

@⁠Lkxex on GitHub · 2026-11-25 21:21 UTC · original
Lkxex:gpu/texture-floor-dexnom → main · +13 −2 · 1 files · 1 commits · open

A fixed 2 GiB floor for texture copies can allow allocations before checking GPU memory pressure. Cap that floor at one third of the adapter's reported local budget, up to 2 GiB. The existing VICTORY_TEXTURE_BUDGET_MB override still takes precedence.

This is Dathinel's change from fxceless/victory-fork#1122, cherry-picked with attribution. Dathinel reported a median frame time of 370 ms before and 160 ms after on a 4 GB RTX 3050 Laptop GPU in the Series S prologue. That measurement is from the source PR.

Validation on this port: Windows diagnostics cargo check with tests enabled and 11 synthetic budget scenarios, covering low and high budgets, the override, and unavailable budget information. In-game performance and texture quality remain unmeasured on this fork.

**@⁠Lkxex** on GitHub · 2026-11-25 21:21 UTC · [original](https://github.com/DexNom/VIctory/pull/51) `Lkxex:gpu/texture-floor-dexnom` → `main` · +13 −2 · 1 files · 1 commits · open A fixed 2 GiB floor for texture copies can allow allocations before checking GPU memory pressure. Cap that floor at one third of the adapter's reported local budget, up to 2 GiB. The existing VICTORY_TEXTURE_BUDGET_MB override still takes precedence. This is Dathinel's change from fxceless/victory-fork#1122, cherry-picked with attribution. Dathinel reported a median frame time of 370 ms before and 160 ms after on a 4 GB RTX 3050 Laptop GPU in the Series S prologue. That measurement is from the source PR. Validation on this port: Windows diagnostics cargo check with tests enabled and 11 synthetic budget scenarios, covering low and high budgets, the override, and unavailable budget information. In-game performance and texture quality remain unmeasured on this fork.
On a card whose whole budget is about 3.2 GB (4 GB of memory) the fixed
2 GiB floor put the card a gigabyte over its budget from the first world
frame. Cards with 6 GiB of budget or more keep the 2 GiB.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
(cherry picked from commit a360025758c240435bc881fc1e55b7de63ebdb0d)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:32:43 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-51'
git switch 'github-bot/gh-51'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-51'
git switch 'github-bot/gh-51'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-51'
git switch 'main'
git merge --squash 'github-bot/gh-51'
git switch 'main'
git merge --ff-only 'github-bot/gh-51'
git switch 'main'
git merge 'github-bot/gh-51'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.