Count a loose window once against the GPU memory budget #1250

Open
github-bot wants to merge 3 commits from github-bot/gh-1250 into main AGit
Owner

@⁠UwUCammie on GitHub · 2026-11-26 02:20 UTC · original
UwUCammie:fix/window-placement-budget → main · +130 −64 · 2 files · 3 commits · open

One extra 4 MiB window at a 4 MiB cap counted as two refusals. The upload-heap attempt and the staged-buffer fallback each asked for room, even though both were trying to place the same window.

Reserve the bytes once across the two attempts, return them if neither succeeds, and check the configured cap before asking DXGI for its budget. Once the mapping probe has failed, subsequent windows go directly to the staged path.

Tested on an RX 7900 XT with RADV 26.3.1, Wine and vkd3d-proton. The physical regression failed on the base with two refusals instead of one. It passed on this branch with VICTORY_WINDOW_UPLOAD=0 and =1, including reusing the space after release. The reservation test also passed at the exact cap and on integer overflow.

**@⁠UwUCammie** on GitHub · 2026-11-26 02:20 UTC · [original](https://github.com/fxceless/victory-fork/pull/1250) `UwUCammie:fix/window-placement-budget` → `main` · +130 −64 · 2 files · 3 commits · open One extra 4 MiB window at a 4 MiB cap counted as two refusals. The upload-heap attempt and the staged-buffer fallback each asked for room, even though both were trying to place the same window. Reserve the bytes once across the two attempts, return them if neither succeeds, and check the configured cap before asking DXGI for its budget. Once the mapping probe has failed, subsequent windows go directly to the staged path. Tested on an RX 7900 XT with RADV 26.3.1, Wine and vkd3d-proton. The physical regression failed on the base with two refusals instead of one. It passed on this branch with `VICTORY_WINDOW_UPLOAD=0` and `=1`, including reusing the space after release. The reservation test also passed at the exact cap and on integer overflow.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:23 +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/1250/head:github-bot/gh-1250'
git switch 'github-bot/gh-1250'

Merge

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