GPU feed: our send-up list goes first in its submission's own ExecuteCommandLists call (VICTORY_FEED_ONE_CALL=1, off by default) #1137
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!1137
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@exotiquee on GitHub · 2026-11-25 21:23 UTC · original
exotiquee:pr/feed-one-call→main· +253 −16 · 1 files · 1 commits · openBranch:
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
@BitWuehler on GitHub · 2026-11-25 23:03 UTC · original · edited 2026-11-25 23:24 UTC
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.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.