GPU: retain Deferred container capacities across HostList::reset #185
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!185
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-185"
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?
@MartinIndra02 on GitHub · 2026-11-24 22:19 UTC · original
MartinIndra02:perf/fxceless-deferred-clear→main· +18 −1 · 1 files · 1 commits · openSummary
In \HostList::reset\ (\crates/victory-gpu/src/host.rs), replacing *self.deferred() = Deferred::default()\ with \self.deferred().clear()\ clears all recorded entries and updates the \ALIVE[6..8]\ upload counters in place while preserving the heap capacities of \copies, \uploads, \kept,
efreshed, \ extures, \writes, and \acks.
Previously, every command-list reset freed all 7 \Vec/\HashSet\ allocations inside \Deferred, forcing recording threads to grow and reallocate them from zero capacity on every frame.
Verification
AI-assisted contribution (authored and verified with an AI coding assistant).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.