Read fills behind placed copies on the card in NVIDIA launches #363
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/363"
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 maximecmb on 2026-11-27T19:52:54Z.
Summary
df01b38(#344) added two things: a submission now waits for flights when a read left on the CPU depends on a copy at its place whose bytes a flight still writes, and a fill may read that copy's source on the card instead. The second is behindVICTORY_PLACED_FILL_REDIRECT=1, off by default, so the default configuration has the new waits without what avoids most of them.This sets the switch in
scripts\play.ps1whereVICTORY_PLACED_ORDER=1is set: NVIDIA cards, outside-Safe.-More @{VICTORY_PLACED_FILL_REDIRECT='0'}turns it off again. No Rust changes.How it was found
A played run on
aa917f3showed the submitting thread waiting 5 to 10 ms a frame for flights in the prison, with most frames having one submission refused by the steps done on the card. Earlier runs had none. Building the commits in between, same4070tisuperpreset and the same copy of a warmed cache, 75 s of the opening cutscene each:a33271f(before #344)54bbb7fdf01b3810675b5(#344 merged)aa917f3aa917f3with the switchIn play
RTX 5080 16 GB (driver 617.42), Ryzen 7 9800X3D, 64 GB, Series S, diagnostics build of
1d83085,-Machine auto. Three recorded runs of the same prison section, played by hand from the prologue's save, withVICTORY_ABchanging the switch every 4 or 5 s. Phases of 3,000 draws a frame or more:VICTORY_PORT_JOURNALVICTORY_HELPER_PRIORITYWeighted by their errors: −1.7 ms (± 0.7) on frames of 37 to 49 ms, 31 of 42 cycles faster. The frame gains less than the wait it loses: part of that wait is for work of the card the frame needs anyway. No run had an error or lost the device.
What this does not cover
-Safeare untouched becauseVICTORY_PLACED_ORDERis not set there.VICTORY_PORT_JOURNAL−3.0 ms (± 2.3), 8 of 13 cycles faster;VICTORY_HELPER_PRIORITY−1.4 ms (± 3.1), 7 of 13. Not changed here.Visual review
The three recordings were reviewed from one frame every 7 to 10 s. The prison, the walk with the guard, the common room, the office and the scenes after it look the same in the three, with nothing that comes and goes with the switch's phases at that sampling. In all three the robbery scene that follows has very bright highlights; that was not compared with the switch held off for a whole run. Recordings stay local under the asset policy.
Verification
scripts\play.ps1applies, printed just before launch:VICTORY_PLACED_FILL_REDIRECT=1under-Machine autoand-Machine 4090; absent under-Safeand-Machine 7900xtx;0with the-Moreoverride.scripts\play.ps1parses with no errors;cargo test -p xtaskandcargo xtask policypass.🤖 Generated with Claude Code
Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T20:34:40Z.
Maxime, I reproduced the gain on my RTX 4090 in Series S. Across 11 complete phases per setting, GPU read-through took the same boat scene from 44.25 to 37.91 ms per frame, and all ten consecutive off-to-on pairs improved. Your launcher change and RTX 5080 measurements are now in main through #374, with your commit authorship preserved.
Imported from TaynanGT/Vice-Tay. Originally posted by maximecmb on 2026-11-28T08:06:22Z.
Closing: the launcher change and its measurements are in
mainthrough 374, as noted above. Thanks for reproducing it on the RTX 4090. The remaining documentation is in 364, now withmainmerged in so it differs by the document only.Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:25:41Z.
Thanks for confirming the launcher change landed through #374 and keeping the documentation separate in #364. The RTX 4090 reproduction was helpful.
Pull request closed