Relay: a wait for landings with nothing left to land gives up and is counted, no longer waits forever #1591

Merged
101Leafy merged 4 commits from upstream-pr/1591 into main 2026-11-29 08:16:55 +00:00
101Leafy commented 2026-11-28 22:04:14 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T22:04:14Z.


What it changes

relay_wait waits on LINE_LANDED until its condition is met. When the line is empty and not settling, no landing is left that could wake it, so a condition still unmet then (a range still pending that no flight in the line holds) waits forever and the title hangs.

The loop now gives up in that case. The one caller this reaches already retries three times and then falls back to its own settle. The first time it happens a warning names the reason, and the late-line report gives how many waits were given up since the start.

How it was tested

  • Tested on: RTX 5080 16 GB on Windows 10. Built with cargo check and clippy only, not run in a game yet.
  • Before: a wait with nothing left to land never returns.
  • After: it returns, is counted, and the caller settles.
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo test passed for the crates it touches: cargo check and clippy.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545013058 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1591). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T22:04:14Z. --- ## What it changes `relay_wait` waits on `LINE_LANDED` until its condition is met. When the line is empty and not settling, no landing is left that could wake it, so a condition still unmet then (a range still pending that no flight in the line holds) waits forever and the title hangs. The loop now gives up in that case. The one caller this reaches already retries three times and then falls back to its own settle. The first time it happens a warning names the reason, and the late-line report gives how many waits were given up since the start. ## How it was tested - Tested on: RTX 5080 16 GB on Windows 10. Built with `cargo check` and clippy only, not run in a game yet. - Before: a wait with nothing left to land never returns. - After: it returns, is counted, and the caller settles. - For shader changes, the wave sizes tested: not a shader change. - `cargo test` passed for the crates it touches: `cargo check` and clippy. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: none.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!1591
No description provided.