GPU: start swap-chain retry delay after failure #3694

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3694 into main
andrewpozdnakov7-jpg commented 2026-11-28 08:16:11 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T08:16:11Z.


The retry added in #1626 now starts its one-second delay when a failed DXGI creation or resize returns. A slow call can no longer use up the retry interval before logging the failure.

The new clock-driven test simulates a call that fails after 1,500 ms. With the main implementation the immediately following operation runs. With this change it is skipped both immediately and 999 ms after the error. The call at 1,000 ms runs. The existing 60 FPS retry test still reaches two attempts in two seconds for instantaneous failures and verifies that success clears the delay.

Both focused GPU tests passed on Windows with default and diagnostics features. Strict GPU Clippy and the asset policy passed.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5538227904 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3694). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T08:16:11Z. --- The retry added in #1626 now starts its one-second delay when a failed DXGI creation or resize returns. A slow call can no longer use up the retry interval before logging the failure. The new clock-driven test simulates a call that fails after 1,500 ms. With the main implementation the immediately following operation runs. With this change it is skipped both immediately and 999 ms after the error. The call at 1,000 ms runs. The existing 60 FPS retry test still reaches two attempts in two seconds for instantaneous failures and verifies that success clears the delay. Both focused GPU tests passed on Windows with default and diagnostics features. Strict GPU Clippy and the asset policy passed. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
andrewpozdnakov7-jpg commented 2026-11-28 08:19:44 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T08:19:44Z.


Windows CI passed at bc0140c, including both Clippy configurations and the workspace test job. The simulated 1,500 ms failure suppresses retries immediately after return and at 999 ms, then allows one at 1,000 ms. Both focused tests passed locally with default and diagnostics features.

The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7236511407 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3694#issuecomment-7236511407). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-28T08:19:44Z. --- [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46125020582/job/140917599963) passed at `bc0140c`, including both Clippy configurations and the workspace test job. The simulated 1,500 ms failure suppresses retries immediately after return and at 999 ms, then allows one at 1,000 ms. Both focused tests passed locally with default and diagnostics features. The next step is maintainer review. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3694:upstream-pr/3694'
git switch 'upstream-pr/3694'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3694'
git switch 'upstream-pr/3694'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3694'
git switch 'upstream-pr/3694'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3694'
git switch 'main'
git merge --squash 'upstream-pr/3694'
git switch 'main'
git merge --ff-only 'upstream-pr/3694'
git switch 'main'
git merge 'upstream-pr/3694'
git push origin 'main'
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
Marvisak/VIctory!3694
No description provided.