GPU: retain Deferred container capacities across HostList::reset #185
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by MartinIndra02 on 2026-11-24T22:19:11Z.
Summary
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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.