GPU: retry texture staging with smaller blocks after out-of-memory #986
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!986
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-986"
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 10:37 UTC · original
yumaste:nvidia/port-texture-staging→main· +170 −40 · 2 files · 1 commits · closed without mergingPort of Marvisak/VIctory#3259 to this fork's texture staging pool. The pool already backs off after a refused block, but currently tries only a 64 MiB block. The texture's existing dedicated-buffer fallback can also be deferred after that out-of-memory result.
After
E_OUTOFMEMORY, try smaller blocks down to the request rounded to 64 KiB, with bounded retries. Reuse a successful smaller growth size during the 500 ms backoff interval. Account for the actual block size when reusing, reclaiming and reporting staging memory. Keep the existing speculative admission policy. Related to #816, which moves block creation outside the pool lock.Windows validation: all 11 pool tests passed with
cargo test -p victory-gpu --locked --lib pool::tests. The new tests simulate allocation refusals, verify reuse and reclamation, and cover recovery to the normal block size.@trustno1-coder on GitHub · 2026-11-28 19:23 UTC · original
Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed