Retry F1 and F3 buffers when the picture changes #5040

Closed
github-bot wants to merge 1 commit from github-bot/gh-5039 into main AGit
Owner

@⁠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 merging

What 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

  • Before (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.
  • After (1c48a667): all four cases passed. Each also checked reuse after a successful retry and a return to the original settings.
  • Windows cargo check --locked -p victory-gpu, cargo xtask policy --staged for both changed files, and git diff --check passed. No game run, D3D12 allocation, GPU or shader check was performed.
  • The main CI check has five existing Clippy findings tracked in #4708.

Checked for overlap

  • Searched open and closed issues and PRs for overlay buffer allocation retries. #2566 is the original merged fix. #4712 and #4765 touch overlay layout. #4943 and #4951 touch settings persistence and choices. These four heads merged cleanly with the patch in a local merge check. #4977 at 499609f5 also 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 17:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5039) `andrewpozdnakov7-jpg:codex2/fix/overlay-buffer-retry` → `main` · +15 −10 · 2 files · 1 commits · closed without merging ## What 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 - Before (`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. - After (`1c48a667`): all four cases passed. Each also checked reuse after a successful retry and a return to the original settings. - Windows `cargo check --locked -p victory-gpu`, `cargo xtask policy --staged` for both changed files, and `git diff --check` passed. No game run, D3D12 allocation, GPU or shader check was performed. - The [main CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy findings tracked in #4708. ## Checked for overlap - [x] Searched open and closed issues and PRs for overlay buffer allocation retries. #2566 is the original merged fix. #4712 and #4765 touch overlay layout. #4943 and #4951 touch settings persistence and choices. These four heads merged cleanly with the patch in a local merge check. #4977 at `499609f5` also 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.
Restore the allocation retry from #2566 after the overlay rewrite. Cache the format and scale of a failed allocation so the same picture does not retry on every present.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 18:02:38 +00:00
github-bot closed this pull request 2026-12-01 18:30:44 +00:00
Author
Owner

@⁠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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 18:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5039#issuecomment-7321038476) 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](https://github.com/trustno1-coder/VIctory-NVIDIA/commit/93aa9a92ac392784b8ee6114463711d98d94c52b).

Pull request closed

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!5040
No description provided.