perf(metal): attach each heap residency set once per command buffer #198
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!198
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/198/head"
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?
@brainbudt on GitHub · 2026-11-26 23:54 UTC · original
brainbudt:perf/metal-dedup-residency-set→main· +54 −7 · 1 files · 1 commits · merged 2026-11-27 00:31 UTCSummary
In
crates/victory-metal/src/gfx.rs,use_heap_cbcalledcb.useResidencySet(set)on every compute dispatch and draw call, even when the same descriptor heap's residency set had already been attached to that command buffer.Changes
submit_passesand skip duplicateuseResidencySetcalls inuse_heap_cbwhile still committing any dirty heap updates beforehand.Verification
cargo test -j4 -p victory-metal(all 43 tests pass)cargo clippy -j4 -p victory-metal --all-targets --target x86_64-pc-windows-gnullvm -- -D warningscargo xtask policy@LakshanSivakumar on GitHub · 2026-11-27 00:31 UTC · original · approved these changes
Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!