perf(gpu): lock-free fast path for common indirect host command signatures #285
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/trustno1-coder--VIctory-NVIDIA!285
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-285"
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?
@Mikey970 on GitHub · 2026-11-27 20:40 UTC · original
Mikey970:pr/lockfree-host-signature→main· +28 −3 · 1 files · 1 commits · openProblem
host_signature(kind, stride)incrates/victory-gpu/src/draw.rsacquires a globalMutex<Vec<...>>on every indirect draw/dispatch lookup across all parallel command-list recording workers (~4,500+ indirect executions per frame).Fix
[OnceLock<Option<SyncSignature>>; 4]fast path for the four standard single-argument indirect command signatures: Draw(0, 16), DrawIndexed(1, 20), Dispatch(2, 12), and DispatchMesh(10, 12).Mutex<Vec<...>>cache as a fallback for any non-standard(kind, stride)pair.ID3D12CommandSignatureis immutable and free-threaded in D3D12.Testing
cargo test -p victory-gpu --lib draw::thread_tests.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.