perf(gpu): stage/access-scoped D3D12_GLOBAL_BARRIER (VICTORY_ENHANCED_GLOBAL) #19
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!19
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/19/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/enhanced-global-barriers→main· +294 −26 · 2 files · 1 commits · closed without mergingSummary
Adds opt-in
VICTORY_ENHANCED_GLOBAL=1(off by default) to preserve the title'sD3D12_BARRIER_SYNCandD3D12_BARRIER_ACCESSscopes onBARRIER_TYPE_GLOBALand un-scopedBARRIER_TYPE_BUFFERcalls viaID3D12GraphicsCommandList7::Barrier(D3D12_GLOBAL_BARRIER)instead of emitting full-pipeline legacyUAV_BARRIER(NULL)drains:crates/victory-gpu/src/host/rec.rs: AddsRec::global_barrierwithmerge_sync/merge_accesscoalescing whenVICTORY_JOIN_BARRIERS=1(preservingSYNC_ALLandACCESS_COMMONsemantics), flushing pending global barriers ahead of subsequent legacy transitions, and falling back to legacyUAV_BARRIER(NULL)when Enhanced Barriers are unavailable.crates/victory-gpu/src/list.rs: Tracks sanitizedD3D12_GLOBAL_BARRIERsync/access scopes onEnhancedActionusing exact DIRECT-queue bitmasks (VALID_PC_SYNC = 0x0180_FFFFpreservingCLEAR_UNORDERED_ACCESS_VIEW0x8000&EMIT_RAYTRACING0x4000while excluding video-queue-only bits;VALID_PC_ACCESS = 0x0001_FFFF).Verification
cargo test --release -p victory-gpu --lib enhanced_barrierpasses (includingsanitize_sync/sanitize_accessDIRECT-queue mask assertions).VICTORY_GPU_PASS_PROF=30A/B on RTX 2060 SUPER 8 GB (439–534 global barriers/frame, 6,600–7,300 draws): cut GPU compute pass time from37–43 msto26–34 ms(-8 to -12 ms/frame,CS_ZeroOperation-44%,CS_PosOnlyLodSkinning6.9xfaster) with zero dropped-pipeline regressions and clean visuals.@ToLIManl on GitHub · 2026-12-01 00:47 UTC · original
Integrated into \main\ in commit \
64f4cb9\ (with \Co-authored-by\ attribution, combined cleanly with PR #20's \Rec::list6\ in \host/rec.rs).\VICTORY_ENHANCED_GLOBAL=1\ remains opt-in (off by default). Verified on RTX 3060 12 GB (\rrors=0, \mem_pressure=0, \mean_fps=14.61, \median_fps=15.55, \p99_ms=141.8) and via \ictory-gpu\ \list::\ tests (\8 passed).
Pull request closed