GPU: retry CPU snapshot allocations after releasing idle buffers #360
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!360
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-360"
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?
@avt0m4t48 on GitHub · 2026-11-24 23:53 UTC · original
avt0m4t48:fix/snapshot-pool-allocation-retry→main· +10 −1 · 1 files · 1 commits · openRefs #321.
A CPU snapshot pool miss currently calls
Vec::with_capacityeven when the pool still holds idle buffers of other sizes. If that allocation fails, the process exits without releasing those buffers. Try the exact allocation first. When it fails, clear the idle pool and make one final attempt. Pool hits still reuse the same buffers, and an empty pool takes the direct path.The idle pool owns buffers only after their snapshots have finished. This change is separate from #47's retention cap and #200's admission rules.
I exercised the exact pool code with a test allocator that rejected an 8,396,800-byte request while a reusable 1 MiB allocation was held. Main exited on the rejected request. This branch released the idle buffer and succeeded on its second attempt. The normal pool miss and exact-fit reuse controls passed on both revisions. Windows MSVC GPU test targets type-checked with diagnostics and warnings denied.
The size in #321 is also possible in texture scratch allocation. These checks establish recovery for the snapshot-pool path. The reported game crash and Windows commit-pressure behavior still need runtime confirmation.
AI-assisted using Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.