gpu: VICTORY_POOL_TIGHT=0 places textures at 64 KiB multiples again #615

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

@⁠goldfishdev on GitHub · 2026-12-05 18:57 UTC · original
lobomfz:gpu/pool-tight-switch → main · +11 −4 · 2 files · 1 commits · open

What

VICTORY_POOL_TIGHT=0 makes tight() answer false, so texture_with_growth does not set D3D12_RESOURCE_FLAG_USE_TIGHT_ALIGNMENT and each texture piece is a 64 KiB multiple again. The default is unchanged: tight alignment wherever the host reports the tier.

This is an escape hatch for the GPUVM SQC (data) page-fault and device-loss reports that began around #459: #271, #239 and #487. It is not a claimed fix.

Use

./run.sh play VICTORY_POOL_TIGHT=0

Read once at startup; restart to change it. The log says:

pool: tight alignment off (VICTORY_POOL_TIGHT=0)

What was measured

On an RX 9070 XT, RT on, 4K output, FSR 4 Quality:

  • tight on, 10 min drive route: completed, no fault, 24.2 avg, 12.7 GB peak.
  • tight on, 12 min downtown route: completed, no fault, 19.4 avg, 12.9 GB peak.
  • tight off, 6 min downtown route: completed, no fault, 19.4 avg, 13.8 GB peak.

So disabling it costs about 0.9 GB of VRAM here and did not change the average. The fault did not reproduce on this machine in 22 minutes of RT-on 4K city stress; it needs the reporters' saves.

Why default on

The memory saving from #459 is kept by default. If reporters confirm that =0 stops the fault, the next step is either to make tight alignment opt-in or to fix the texture-block lifetime it exposes.

Checks

  • Builds on x86_64-pc-windows-msvc; the diagnostic binary was the one used for the runs above.
  • docs/SETTINGS.md has the row, and the xtask documented-switch check sees the read.
**@⁠goldfishdev** on GitHub · 2026-12-05 18:57 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/615) `lobomfz:gpu/pool-tight-switch` → `main` · +11 −4 · 2 files · 1 commits · open ## What `VICTORY_POOL_TIGHT=0` makes `tight()` answer false, so `texture_with_growth` does not set `D3D12_RESOURCE_FLAG_USE_TIGHT_ALIGNMENT` and each texture piece is a 64 KiB multiple again. The default is unchanged: tight alignment wherever the host reports the tier. This is an escape hatch for the GPUVM `SQC (data)` page-fault and device-loss reports that began around #459: #271, #239 and #487. It is not a claimed fix. ## Use ```sh ./run.sh play VICTORY_POOL_TIGHT=0 ``` Read once at startup; restart to change it. The log says: ``` pool: tight alignment off (VICTORY_POOL_TIGHT=0) ``` ## What was measured On an RX 9070 XT, RT on, 4K output, FSR 4 Quality: - tight on, 10 min `drive` route: completed, no fault, 24.2 avg, 12.7 GB peak. - tight on, 12 min `downtown` route: completed, no fault, 19.4 avg, 12.9 GB peak. - tight off, 6 min `downtown` route: completed, no fault, 19.4 avg, **13.8 GB** peak. So disabling it costs about 0.9 GB of VRAM here and did not change the average. The fault did not reproduce on this machine in 22 minutes of RT-on 4K city stress; it needs the reporters' saves. ## Why default on The memory saving from #459 is kept by default. If reporters confirm that `=0` stops the fault, the next step is either to make tight alignment opt-in or to fix the texture-block lifetime it exposes. ## Checks - Builds on `x86_64-pc-windows-msvc`; the diagnostic binary was the one used for the runs above. - `docs/SETTINGS.md` has the row, and the `xtask` documented-switch check sees the read.
VICTORY_POOL_TIGHT=0 makes tight() answer false, so texture_with_growth does not set D3D12_RESOURCE_FLAG_USE_TIGHT_ALIGNMENT and the piece is a 64 KiB multiple again. The default is unchanged.

This is for the GPUVM SQC page-fault and device-loss reports that began around #459 (#271, #239, #487). It did not reproduce here in 22 minutes of RT-on 4K city stress; with =0 the 6-minute downtown peak rose from 12.9 to 13.8 GB of VRAM with the average unchanged. Reporters can A/B their own saves and say whether the fault goes away.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 18:57:42 +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/615/head:github-bot/gh-615'
git switch 'github-bot/gh-615'

Merge

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