GPU feed: our send-up list goes first in its submission's own ExecuteCommandLists call (VICTORY_FEED_ONE_CALL=1, off by default) #1134
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1137"
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 fxceless/victory-fork. Originally posted by exotiquee on 2026-11-25T21:23:08Z.
Branch:
pr/feed-one-call(1 commit onmain085ee7c)What it does
Today
Host::card_beforecloses the send-up and hash list (the changed bytes of host copies in the card's memory, sent up and hashed again) and sends it in anExecuteCommandListscall of its own, ahead of the submission's call.With the switch it closes the list but does not send it. The list comes back as a
SendUp, andsubmitputs it at the front of the submission's own lists. In timing runs (VICTORY_GPU_TIMING) it goes in the first group, andfirstsshifts by one.The card runs the same commands in the same order:
card_results_lowcome beforecard_before.QUEUE_ORDER) stays held until the call, so a fetch numbered after the send still runs behind it.Second::sent_up) is signalled behind the call: later than before, never earlier.Off, nothing changes.
numberedis factored out ofcard_beforeso that both paths signal the same way.What it saves: one
ExecuteCommandListscall and one boundary between calls per submission, 15-17 a frame in the title.Not in this PR: the feed meter (
VICTORY_FEED_METER, our stage F0) that this change was developed and counted with.mainconflicts in 38 places: it decodes barrier origins for our hoisted clamps, runs and gathers.So the meter stays out until it is ported and that is understood.
Switch
VICTORY_FEED_ONE_CALL=1. Off by default.Tests
warp_three_copies_go_up_in_one_list_and_their_writes_come_back, new here:VICTORY_D3D12_WARP=1, diagnostics), where the debug layer checks the barriers. Result there: passed. The queue2 tests on WARP with the switch set in the environment also passed: 10 passed, one skipped for its relay/queue settings.cargo +1.98.1 test --locked -j 4 -p victory-gpu: 184 passed. With--features diagnostics: 201 passed.main.What we measured (RTX 5080, Ryzen 7 9800X3D)
ExecuteCommandListscalls cost ~15 µs, against 0.09 µs for a boundary between lists inside one call.VICTORY_CLAMP_AT_WRITE) and several heap/descriptor switches came out about +2 fps over the same build with all of them off: 13.3-15.3 fps (~14.3) against ~12.2.Risks
submitreturned betweencard_beforeand itsExecuteCommandListswith the switch on, the send-up list would be dropped unsent. Today every path fromcard_beforereaches a call: the late path and the group loop both take theSendUp.🤖 Generated with Claude Code
Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-25T23:03:03Z.
Tested on Linux (GE-Proton + vkd3d-proton, RTX 5080) together with #1078, #1086, #1136, #1138, #1146, and #154:
heap buffers: dropped from200.4 msmedian (848 msmax) down to17–35 msremapping: ... waiting for readers:0.0 mscopying back: median improved from161.6 msto130.6 ms(CARD_FETCH_INFLIGHT=1fetch wait3.7 ms -> 0.6–1.4 ms)VICTORY_PIPELINE_WAIT_MS=50, world intervals reachedmed=252.1 ms (4.0 fps)andmax=8.6 fps (116.8 ms/frame)(usual frame: 87–92 ms).Note: Log analysis and write-up were AI-assisted based on local runtime measurements.
Pull request closed