Prebuild both prologue irradiance-cache compute pipelines #4502

Closed
github-bot wants to merge 15 commits from github-bot/gh-4501 into main AGit
Owner

@⁠Ondra97 on GitHub · 2026-11-30 21:26 UTC · original
Ondra97:codex/prestream-compute-early → main · +970 −850 · 32 files · 15 commits · closed without merging

What it changes

Queue two observed prologue irradiance-cache compute PSOs at creation through the existing scene-input path. The title creates both before their first dispatches.

  • Shading PSO a53a7977fe762268. The unmodified build's recording worker was inside NVIDIA's CreateComputePipelineState during ExecuteIndirect when the watchdog fired.
  • Shadow-request PSO b2efa9e53e9aa087. With shading prepared early, a second watchdog dump caught a Dispatch waiting on this pipeline's build mutex. The worker holding it was waiting on compile-memory admission. The pipeline book had recorded this PSO at least 35.5 s before first bind.

Both dumps show the prologue still prestreaming at the same unsignaled barrier. Related to #628 and #1534.

How it was tested

RTX 4070 Ti SUPER, NVIDIA 621.40, 32 GB RAM, Series X, 1440p, DLSS Quality, hardware RT and frame generation off. Runs used the same saved profile and startup inputs with the original title watchdog enabled. The native-light comparison disabled the ambient, ambient-air and specular stand-ins.

Cold runs started with empty VIctory shader and PSO caches and an empty Direct3D disk-cache directory. The diagnostic builds accepted both the Direct3D and NVIDIA device-level disk-cache disables. The NVIDIA check used identical test instrumentation in both builds.

Strict cold run Observed result
Unmodified e1251c31 Watchdog at 153.3 s, inline shading PSO compile
Shading PSO only, default workers Watchdog at 171.1 s, shadow-request PSO waiting on RAM admission
Both PSOs, default workers Shading and shadow-request PSOs ready 5.9 s and 34.9 s before first bind. The run rendered the prologue and ended at 227.4 s with E_INVALIDARG from host command-list Close. See related #3975.
Both PSOs, four general pipeline workers Both PSOs ready before first bind. The run continued to render through the planned 330 s test window without a watchdog or host GPU failure.

In a matched in-car shot, three stationary shaded upholstery regions differed by at most 0.55 on the 0–255 SDR luma scale between the cold patched run and the warm unmodified reference. This checks for a blanket loss of shadow fill in that shot. Earlier cold frames still lacked scene geometry while PSOs were pending. The shot comparison leaves full-scene lighting parity open.

Long frames remain while other graphics and compute PSOs are pending. In the final default-worker run the longest recorded frame was 16.37 s. The log shows overlapping graphics PSO waits and 456 compile-memory admission waits with 119 deferrals. The earlier diagnostic trace and profiles also captured inline driver compiles in recording workers and idle gaps on the GPU between submissions.

The 38 targeted scheduler tests passed serially, the diagnostic build succeeded, and the changed-file asset policy passed. The full policy check flags a pre-existing long hex run in crates/victory-shader/src/native.rs.

Checked for overlap

  • Checked open PRs touching the pipeline scheduler. #4256 changes first-use scheduling, #3700 bounds an in-flight wait, #4257 warms recorded PSOs offline, and #4202 changes folding for the shading shader.
**@⁠Ondra97** on GitHub · 2026-11-30 21:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4501) `Ondra97:codex/prestream-compute-early` → `main` · +970 −850 · 32 files · 15 commits · closed without merging ## What it changes Queue two observed prologue irradiance-cache compute PSOs at creation through the existing scene-input path. The title creates both before their first dispatches. - Shading PSO `a53a7977fe762268`. The unmodified build's recording worker was inside NVIDIA's `CreateComputePipelineState` during `ExecuteIndirect` when the watchdog fired. - Shadow-request PSO `b2efa9e53e9aa087`. With shading prepared early, a second watchdog dump caught a `Dispatch` waiting on this pipeline's build mutex. The worker holding it was waiting on compile-memory admission. The pipeline book had recorded this PSO at least 35.5 s before first bind. Both dumps show the prologue still prestreaming at the same unsignaled barrier. Related to #628 and #1534. ## How it was tested RTX 4070 Ti SUPER, NVIDIA 621.40, 32 GB RAM, Series X, 1440p, DLSS Quality, hardware RT and frame generation off. Runs used the same saved profile and startup inputs with the original title watchdog enabled. The native-light comparison disabled the ambient, ambient-air and specular stand-ins. Cold runs started with empty VIctory shader and PSO caches and an empty Direct3D disk-cache directory. The diagnostic builds accepted both the Direct3D and NVIDIA device-level disk-cache disables. The NVIDIA check used identical test instrumentation in both builds. | Strict cold run | Observed result | | --- | --- | | Unmodified `e1251c31` | Watchdog at 153.3 s, inline shading PSO compile | | Shading PSO only, default workers | Watchdog at 171.1 s, shadow-request PSO waiting on RAM admission | | Both PSOs, default workers | Shading and shadow-request PSOs ready 5.9 s and 34.9 s before first bind. The run rendered the prologue and ended at 227.4 s with `E_INVALIDARG` from host command-list `Close`. See related #3975. | | Both PSOs, four general pipeline workers | Both PSOs ready before first bind. The run continued to render through the planned 330 s test window without a watchdog or host GPU failure. | In a matched in-car shot, three stationary shaded upholstery regions differed by at most 0.55 on the 0–255 SDR luma scale between the cold patched run and the warm unmodified reference. This checks for a blanket loss of shadow fill in that shot. Earlier cold frames still lacked scene geometry while PSOs were pending. The shot comparison leaves full-scene lighting parity open. Long frames remain while other graphics and compute PSOs are pending. In the final default-worker run the longest recorded frame was 16.37 s. The log shows overlapping graphics PSO waits and 456 compile-memory admission waits with 119 deferrals. The earlier diagnostic trace and profiles also captured inline driver compiles in recording workers and idle gaps on the GPU between submissions. The 38 targeted scheduler tests passed serially, the diagnostic build succeeded, and the changed-file asset policy passed. The full policy check flags a pre-existing long hex run in `crates/victory-shader/src/native.rs`. ## Checked for overlap - [x] Checked open PRs touching the pipeline scheduler. #4256 changes first-use scheduling, #3700 bounds an in-flight wait, #4257 warms recorded PSOs offline, and #4202 changes folding for the shading shader.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 21:29:44 +00:00
github-bot changed title from Prebuild the prologue irradiance-cache compute pipeline to Prebuild both prologue irradiance-cache compute pipelines 2026-11-30 21:57:20 +00:00
github-bot closed this pull request 2026-12-01 18:43:21 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:39 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.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4501#issuecomment-7321298306) 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

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!4502
No description provided.