GPU: retry texture staging with smaller blocks after out-of-memory #1472
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!1472
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1472"
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?
@yumaste on GitHub · 2026-11-28 20:26 UTC · original
yumaste:nvidia/texture-staging-backoff→main· +178 −55 · 2 files · 2 commits · merged 2026-11-30 14:12 UTCReplaces #986, rebased onto
923e38cc. Port of Marvisak/VIctory#3259.The staging pool starts with 64 MiB blocks. If D3D12 returns
E_OUTOFMEMORY, retry with smaller blocks down to the request rounded to 64 KiB. Reuse a successful smaller size for 500 ms and account for its actual capacity when suballocating, reclaiming, and reporting memory. Block creation still runs outside the pool lock, and speculative growth keeps the existing budget check.Windows / WARP:
cargo test --locked -p victory-gpu --lib --features diagnostics pool::tests -- --test-threads=1passed 18 tests, with 2 benchmarks ignored. The tests cover allocation refusals, reuse of smaller blocks, recovery to the default size, and concurrent staging.