perf(draw): ExecuteIndirect uses the cached host command signature by reference (no AddRef/Release per call) #643
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/lobomfz--VIctory-xmem!643
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-643"
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?
@Raptorbk45 on GitHub · 2026-12-05 22:37 UTC · original
Raptorbk45:perf/indirect-signature-by-ref→main· +21 −9 · 1 files · 1 commits · openhost_signaturereturns a clone of a command signature cached for the whole process, so everyExecuteIndirecttranslated does anAddRefand aRelease(two atomic RMWs through COM).host_signature_refreturns&'staticto the cached one (theCOMMONOnceLocks, or a leaked box for the rare other kinds/strides, which were already kept forever inMADE);host_signaturekeeps its signature ashost_signature_ref(..).cloned()forindirect.rs.Same behaviour; the signatures were already never released.
How it was checked
Run after the final edit, on Linux (CachyOS), against
mainat8c4e6633:./build.sh check(release, MSVC target): passes; the one warning (room_latelynever used,resource.rs) is already onmaincargo xtask policy: passesNot run: the game, on this branch (same change in daily use on our fork since 1 December 2026).
Branch head:
f57a628c.Not measured on its own (a pair of atomics per indirect call). No test: needs a D3D12 device.
Checks
host_signaturecargo xtask policyView 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.