perf(gpu): lock-free kept_raw, packed u64 ListViews, and RwLock PLACED_TEXTURES #23
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ToLIManl--VIctory-Hydra!23
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/23/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?
@justadudeinbulgaria on GitHub · 2026-11-30 23:19 UTC · original
justadudeinbulgaria:pr/descriptor-host-and-placed-fastpath→main· +107 −38 · 2 files · 1 commits · closed without mergingSummary
Cuts hot descriptor-slot and placed-texture lock contention and hash-table overhead:
crates/victory-gpu/src/descriptor/host.rs:AtomicUsizekept_rawmirror andkeep_ref()so single-owner dynamic descriptor slots (index >= count) skip COMAddRef/Releaseand the per-slot mutex completely when rebinding the same resource.clear_twin()with a relaxedAtomicBool::loadbefore atomicswap.ListViewshash keys(words[1], words[2])into a singleu64with single-lookupentry()inmake_listed.crates/victory-gpu/src/resource.rs:PLACED_TEXTURESfromMutex<BTreeMap<...>>toOnceLock<RwLock<HashMap<..., AddressHash>>>with a read-lock fast-hit path intexture_at(), eliminating exclusive lock contention across concurrent descriptor/list threads.Verification
cargo test --release -p victory-gpu --lib descriptor::(66/66 passed) andcargo test --release -p victory-gpu --lib resource::(15/15 passed).D3D12Core.dll/ descriptor thread CPU overhead cut cleanly with zero visual issues).@ToLIManl on GitHub · 2026-12-01 00:48 UTC · original
Integrated into \main\ in commit \
64f4cb9\ (with \Co-authored-by\ attribution).Verified via \ictory-gpu\ release tests (\descriptor::\ --test-threads=1\ \66 passed,
esource::\ \15 passed) and live RTX 3060 runs.
Pull request closed