Plan a submission's card steps once #322
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/TaynanGT--Vice-Tay!322
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@PetrSeifert on GitHub · 2026-11-27 16:38 UTC · original
PetrSeifert:perf/card-steps-preplan→main· +101 −39 · 2 files · 1 commits · openSummary
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).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.