Join adjacent D3D12 barrier calls #1890
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Gauss999 on 2026-11-29T01:46:27Z.
What 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.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.