Skip resize preparation during swap-chain backoff #4924
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!4924
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4923"
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 14:09 UTC · original
andrewpozdnakov7-jpg:codex2/fix/resize-preparation-backoff→main· +8 −1 · 1 files · 1 commits · closed without mergingWhat it changes
When DXGI refuses a resize, the swap-chain retry gate waits a second before calling
ResizeBuffersagain. Frames in that interval still wait for submitted GPU work and call the DLSS and FSR resize hooks before the gate drops them.Check the cooldown before those preparations. On an eligible attempt, the presenter still settles GPU work and runs both resize hooks before calling DXGI.
How it was tested
5fabb46eandf017360cc5e73c67517f99beb00859a6154d607b, a simulated clock, and stubbed DXGI and frame-generation calls. Releasee1251c31has the same baseline preparation block.cargo xtask policy --stagedaccepted the changed file. Main's CI check has five existing Clippy errors tracked in #4708.Checked for overlap
host.rs. The existing DXGI backoff came from #257. The patch combines cleanly with #4900 and #4919 ingit merge-tree.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.
@gut0to on GitHub · 2026-12-01 14:29 UTC · original · reviewed
AI-assisted review; I used an AI assistant to inspect this diff.
@ -16833,6 +16837,9 @@ impl Host {}}if (p.width, p.height, p.format) != (width, height, format) {if retry.waiting(Instant::now()) {@gut0to on GitHub · 2026-12-01 14:29 UTC · original
Could you add a small unit test for the backoff boundary here?
now < next_attemptshould skip resize preparation, whilenow == next_attemptshould allow it. That would pin the new early return beforesettle_nowandstreamline::resizingwithout requiring a swap chain. AI-assisted review; I traced the retry helper's boundary condition through the resize path.@Dukestar69 on GitHub · 2026-12-01 16:23 UTC · original · approved these changes
Reviewed crates/victory-gpu/src/host.rs: factoring SwapChainRetry::waiting(now) and short-circuiting resize preparation (avoiding settle_now(WHY_SYNC) and streamline::resizing()) while in retry backoff is clean and avoids redundant stalls on failing swap-chain resizes. Verified on Windows (RTX 5090): cargo test -p victory-gpu --lib swap_chain -- --test-threads=1 (1 passed, 0 failed).
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@trustno1-coder on GitHub · 2026-12-01 18:28 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed