GPU: reuse the relay merge scratch and skip fully superseded reads #1350
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/fxceless--victory-fork!1350
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1350"
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?
@Marukooh on GitHub · 2026-11-26 17:33 UTC · original
Marukooh:relay-reuse-merge-scratch→main· +28 −11 · 1 files · 1 commits · draftThe GPU-resident buffer relay cleared and initialized its temporary title buffer for each divergent piece. This reuses the initialized prefix within a landing. A successful title read fills the prefix, and on a failed read the scratch is used only to update the CPU shadow. When later or pending uploads cover the entire divergent span, the merge skips the title read.
The change is in
card_merge_relay, adjacent to the work in #786. #240 applies a similar idea to scratch incopy_back_with.Built on
e4245f3for Windows GNU with diagnostics. Ran the extendeda_title_byte_sent_after_a_flight_survives_its_slotregression under Proton on RTX 5070 Ti. It exercises reuse of a prefilled larger scratch buffer, preserves a title byte uploaded after an earlier flight, and checks that a fully covered span leaves title memory and scratch untouched.The earlier Series X prototype showed mixed frame-time improvements. Copy-back byte volume also varied, so a matched in-game comparison on this base is pending. AI-assisted. This patch and its test use synthetic data.
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.