overlay: a failed box is retried when the picture changes #2566
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2566
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2566"
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?
@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 UTCWhat this fixes
One failed making of the overlay's buffers latched
failedfor the run, and the check for it stood before the format-and-scale one in bothMenu::drawandPanel::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::newcan 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 owndonelatch (its failure only loses the start notice, anddonedoubles 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'spanel.rsresize 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).
7d27f5eee4toafecb2f43eafecb2f43eto0c448a265d0c448a265dto4f09a59b984f09a59b98to229d9c7a52229d9c7a52tob0a43658c7