perf(gpu): shard RETIRED resource queue 16-way and add VICTORY_WIDE_THREADS #139
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!139
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-139"
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?
@dcastell1 on GitHub · 2026-11-27 18:42 UTC · original
dcastell1:perf/sharded-retired-wide-threads→main· +55 −13 · 2 files · 1 commits · openSummary
Shard
RETIRED16-way (crates/victory-gpu/src/host.rs):retire_resourceandretirepreviously pushed ~20,000 items per frame across recording, descriptor-sync, and submitting threads onto a single globalMutex<VecDeque<(u64, Retired)>>(noted as ~2.9% of submitting-thread wall-time mutex contention in #57'ssamplyprofile).Mutex<VecDeque<(u64, Retired)>>shards. Within each thread's shard,startedtimestamps arrive monotonically;bury(finished)drains all 16 shards and drops retired COM objects outside the locks, preserving identicalbury_laglifetime semantics.Cache
wide_threads()and exposeVICTORY_WIDE_THREADS(crates/victory-gpu/src/shadow.rs):wide_threads()was queried on everywide()invocation (~95 calls/frame) and hard-clamped to2..=6.OnceLock(preserving the existing2..=6default when unset) and honoursVICTORY_WIDE_THREADS(1..=16) so high-core CPUs (for example 16 P-core logical processors on i9-12900K/13900K/14900K or 16-core Ryzen) can widen parallel refresh batches without oversubscribing.Verification
--res 4k --dlss quality --framegen 4.cargo test --locked -p victory-gpu --lib wide_threads_tests: 1 passed, 0 failed.cargo test --locked -p xtask: 6 passed, 0 failed (asset policy green).Note: Made with AI assistance and reviewed, built, and tested by a human.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.