gpu(host): break relay_wait when landing line is empty to avoid infinite waits #163
No reviewers
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!163
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/163/head"
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-29 20:41 UTC · original
Androtim:feat/iter161-relay-empty-line-wait-guard→main· +19 −0 · 1 files · 1 commits · merged 2026-11-29 21:06 UTC## 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: passed@Androtim on GitHub · 2026-11-29 21:04 UTC · original
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).@Androtim on GitHub · 2026-11-29 21:27 UTC · original
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).