perf(gpu): lock-free fast path for common indirect host command signatures #285
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Mikey970 on 2026-11-27T20:40:41Z.
Problem
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.