gpu(list): skip host list allocation for empty thin recordings #139
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!139
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/139/head"
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?
@Androtim on GitHub · 2026-11-29 14:41 UTC · original
Androtim:feat/iter140-thin-skip-empty-command-lists→main· +73 −2 · 1 files · 2 commits · merged 2026-11-29 21:26 UTCSummary
Avoids allocating unused D3D12 host command lists and driver allocators for empty command recordings in
crates/victory-gpu/src/list/thin.rs:VICTORY_EMPTY_NO_LIST(on by default,=0disables) andis_empty_recording().Recording::run, when a recording has no prior host list or chunks (inner.back == 0 && inner.kept.is_empty() && inner.chunks.is_empty()) and contains onlyRESET(pipeline)+CLOSE, marks it closed and done immediately without callingback_list(), decrementsPENDINGif needed, recycles the chunk buffer, and logs the skipped total inthin::line().empty_recording_detection_matches_only_reset_then_close.Verification
cargo +1.98.1-x86_64-pc-windows-gnu xtask policy(303 files ok)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked -- list::thin::(7 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --locked -- -D warnings(0 warnings)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics --locked -- -D warnings(0 warnings)@Androtim on GitHub · 2026-11-29 16:03 UTC · original · edited 2026-11-29 18:03 UTC
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingReview Summary
The change in
crates/victory-gpu/src/list/thin.rsis concise, well-scoped, and CI is passing.is_empty_recording): Matcheschunk.len() == 3 && chunk[0] == (RESET | (1 << 16)) && chunk[2] == CLOSE, which aligns withFront::begin(put(RESET, &[pipeline as u64])) followed immediately byFront::close(put(CLOSE, &[])).Recording::run): Guarded byinner.back == 0 && inner.kept.is_empty() && inner.chunks.is_empty()andempty_takes_none()(VICTORY_EMPTY_NO_LIST, on by default,=0disables). Properly mirrors the normalclosedcompletion path: setsinner.closed = true, clearsinner.scheduled = false(avoiding a stuck scheduled bit on early return), decrementsPENDINGifinner.pendingwas set, storesdonewithReleaseand callsmoved.notify_all(), drops the lock before recyclingchunkviagive_back, incrementsSTATS[2]andEMPTY, and notifiescrate::queue::line_moved().is_empty_recordingandRecording::runcompletion without a host list, and reports the cumulativeEMPTYcount inthin::line().Why
needs-gpu-testBecause
VICTORY_EMPTY_NO_LISTis enabled by default on theVICTORY_THIN=1D3D12 command-list translation/submission path and causes completed empty recordings to return a nullRecording::back(), a quick local GPU smoke test is warranted to verify end-to-end submission handling and absence of queue stalls before merging.(Automated triage review; not formal maintainer approval.)
Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-11-29 17:56 UTC · original
Rebased onto
origin/main(9d8b3646, which includes the#140card_stepsCI flake fix) and addressed the triage notes at438a5c3a:thin::line()fromempty skipped {}toempty skipped total {}.empty_recording_run_skips_host_list_and_completes_cleanlyincrates/victory-gpu/src/list/thin.rsto exerciseRecording::runon an empty[RESET, CLOSE]recording (assertingdone(),back().is_null(),PENDINGdecrement,EMPTYincrement, andclosed/!scheduled/!pendingstate).Local Verification
cargo +1.98.1-x86_64-pc-windows-gnu xtask policy:305 files okcargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked -- list::thin:::8 passed; 0 failedclippy --all-targets -- -D warnings(default and--features diagnostics): 0 warnings@Androtim on GitHub · 2026-11-29 21:26 UTC · original
Automated RTX 4060 Ti 8 GB Open-World A/B hardware verification PASSED (
playtest/wave5vsorigin/mainb1b6dc1,VICTORY_LEVELS_ON_DEMAND=0play-parity):cargo test(RTX 4060 Ti): 645 passed, 0 failed (victory39/39,victory-shaderemit::wave64_tests19/19 &lower19/19,victory-gpu568/568).scripts/verify-world.ps1, DLSS Quality + open-world save):9.4 fpsvs7.5 fps(+1.90 fps / +25%), min8.3 fpsvs0.8 fps, preparing53.6 msvs60.0 ms5760 MBvs6005 MB(-245 MB,0 MBover budget);no room for new oneshalved (9,000vs18,000);max_waitingdropped (36,432vs41,431)0mismatches (other_bytes=0, showed_another_view=0, failed=0vs5and2on baseline)mapped_rate1.63 ms/svs6.9 ms/s(-76%, max12.9vs51.9 ms)frame-5975.png,frame-5983.png),edge_energy=4.69vs3.88,near_black=0.02%,magenta=0.0%(and#1412bf6800showed zero visual artifacts).