perf(gpu): make GPU->CPU copyback (relay / shader-written ranges) lazy and demand-driven #233
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI#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?
@Androtim on GitHub · 2026-11-30 10:17 UTC · original
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.
@Androtim on GitHub · 2026-12-01 20:07 UTC · original · edited 2026-12-02 11:06 UTC
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).@Androtim on GitHub · 2026-12-02 14:18 UTC · original
Closing as superseded by #276 and merged lazy-compare work (#327).