perf(gpu): make GPU->CPU copyback (relay / shader-written ranges) lazy and demand-driven #233
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Androtim/MiniVI. Originally posted by Androtim on 2026-11-30T10:17:14Z.
Measured on RTX 4060 Ti 8 GB (Series X 1440p
-PlayParity, warm shader cache,<playtest-log>):victory_gpu::hostrelay (VICTORY_RELAY=1):20.0–20.4flights/frame landed across9.2–10.0landings/frame, spending38.3–43.5 ms/framelanding in all (waiting39.5–40.6 msfor the card +7.4–7.9 msfetching card copies' pieces).copying backtakes29.2–33.5 ms/framefor only4.0–4.5 MB/frameactually copied back out of58.6–62.1 MB/framecompared across527–529shader-written range steps.Proposed Direction
Related to #170.
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-01T20:07:33Z.
Triage Summary
Verdict:
confirmedIssue #233 remains a valid performance enhancement request in
victory-gpu: shader-written buffer copyback is still eager by default rather than lazy/demand-driven on CPU reads.Codebase Verification (
origin/main)Shadow::gpu_writesdefers shader-written range tracking for every non-in-place (self.place.is_none()), non-write-combined buffer submission (bypassed only for write-combined title memory underVICTORY_WC_NO_BACK, or quiet-skipped card ranges).self.flightswhenrelay()is active, queues ranges inself.pendingfor card-side readback whenself.card.is_some(), or eagerly snapshots declared ranges intoself.before(orSNAPSwhenwide_back()is enabled).Related
Automated triage generated with Antigravity CLI (
agy).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T14:18:01Z.
Closing as superseded by #276 and merged lazy-compare work (#327).