gpu(host): break relay_wait when landing line is empty to avoid infinite waits #163
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/163"
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-29T20:41:53Z.
## Summary
1573ae65intocrates/victory-gpu/src/host.rs:relay_waitobservesline.line.is_empty() && !line.settlingwhile its condition is still unmet (e.g. a range remaining pending with no flight in the line), incrementRELAY_IDLE_WAITS, log once, and break instead of hanging forever so the caller falls back to its own settle.RELAY_IDLE_WAITSin periodiclate_linediagnostics when non-zero.Test plan
cargo run -p xtask -- policy: passedcargo test -p victory-gpu host::: 143 passed (17 ignored)cargo clippy --workspace --all-targets(default and--features diagnostics) with-D warnings: passedImported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T21:04:02Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingReview Summary
Small, focused defensive fix in
crates/victory-gpu/src/host.rsforVICTORY_RELAY=1wait hangs.Verified Details
relay_waitvsrelay_worker): Inrelay_worker(crates/victory-gpu/src/host.rs),line.settling = trueis set under thelinemutex before drainingline.line, and remainstruewhilehost.relay_land(...)runs. Checkingline.line.is_empty() && !line.settlinginsiderelay_waitwhile holding the samelinemutex avoids any race with an active landing and only breaks out when no queued items or in-flight landing exist to wakeLINE_LANDED.RELAY_IDLE_WAITS,late_line): UsesAtomicU64withOrdering::Relaxed, rate-limits thetracing::warn!via aSAIDAtomicBoolto prevent log spam, and reports the cumulative count inlate_lineonly whenidle > 0.relay_wait.Minor Note
relay_waittouches the D3D12 host relay landing path, a quick local real-GPU smoke test withVICTORY_RELAY=1is recommended before merging to confirm normal relay operation and check whetherRELAY_IDLE_WAITStriggers unexpectedly.Automated technical triage review — not formal maintainer approval.
Generated with Antigravity CLI (
agy).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-29T21:27:39Z.
Automated RTX 4060 Ti 8 GB Open-World A/B hardware verification PASSED (
playtest/wave5vsorigin/mainb1b6dc1,VICTORY_LEVELS_ON_DEMAND=0play-parity):cargo test(RTX 4060 Ti): 645 passed, 0 failed (victory39/39,victory-shaderemit::wave64_tests19/19 &lower19/19,victory-gpu568/568).scripts/verify-world.ps1, DLSS Quality + open-world save):9.4 fpsvs7.5 fps(+1.90 fps / +25%), min8.3 fpsvs0.8 fps, preparing53.6 msvs60.0 ms5760 MBvs6005 MB(-245 MB,0 MBover budget);no room for new oneshalved (9,000vs18,000);max_waitingdropped (36,432vs41,431)0mismatches (other_bytes=0, showed_another_view=0, failed=0vs5and2on baseline)mapped_rate1.63 ms/svs6.9 ms/s(-76%, max12.9vs51.9 ms)frame-5975.png,frame-5983.png),edge_energy=4.69vs3.88,near_black=0.02%,magenta=0.0%(and#1412bf6800showed zero visual artifacts).