overlay: a failed box is retried when the picture changes #2566

Manually merged
github merged 6 commits from github-bot/gh-2566 into main 2026-11-30 14:17:14 +00:00 AGit
Owner

@⁠sh3nw4ld on GitHub · 2026-11-29 14:25 UTC · original
sh3nw4ld:fix-overlay-buffer-retry → main · +165 −73 · 32 files · 6 commits · merged 2026-11-30 14:12 UTC

What this fixes

One failed making of the overlay's buffers latched failed for the run, and the check for it stood before the format-and-scale one in both Menu::draw and Panel::draw: the F1 menu, the frame-rate line and the F3 panel then never came back, even after a resize — where making the buffers would succeed. Buffers::new can fail transiently (a 4K resize on a full 8 GB card, a degraded device moment) while the game runs on.

The latch now holds for the picture it failed for only (failed_at): a change of the format or the scale tries again, and the same picture does not retry every present. The fields and every construction site are updated; the notice keeps its own done latch (its failure only loses the start notice, and done doubles as its finish flag).

Tests

The decision lives behind Buffers::new, which needs a host: no unit test; the gate's shape is what the change is, and the repo's panel.rs resize path already re-creates on every (format, scale) change ("a picture's size changes once or twice in a run").

cargo test -p victory-gpu --lib --locked: 915 passed, 0 failed. Clippy adds nothing new to either file.

Environment

Windows 11, RTX 4060 Ti, Rust 1.98.1 (pinned).

**@⁠sh3nw4ld** on GitHub · 2026-11-29 14:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2566) `sh3nw4ld:fix-overlay-buffer-retry` → `main` · +165 −73 · 32 files · 6 commits · merged 2026-11-30 14:12 UTC ## What this fixes One failed making of the overlay's buffers latched `failed` for the run, and the check for it stood before the format-and-scale one in both `Menu::draw` and `Panel::draw`: the F1 menu, the frame-rate line and the F3 panel then never came back, even after a resize — where making the buffers would succeed. `Buffers::new` can fail transiently (a 4K resize on a full 8 GB card, a degraded device moment) while the game runs on. The latch now holds for the picture it failed for only (`failed_at`): a change of the format or the scale tries again, and the same picture does not retry every present. The fields and every construction site are updated; the notice keeps its own `done` latch (its failure only loses the start notice, and `done` doubles as its finish flag). ## Tests The decision lives behind `Buffers::new`, which needs a host: no unit test; the gate's shape is what the change is, and the repo's `panel.rs` resize path already re-creates on every `(format, scale)` change ("a picture's size changes once or twice in a run"). `cargo test -p victory-gpu --lib --locked`: 915 passed, 0 failed. Clippy adds nothing new to either file. ## Environment Windows 11, RTX 4060 Ti, Rust 1.98.1 (pinned).
One failed making of the overlay's buffers latched failed for the run,
and the check for it stood before the format-and-scale one: the menu,
the frame-rate line and the panel then never came back, even after a
resize, where making them would succeed. The latch now holds for the
picture it failed for only (failed_at); a change of the format or the
scale tries again.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 14:28:11 +00:00
github-bot force-pushed github-bot/gh-2566 from 7d27f5eee4 to afecb2f43e 2026-11-29 15:36:04 +00:00 Compare
github-bot force-pushed github-bot/gh-2566 from afecb2f43e to 0c448a265d 2026-11-29 15:47:19 +00:00 Compare
github-bot force-pushed github-bot/gh-2566 from 0c448a265d to 4f09a59b98 2026-11-29 16:04:26 +00:00 Compare
github-bot force-pushed github-bot/gh-2566 from 4f09a59b98 to 229d9c7a52 2026-11-29 16:21:22 +00:00 Compare
github-bot force-pushed github-bot/gh-2566 from 229d9c7a52 to b0a43658c7 2026-11-29 16:26:59 +00:00 Compare
github manually merged commit f69642d9f3 into main 2026-11-30 14:17:14 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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