Share heap-sync rounds between queued submissions #323
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/323"
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:58Z.
Summary
Split out from #284 per review feedback as a standalone single-change PR on
origin/main(38c4cf9).Every submission sent from a queue thread previously requested a fresh heap-sync round of its own and waited for it, even when a round that started after the title submitted it had already finished.
What changed
descriptor::heap_sync_stamp) with the first round number that begins after that moment (SyncRounds). At preparation, only wait for a round if no round from that stamp onward has completed, allowing back-to-back queued submissions to share one round.Host::execute, present copy).SyncRounds::floorstrictly after writes or GPU copy-back landings that touch shader-visible descriptor heaps complete:port_journal::prep_wrote()is called aftercopy_mapped/prepare/copy_raw_titleinStep::Copy,Step::Placed(whenfree), andStep::RawCopy.descriptor::any_in_shader_heap/Host::landed_touches_shader_heapto callport_journal::prep_wrote()afterhand_backmerges GPU copy-back landings into title memory in bothrelay_landandsettle.port_journal::round_afterand cleaned up stale doc comments indescriptor.rs,port_journal.rs, andhost.rs.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).origin/main(38c4cf9, SHA-256F3DF678E...;base38-r2for settled 4,467-draw Prologue cell tail andbase38-r3for contiguous diner + early cell)6a1cf20(HEADb56ee49differs only by doc-comment cleanup) (SHA-25621FED4C7...,heapsync-r1; note: the initial diner samples at16:12:42–52still drained188 → 161 → 15being_madepipelines before hitting0at16:12:57(+62s) for the rest of the diner and the entire Prologue cell)VICTORY_*settings (scripts/play.ps1 -Console series-s -Machine 4070 -Build diag+VICTORY_PIPELINE_WORKERS=8,VICTORY_FULLSCREEN=1,VICTORY_PANEL=1)Primary targeted metric (settled Prologue cell,
being_made = 0, ~4,470 draws/frame):base38-r2(38c4cf9)heapsync-r1(6a1cf20)at the end ... waiting for the heaps' recordsthat thread worked)Other windows (
being_made = 0, single run each vsbase38-r3):being_made = 0diner (16:12:57–16:13:44,n=10vsbase38-r3n=11):14.94 FPS(med14.75, submit59.02 ms) vs14.50 FPS(med15.40, submit60.82 ms) — neutral like-for-like (whole diner including the initialbeing_madedrain was65.16 msvs61.72 ms).19.43 FPS/48.75 mssubmit /4.21 msheap wait vs18.80 FPS/49.41 mssubmit /5.05 msheap wait (within single-run spread).−1.76 msreduction in end-of-submission heap-sync wait with neutral headline FPS and clean visuals.Full-video visual review
heapsync-r1(168.2s) via start-to-finish contact sheet and full-resolution diner waitress & Prologue cell frames alongsidebase38-r2/base38-r3: 0 errors, 0 DRED. Both diner waitress and Prologue cell rendered cleanly throughout (no texture corruption;base38-r2andbase38-r3exhibited intermittent upstream rainbow face corruption on the waitress whileheapsync-r1was clean).Imported from TaynanGT/Vice-Tay. Originally posted by PetrSeifert on 2026-11-27T19:35:40Z.
Superseded by merged #343 (
aa917f3, incorporating these heap-sync round changes onto currentmain). Closing — thanks!Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T19:40:08Z.
@PetrSeifert Confirmed
aa917f3is onmain. Eligible queued submissions can use the same completed heap-sync round, with a fresh round still required on the paths that need one.Pull request closed