Drain idle upload buffers without allocating during OOM recovery #4871
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!4871
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4870"
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?
@senduora on GitHub · 2026-12-01 12:09 UTC · original
senduora:fix/drain-idle-upload-buffers-on-oom→main· +7 −10 · 1 files · 1 commits · closed without mergingWhat it changes
When upload buffer creation returns
E_OUTOFMEMORY, the recovery path used to allocate a new vector to collect the idle upload buffers it was about to release. Move each pool's existing vector out under its lock, then drop the buffers after unlocking. The existing retry and the set of pools drained stay the same.How it was tested
c103ddc, without game data.cargo test --locked --offline -p victory-gpu --lib host::spare -- --nocapture --test-threads=1passed 5 tests. One timing benchmark was ignored by the harness.Checked for overlap
@trustno1-coder on GitHub · 2026-12-01 18:30 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed