Repository navigation
Stop waiting for deferred pipeline compiles - #2188
trustno1-coder merged 1 commit into
Conversation
|
Data point for this PR, on an RTX 3080 10 GB, Ryzen 9 7900X3D, 32 GB RAM, Windows 11, Series X 1440p, Plain release: frames held at about 300 ms (3.3 fps) for minutes, with 1.0-15.7 ms on the card and With this PR (and #2102, #2108, #2347, #2349): 15-19 fps in the same scene, but 630 pipelines still With a fixed 48-64 GB page file in place of a system-managed one (commit limit 62 GB to about 95 GB), |
|
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch |
|
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 |
v2026.11.29.01 black screen (0 draws, GPU idle): Create*PipelineState 0x8007000E was recorded as a permanent refuse while screen waits burned 10 s on deferred keys (upstream trustno1-coder#2303/trustno1-coder#2564/trustno1-coder#2182). Treat driver OOM like a memguard deferral, leave the wait when retry_waits is set (trustno1-coder#2188), default SCREEN_WAIT_ONCE on, serialize compiles near the commit floor (VICTORY_COMPILE_SERIAL), and allow VICTORY_SUBMIT_PCORE=1 on hybrid CPUs. Co-authored-by: FizedCodes <FizedCodes@users.noreply.github.com>
|
Thanks, @Ondra97. I tested #2188 (9fd78e8) 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 diff In 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. |
…ng paths Wake only draws waiting for the affected pipeline and stop waiting when its compile is deferred. Publish placed-view shapes through immutable numbered slots. Handle adjacent soft copies of the same physical page under bounded remapping locks. Keep large gaps out of initial write-watch queries, retain full in-flight hazard checks, and publish the exact observed pages using word masks. Based in part on upstream profiles and changes in VIctory-NVIDIA trustno1-coder#2188, trustno1-coder#2804, trustno1-coder#3760 and trustno1-coder#3850.
Depends on upstream PR #2188 at 9fd78e8. Keep recoverable D3D12 pipeline memory failures pending, space retries across workers, and stop waiting when no worker owns a deferred key. This is a dependency checkpoint for review after #2188 lands. The unmodified main wait loop can otherwise retain the full timeout.
What 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