Read fills behind placed copies on the card in NVIDIA launches #363
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!363
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@maximecmb on GitHub · 2026-11-27 19:52 UTC · original
maximecmb:perf/nvidia-placed-fill-redirect→main· +39 −1 · 3 files · 1 commits · openSummary
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
@TaynanGT on GitHub · 2026-11-27 20:34 UTC · original
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.