Retry F1 and F3 buffers when the picture changes #5040
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!5040
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-5039"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 17:59 UTC · original
andrewpozdnakov7-jpg:codex2/fix/overlay-buffer-retry→main· +15 −10 · 2 files · 1 commits · closed without mergingWhat it changes
The overlay rewrite in #4635 brought back a permanent allocation-failure flag for the F1 menu and FPS line, and for the F3 panel. A transient allocation refusal can leave those overlays unavailable for the rest of the run. #2566 previously made a change in format or scale trigger another attempt.
Restore that retry in the current overlay code. Each overlay remembers the format and scale of the last failed allocation. It skips repeated attempts at those settings and tries again when either changes. The failure clears after a successful allocation.
How it was tested
5fabb46e): a Windows Rust fixture called the exact buffer allocation decisions from both draw methods with a synthetic allocator. The initial refusal suppressed repeated attempts at the same settings. All four recovery cases failed because neither a scale change nor a format change triggered a retry.1c48a667): all four cases passed. Each also checked reuse after a successful retry and a return to the original settings.cargo check --locked -p victory-gpu,cargo xtask policy --stagedfor both changed files, andgit diff --checkpassed. No game run, D3D12 allocation, GPU or shader check was performed.Checked for overlap
499609f5also merges cleanly. Its pointer state and reset are separate from the allocation retry.Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 18:29 UTC · original
Current main already tracks the failed allocation format and scale in both F1 and F3 and retries on a change. Closing this proposal as superseded. Source checked at 93aa9a92.
Pull request closed