Repository navigation
Pipelines: a dispatch waits for its compute pipeline until it is made (VICTORY_PIPELINE_COMPUTE_WAIT=0: as before) - #1312
Conversation
… (VICTORY_PIPELINE_COMPUTE_WAIT=0: within the frame's budget, as before) A dropped draw is drawn again in the next frame; a dropped dispatch may not be. In the prison corridor a compute program met for the first time took 4.4 s to make on a 16 GB machine; its one dispatch was dropped after the half second of budget, and the room's windows from before stayed blended over the whole picture for minutes (run 195). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
A data point that looks like the same thing, from an RTX 3060 12 GB (32 GB RAM, Series X profile, prison prologue, same save). We have not run this PR yet. After a merge that changed the translator, the first run with a warm shader cache rebuilds ~1,800 pipelines in its first minutes. In both such runs we made today (two different builds), the cell came up without its lamps' light, and skin stayed dark grey for the whole session: 12-14 minutes, long after the log said So it does not heal when the pipelines are made later. That fits a compute pass the title runs once at the scene's start, dropped because its pipeline was not ready, which is what this PR waits for. We will try |
|
A driver-side timing result that may matter for the unconditional compute wait. On Bazzite 44, RTX 5060 Laptop 8 GB, NVIDIA 615.78.08, GE-Proton11-14 and vkd3d-proton 3.2.0, a local trace on main 52ac4ec plus the one-frame wait policy from #1234 recorded 2,211 pipeline build starts and 2,207 completions. All four remaining jobs were compute pipelines. Shader translation and root-signature creation completed for each. The library lookup returned and each then entered the native CreateComputePipelineState call. They were still there 97–98 seconds later when I ended the startup test. The bounded-wait version rendered the opening scene and accepted camera input in a separate replay. Matched replay results. A synchronous wait on one of these jobs could hold the recording thread for the same duration. This is a trace of the existing bounded-wait build. Assisted by Codex (GPT-6.2-Sol High). |
|
Follow-up to my earlier comment, now with this PR merged: RTX 3060 12 GB, Windows 11, Series X profile, the same prison save. Tree: fork main
So on Windows/NVIDIA the unconditional compute wait cost nothing visible and fixed what we reported. Filip722's 97 s driver stall under Proton is the case it still needs to guard against ( |
Co-Authored-By: Antigravity <noreply@anthropic.com>
…_for_the_next_launch After fxceless#1312 compute pipelines (graphics: None) synchronously call p.make() in ready(); graphics pipelines keep the budgeted wait and remain pending for wanted_early prewarming. Co-Authored-By: Antigravity <noreply@anthropic.com>
…at once now that dispatches wait for theirs (#1312)
Method of fxceless a42b627 (fxceless#1312, Exopus): a dropped dispatch may not be run again (one-off compute passes at a scene change), so dispatches wait for their compute pipeline whatever the frame's budget; draws keep the budget. VICTORY_PIPELINE_COMPUTE_WAIT=0: as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UQF3id8zYK2wFWgugmeF1h
What
In
make::ready, a pipeline without a graphics state (a compute pipeline) that is not made yet is now made on the calling thread, or waited for while a worker makes it (Pending::make,OnceLock::get_or_init). This happens whatever the frame's wait budget. Draws keep the budget (wait) and are still dropped while their pipeline is missing.VICTORY_PIPELINE_COMPUTE_WAIT=0restores the old behaviour, where dispatches also wait only within the budget.Why
A dropped draw is drawn again in the next frame. A dropped dispatch may not be: the title runs some compute passes once, when the scene changes, and the rest of the scene reads what they leave.
Seen in the prison corridor (RTX 5060 Ti 8 GB, 16 GB RAM, Series S):
The same route with this change: no dropped dispatch, and the corridor and the scene after it rendered clean. The program was in the pipeline library by then, so this run does not reproduce the 4 s wait itself. The stall can only happen the first time a program is met, since the library has it for later runs.
Cost
At most one wait of a few seconds, the first time a compute program is met on a slow machine. On a fast machine pipelines are made within the budget anyway, so nothing changes.
Tests
cargo check -p victory-gpuon this base.🤖 Generated with Claude Code