Stop waiting for deferred pipeline compiles #2188
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!2188
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2188"
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?
@Ondra97 on GitHub · 2026-11-29 10:20 UTC · original
Ondra97:codex/stop-waiting-on-deferred-pso→main· +41 −11 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCWhat it changes
The memory admission path can defer a title pipeline compile and notify its waiters. The frame wait previously treated an empty result as build work in progress and could spend the rest of its wait budget during the retry cooldown.
Stop the wait when the stage is deferred. Preserve the policy that skips repeat screen waits after a real timeout by checking how the wait ended.
How it was tested
cargo test -p victory-gpu --lib pipeline::on Windows stable Rust 1.100.0: 71 passed, two ignored. The regression publishes a cooldown while notifying the same condition variable used in production and verifies the wait completes before the deadline.f06505ea) with Windows Rust 1.98.1. The pipeline suite passed 71 tests, with two ignored. The regression confirmed the existing wait exits after a memory deferral without recording a timeout.CI status
The Windows CI checks for this PR and upstream
main(55d06914) stop in Clippy on the unusedunwind_copyfunction invictory-loader. The CI restoration in #2620 is open and passed both Clippy gates and the full workspace test suite. PR CI · Main CI · CI restoration runChecked for overlap
github-bot referenced this pull request2026-11-29 13:22:54 +00:00
@ACSchafer on GitHub · 2026-11-29 14:50 UTC · original
Data point for this PR, on an RTX 3080 10 GB, Ryzen 9 7900X3D, 32 GB RAM, Windows 11, Series X 1440p,
DLSS Quality, ray tracing off,
829188e9.Plain release: frames held at about 300 ms (3.3 fps) for minutes, with 1.0-15.7 ms on the card and
27-43 ms preparing. 154-1,578 host pipelines failed with
0x8007000Eper run. The PC's commit was thelimit, not the card: "the PC has 41 MB free and 145 MB left to commit", 188 compiles put off.
With this PR (and #2102, #2108, #2347, #2349): 15-19 fps in the same scene, but 630 pipelines still
failed and about 900 draws a frame were dropped (no shadows, a corrupted weapon wheel and map).
With a fixed 48-64 GB page file in place of a system-managed one (commit limit 62 GB to about 95 GB),
as
docs/windows-memory.mdadvises: 7-12 pipeline failures a run, the UI and shadows back, about 14 fpsover 10 minutes with no crash. So this PR removes the 300 ms frames; the page file removes the failures
behind them. #2392 looks like the same story from the memory guard's side.
@dyshay on GitHub · 2026-11-29 15:40 UTC · original
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch
janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with--profile diag --features diagnostics, and the CPU tests of the touched crates pass. Runs on an RTX 4090 are queued (Series X 1440p, and Series S with ray tracing, DLSS Quality). Frame times will follow here.@dyshay on GitHub · 2026-11-29 16:15 UTC · original
We hit this independently on an RTX 4090, Series X profile at 1440p with ray tracing (64 GB RAM, system-managed page file). Two things combined:
Our fix does the same two things as #2188 and #2392 together: the wait ends when the compile is put off, and the guard counts what the page file can still grow by. It is in dyshay/VIctory-NVIDIA. Same scene and settings, measured on the card:
So the change is confirmed on a second machine. The tests that reproduce the wait (10 s before, immediate after) are in our commit
06ff9b27if you want them.@ghptc on GitHub · 2026-11-30 02:05 UTC · original · edited 2026-11-30 02:07 UTC
Thanks, @Ondra97. I tested #2188 (
9fd78e89) with a small follow-up for a waiter that resumes after the memory-guard cooldown has already expired. If the PSO is still unbuilt and unqueued, the waiter can return without reporting a timeout. If a new request has already queued the PSO, the usual wait still applies. Follow-up-only diffIn a synthetic Win64 run under Proton, I armed the waiter before triggering the deferral. The original code consumed the 500 ms wait budget in both runs (500.044 and 500.047 ms). With #2188 and the follow-up, both waits returned in 0.006 ms without a timeout. The draw stayed unavailable in both versions. The expired-cooldown control returned for an idle PSO and still waited for a requeued one. All six selected tests passed. These timings measure the wait path in the fixture. Gameplay frame times were outside the test scope.
github-bot referenced this pull request2026-11-30 02:52:49 +00:00