Join adjacent D3D12 barrier calls #1890
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1890
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1890"
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?
@Gauss999 on GitHub · 2026-11-29 01:46 UTC · original
Gauss999:patch-9→main· +456 −9 · 4 files · 1 commits · openWhat it changes
VICTORY_JOIN_BARRIERS=1as an opt-in. The default remains immediateResourceBarrier, without batching allocation or resource retention; diagnostics builds can also useVICTORY_AB.Rec: adjacent barriers are held, then emitted in their original order before the next command, direct barrier,Close,Reset, or otherDerefuse.clear_rtvand texture alias transitions that were not present in the original port.pResourceBeforeandpResourceAfter), and UAV.Sources: original replay implementation d3a6c2c, isolated port 195dd84, and conflict-index test 72b0a47. The unrelated
VICTORY_UP_QUEUEcopy-queue work is deliberately excluded.The original source reports 2,490 barrier calls joined (1,619 upload-transition/next-aliasing pairs), saving 2.4 ms of 79.5 ms in replay5. That is a third-party replay result, with no in-game measurement or guaranteed gain here.
How it was tested
cargo test: not run in this environment. No build, clippy, fmt, WARP, Debug Layer, PIX, or game run is claimed.Deref/Closeflushing still need runtime regressions.Required before leaving Draft: run fmt, clippy and
victory-gputests on Windows; add/run non-null resource retention andDeref/Closetests; exercise repeated A→B→C, aliasing-before/after and UAV cases under D3D12 Debug Layer; inspect PIX/event order; then A/B the same replay and an actual game with GPU/CPU timestamps and the asked/made counters.Checked for overlap
VICTORY_JOIN_BARRIERSand inspected the source/downstream ports. Related downstream Draft: Dathinel/victory-4gb#49.VICTORY_GPU_TIMES) #2735ef49614d9fto2b31ba6178View 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.