Plan a submission's card steps once #322
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/322"
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 TaynanGT/Vice-Tay. Originally posted by PetrSeifert on 2026-11-27T16:38:53Z.
Summary
Split out from #284 per review feedback as a standalone single-change PR on
origin/main(38c4cf9).With
VICTORY_PLACED_ORDER=1,Host::execute_partscalledcard_steps::cut_for(&runs)to gather a submission's steps and plan them just to check whether a cut was needed, andHost::card_stepsthen gathered and planned the exact same submission a second time under the submission lock.This change replaces
cut_forwithcut_or_plan: when no cut is needed, it passes the gathered steps and plan (Preplan) intosend_late→submit→card_steps, which reuses them directly if the active flights' shader-written ranges are unchanged and falls back to re-planning otherwise. The cut andsplit-error paths passNone.Verification
Automated checks
cargo xtask policy --staged— passedgit diff --check— cleancargo clippy --locked -p victory-gpu --all-targets -- -D warnings(default and--features diagnostics) — passedcargo test --locked -p victory-gpu --lib -- --test-threads=1(default and--features diagnostics) — passed (single-threaded due to the pre-existing parallel flake inhost::refresh_tests::raw_title_copy_keeps_write_watch_and_resends_equal_byteson unmodifiedmain)Real-title comparison (GTA VI, Series S, standard
-Machine 4070diagbuild)target\diag\victory.exeshared path). Diner comparisons use the exact contiguousbeing_made = 0diner window (n=11five-second samples, excluding initial scene-load spike and final transition), plus whole-diner submit time.origin/main(38c4cf9, SHA-256F3DF678E...,base38-r3,being_made = 0from+8s; plus settled cell tail frombase38-r2)ee7eb38(SHA-256B2702CC5...,preplan-r2,being_made = 0from+7s)VICTORY_*settings (scripts/play.ps1 -Console series-s -Machine 4070 -Build diag+VICTORY_PIPELINE_WORKERS=8,VICTORY_FULLSCREEN=1,VICTORY_PANEL=1)being_made = 0, single run each)base38-r3(38c4cf9)preplan-r2(ee7eb38)n=115s samples)n=511s samples)base38-r2settled tail 19.80 FPS)planning steps done on the card(Note: because
cut_or_planruns outside the submission lock and outside theplanning steps done on the cardtimer, the cell FPS delta is within single-run spread relative to the settledbase38-r2tail19.80 FPS, while the contiguous diner window showed the clearest submit-thread reduction.)Full-video visual review
base38-r3(140.8s) andpreplan-r2(149.2s) via start-to-finish contact sheets and full-resolution diner/cell frames: 0 errors, 0 DRED. Clean diner waitress and Prologue cell rendering throughout (one brief Lucia eye-texture streaming miss in one diner shot underVICTORY_TEXTURE_NO_WAIT=1, clearing on the next cut).Imported from TaynanGT/Vice-Tay. Originally posted by PetrSeifert on 2026-11-27T19:35:35Z.
Superseded by merged #344 (which cherry-picked this commit as
b9ef925along with the follow-up replan/order guards). Closing — thanks!Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T19:40:02Z.
@PetrSeifert Confirmed #344 carries the plan reuse along with the write-watch and placed-copy order checks. Those checks are what let
mainreplan when a previously gathered plan goes stale.Pull request closed