Performance: multi-subsystem CPU submission, memory sync, shader recompiler & format throughput overhaul #637
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/Belobug--VIctory-Belobug-AMD!637
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-637"
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?
@iWebbIO on GitHub · 2026-11-27 15:38 UTC · original
iWebbIO:perf/multi-subsystem-speedups→a-publier· +1506 −535 · 24 files · 9 commits · openSummary
This pull request delivers 9 focused, invariant-preserving commits across
victory-gpu,victory-shader,victory-formats, andvictory(apps/victory), targeting the major bottlenecks documented indocs/findings.mdandREADME.md:40–48 ms/framewall): UnlockingLANE.stateduringJob::Listsunfold, consolidatingLane::steplocks, lock-freeLane::wakeDekker handshake, fusingask_once+stale_under_flightsscans, eliminatingcard_stepsper-fillBox<dyn Iterator>/ full cache wipes, cache-line aligningwatch::Notesshards, word-levelguard()bitmap scans, 128-byte AVX2vptestfast-skip inshadow.rs, lock-freeAtomicUsizework stealing inland::Pool, andO(log N)land_cardwith batchednote_landings.230–430 msCPU work/frame): 64-shardRwLock<HashMap>forPLACED_TEXTURES, lock-freeheap.host.get()fast path indescriptor::mirror, lock-freeOnceLockcanonicalhost_signature, zero-allocationtargets/barrier, thread-local stat batching inport_cbv, and releasingupload::ARENASbefore zeroing (skipping zeroing on fresh OS-zeroedVirtualAlloc2blocks).~9 GBlist allocators): Boundinglist/thin::BACKSto 32 entries and convertinglist::IDLEtoVecDequewith pressure-awarelist::trim()called frompool::room().>200 msspikes,victory warm): DeduplicatingID3D12RootSignatureper(device, blake3(bytes))(also fixing per-switchdraw.rsroot-signature cache misses), single-passanalyze_stores(), and replacing the 500 ms polling sleep inapps/victory/src/warm.rswith aCondvarwatchdog.victory-formats): Macro-block cache-tiled detile/tile traversal with power-of-2 bounds-check elimination and 4-byte fast path, stack-allocated layout tables, 9-bit primary VLC LUT +u64::from_be_bytespeek32+pow10_div20LUT in XMA2, and cache-local branchlessBucketInfo+ compile-timeSPREAD8/NIBBLES_LUT+u16anchor bitmask + stackhistoryin BCPack.victory-shader): Fast-path bailout inir::unspill(), denseVec-indexeddefs/phis+FxHashsets + lazyexecinstructure::Lanes,O(|BDD|)Bools::vars()+ single-passBools::given(), and single-pass worklistTracer::propagate_copies().Verified Microbenchmark Results (Release, Linux x86_64,
rustc 1.98.1)victory-shader(cargo bench -p victory-shader --bench guard_runs)unmasked(0 masks, 512 VALU)short runs(8 masks, run=1)long runs(8 masks, run=64)victory-formats(texture_layout_bench, detile/tile, XMA2, BCPack)BC7 64KB_DlayoutRGBA8 4KB_DlayoutRGBA8 linearlayoutBC7 4096×4096 SW_64KB_DdetileRGBA8 2048×2048 SW_64KB_DdetileR8 3D 128×128×64 SW_64KB_Sdetilebcpack_throughput)Commit Breakdown
perf(victory-formats): macro-block tiled detile, XMA2 VLC/pow10 LUTs, and branchless BCPack rANScrates/victory-formats/src/texture.rs,xma.rs,bcpack.rsperf(victory-shader): fast-path unspill, dense Vec tables + single-pass Bools::given, and worklist copy propagationcrates/victory-shader/src/ir.rs,structure.rs,resource.rsperf(victory-gpu/queue): unlock LANE during unfold, consolidate Lane::step, lock-free wake, and TLS port statscrates/victory-gpu/src/queue/behind.rs,port_cbv.rs,port_journal.rsperf(victory-gpu/host): fuse ask_once/stale scans, optimize card_steps & join_ranges, and unlock upload::ARENAScrates/victory-gpu/src/host.rs,host/card_steps.rs,upload.rsgithub-bot referenced this pull request2026-11-27 16:32:53 +00:00
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.