Copy-back pull requests measured together on 0b0074e (RTX 4070) #1064
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#1064
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@SantannaCarlos on GitHub · 2026-11-25 18:11 UTC · original
Ten open pull requests change the copy-back or its neighbours. This measures the ones that apply to
0b0074e, each alone and some combined, on one card. It also gives a base run on465b94f, with and without its opt-in switches. Only measured facts below.Setup
VICTORY_MERGE_RACE=1is on in every run, for the correctness column. It costs time: two earlier runs of the same0b0074ebuild without it measured 156–169 ms copying back and 97–100 GPU ms, against 200–209 and 129–137 for the base rows here. All rows below have it on.In
0b0074e's default mode the late wait and the relay (stage 2) are on, so the copy-back runs on the relay's thread, throughrelay_mergeandcard_merge_relay.Which pull requests apply to
0b0074e0b0074erelay_mergeandcard_merge_relay)BTreeMapback_piece, the synchronous copy-back)VICTORY_BACK_RUN_GAP, 64merge_under_writesrelay_merge,card_merge,card_merge_relayshadow.rs(three hunks); rebased locally for this measure onlyshadow.rs; the zeroed 64 KiB scratch it removes is already gone from main since8dd30absync_heapsskips pages whose bytes did not changedescriptor.rs; its fingerprint part is in main since9376fd6card_merge_relayVICTORY_WIDE_MERGE=1host.rs(not measured)VICTORY_INPLACE=3/4,VICTORY_INPLACE_POOL=1host.rs,lib.rs(not measured)host.rs,watch.rs(not measured)#255, #448, #857 and #925 also apply to
465b94fas they are, #786 with the same local rebase. On today'sd510ee4, #857 conflicts inshadow.rs(withca8829f); #255, #448 and #925 still apply.Results (
0b0074eunless said)465b94f, default465b94f,VICTORY_BACK_OWN_VIEW=1 VICTORY_JOIN_PARTS=1back_pieceis not reached).merge_under_writes, which looked at about 150 pages and 300 changed runs a frame here, under 0.01 MB.0b0074emakes the frame 6–8 times slower. It writes every changed byte run with its ownwrite_mappedcall (write_changed_runs); the per-run write is what #857 joins runs to avoid. The calls were not counted.shaders_writeandput_back_ownwhere #786 rewrites the store), so the author may want to rebase it.0b0074e.VICTORY_MERGE_RACEreported no title byte put back and no byte both changed in any run, no run lost the device or crashed, and the cell-window shot at +240 and +480 differs from a base run no more than two base runs differ from each other.465b94fin its default mode measures the same as0b0074e. With its two opt-in switches the frame is about 18 % shorter (256 → 211 ms) and copying back about 19 % (202 → 164 ms); preparing copies fall from 164 to 118 MB and GPU time from 129 to 94 ms. That is in line with the 6 % and 9 % given for them in3973179, and more than any of the pull requests above, alone or together.Not measured: #1053 and #1058, opened after these runs, and
ca8829f'sVICTORY_COPY_CHANGED=1(off by default).Related: #1003 (Key-rs, RTX 4060 Laptop,
0b0074e) measures copy and copy-back at 2.4–5.6 ms/MB a frame with the GPU idle; not checked here.