Check VRAM before allocating first streamed textures #3406
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3406
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3406"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Kitrae on GitHub · 2026-11-29 22:51 UTC · original
Kitrae:fix/streamed-vram-budget→main· +164 −15 · 4 files · 1 commits · closed without mergingRefs #3374
What it changes
The background pass can admit a first texture upload based on its title footprint and free space in the pool. If placement finds no usable range, the allocator can then request a 64 MiB heap even for a small texture.
VICTORY_FIRST_UPLOAD_VRAM_GUARD=0to compare the previous behavior with the same build.How it was tested
cargo test -p victory-gpu --lib --locked -- --test-threads=1reported 917 passed, 1 failed and 60 ignored. Upstream716a0c99reported 914 passed, 1 failed and 60 ignored. Both failed the same shader-cache check forVICTORY_SCALAR_SPLITS.Checked for overlap
@tyr0nsur on GitHub · 2026-11-30 06:26 UTC · original · edited 2026-11-30 06:31 UTC
I tested
446f0a5on a Windows RTX 4060 8 GiB, merged locally onto41adb55. A test-only input set the guard's headroom. The textures, heaps, residency calls, and DXGI measurements used real D3D12. All 12 first-upload tests passed.VICTORY_RIPE_BLOCKS=12(the pool default when unset). Pool size and DXGI local usage both rose by exactly 64 MiB. WithVICTORY_RIPE_BLOCKS=0, the same take added zero bytes. Both shipped launchers set0, and the two v2026.11.29.05 captures from this RTX 4060 used0as well. The extra ahead block therefore does not explain their VRAM growth. PR #2038 also suppresses ahead growth after over-budget pressure is detected while retaining the preference for ripe blocks.Could the growth callback distinguish a required block from an ahead block so the latter can have a separate headroom threshold? The existing rationale for ripe blocks makes a matched gameplay run worth doing before changing the default. This allocator test leaves FPS and in-game texture latency open. Review assisted by Claude Opus 5.5.
Pull request closed