perf(texture): bypass intermediate buffer for compatible committed twin copies #657
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/lobomfz--VIctory-xmem!657
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-657"
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?
@tommiehansen on GitHub · 2026-12-06 01:25 UTC · original
tommiehansen:perf/phase13-direct-twin-copy-20261206→main· +333 −18 · 3 files · 8 commits · openWhy
Avoid the intermediate buffer and associated barriers on eligible texture twin copies.
What changes
Opt-in VICTORY_DIRECT_TWIN_COPY admits independently committed host backing, distinct resources and matching typed single-plane 2D format/dimensions/subresources. Depth/MSAA/placed/reserved and incompatible cases retain the existing route. Existing state transitions and write tracking are preserved. Cached plans now include requested mip-level coverage as well as both resource serials, preventing reuse of a stale plan for a different number of levels.
Benchmark results
Final head
8a87edd, WARP, eight alternating ABBA/BAAB blocks per shape. Median block medians, paired interval reductions:Intermediate bytes eliminated on admitted path. Small BC1 is noisy; no general small-copy speedup claim.
Why this should be merged
Removes unnecessary intermediate allocation/copies on eligible resources, preserves exact outputs and improves larger measured copy intervals. Ready for review as scoped opt-in; default behavior remains unchanged.
Validation
Final-head CI 47594765725 passed: 192 exact paired readback arms, 12 actual production planning/recording passes and four retirement controls. Real committed resources, three mips and two array layers, selected repeated writes, HostList state transitions, row-level oracles, admission rejection controls and serial/level cache invalidation; intermediate buffer present only in baseline. Prior CI 47592026839 independently measured the original route.
Compatibility and dependencies
Independent opt-in. The production plan/cache/record path is exercised, not full title twin_copy entry or actual placed/reserved allocations. Physical AMD timing, distinct guest physical alias stress and title activation remain open. No gameplay FPS claim.
Physical AMD capture
Test-only head
c32f9c8adds a strict actual DXGI AMD adapter identity gate, without changing production logic. Use the shared runner withPRC_AMD_GATES=direct_twinand eight internal paired blocks. Physical execution remains pending. Earlier tables retain their measured revision; negative paired time change means improvement. #662 uses the same allocation-provenance concept; preserve a single definition when integrating.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.