GPU pipeline::make: permanently MAKING pipelines re-burn VICTORY_PIPELINE_WAIT_MS every frame #1178

Open
opened 2026-11-25 23:03:00 +00:00 by BitWuehler · 11 comments
BitWuehler commented 2026-11-25 23:03:00 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-25T23:03:00Z.


Environment

Finding 1: Repeated per-frame VICTORY_PIPELINE_WAIT_MS stall on stuck MAKING pipelines

In world frames, 4 pipelines remain (4 being made) for the entire session. Because make::ready() enters make::wait() whenever p.made.get().is_none(), every frame that binds one of them re-burns the full VICTORY_PIPELINE_WAIT_MS budget:

  • Default VICTORY_PIPELINE_WAIT_MS=500: framelog reports pipelines: 0 made, 0 loaded, 500.1 ms waited on every world frame (med=761.2 ms / 1.3 fps, usual frame: 616 ms).
  • With VICTORY_PIPELINE_WAIT_MS=50: World frames immediately improved to med=252.1 ms (4.0 fps), max=8.6 fps (116.8 ms/frame), and usual frame: 87–92 ms (with 50.1 ms of that still spent on PipelineWaitUs).

Suggested improvement: Once a Pending has waited through a substantial fraction of a frame's budget without completing, skip wait() on subsequent frames (still checking p.made.get() locklessly so it becomes usable if the worker ever finishes). That preserves first-frame waiting for normal PSOs while dropping steady-state stall on stuck entries to 0.0 ms.

Finding 2: Startup prewarm hang from early-pipelines.txt

After a run persisted newly seen late-scene entries into early-pipelines.txt (2,678 entries), 4 consecutive launches hung during startup prewarm right after loading early-pipelines.txt (before any ms/frame output). Restoring the prior 2,663-entry list immediately restored normal boot into the scene.

Note: Log analysis and write-up were AI-assisted based on local runtime measurements.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6615536296 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-25T23:03:00Z. --- ### Environment - OS/Runtime: Linux (Wine/GE-Proton + vkd3d-proton) - GPU: RTX 5080 (GPU upload heaps supported) - Tree: `fxceless/victory-fork` + open perf PRs (#1078, #1086, #1136, #1137, #1138, #1146, #154, #159, #1112) ### Finding 1: Repeated per-frame `VICTORY_PIPELINE_WAIT_MS` stall on stuck `MAKING` pipelines In world frames, 4 pipelines remain `(4 being made)` for the entire session. Because `make::ready()` enters `make::wait()` whenever `p.made.get().is_none()`, every frame that binds one of them re-burns the full `VICTORY_PIPELINE_WAIT_MS` budget: - **Default `VICTORY_PIPELINE_WAIT_MS=500`:** `framelog` reports `pipelines: 0 made, 0 loaded, 500.1 ms waited` on every world frame (`med=761.2 ms / 1.3 fps`, `usual frame: 616 ms`). - **With `VICTORY_PIPELINE_WAIT_MS=50`:** World frames immediately improved to **`med=252.1 ms (4.0 fps)`**, **`max=8.6 fps (116.8 ms/frame)`**, and **`usual frame: 87–92 ms`** (with `50.1 ms` of that still spent on `PipelineWaitUs`). **Suggested improvement:** Once a `Pending` has waited through a substantial fraction of a frame's budget without completing, skip `wait()` on subsequent frames (still checking `p.made.get()` locklessly so it becomes usable if the worker ever finishes). That preserves first-frame waiting for normal PSOs while dropping steady-state stall on stuck entries to `0.0 ms`. ### Finding 2: Startup prewarm hang from `early-pipelines.txt` After a run persisted newly seen late-scene entries into `early-pipelines.txt` (2,678 entries), 4 consecutive launches hung during startup prewarm right after loading `early-pipelines.txt` (before any `ms/frame` output). Restoring the prior 2,663-entry list immediately restored normal boot into the scene. *Note: Log analysis and write-up were AI-assisted based on local runtime measurements.*
BradRoland commented 2026-11-26 00:06:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by BradRoland on 2026-11-25T23:22:33Z.


I reproduced the repeated wait in a native Windows WARP replay with four jobs held in MAKING. With a 20 ms configured budget, main recorded 30–34 ms of elapsed wait on each of six frames on this machine. The same job consumed the shared budget every time. This reproduces the scheduling behavior independently of Proton.

The pipeline change in powplusplus’s #867 already stops repeated waits. In the replay it spent the first frame’s budget and recorded zero on every later frame. Three of the jobs had their first wait marked as used while the frame budget was empty. A small follow-up gives those jobs a turn when a later frame has time. It recorded 27, 30, 30, 31, 0 and 0 ms across the six frames, with a different job getting each positive wait. At zero budget every frame recorded zero. A compute pipeline that finished later became usable on the next bind with zero additional waiting. I shared the correction with the original PR author. Follow-up on #867 · Runnable replay

The startup hang remains a separate finding. The early file contains pipeline keys. At startup the renderer reads them into a set, then matches them when the title creates a pipeline. A key’s position in the file therefore does not establish compile order. Your 14-entry set is a useful lead. Replaying halves from a saved copy would narrow it if the hang reproduces consistently. Early-list lookup

<!-- greyfinch-sync:fxceless/victory-fork:comment:7177474311 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7177474311). Originally posted by [BradRoland](https://github.com/BradRoland) on 2026-11-25T23:22:33Z. --- I reproduced the repeated wait in a native Windows WARP replay with four jobs held in `MAKING`. With a 20 ms configured budget, main recorded 30–34 ms of elapsed wait on each of six frames on this machine. The same job consumed the shared budget every time. This reproduces the scheduling behavior independently of Proton. The pipeline change in powplusplus’s #867 already stops repeated waits. In the replay it spent the first frame’s budget and recorded zero on every later frame. Three of the jobs had their first wait marked as used while the frame budget was empty. A small follow-up gives those jobs a turn when a later frame has time. It recorded 27, 30, 30, 31, 0 and 0 ms across the six frames, with a different job getting each positive wait. At zero budget every frame recorded zero. A compute pipeline that finished later became usable on the next bind with zero additional waiting. I shared the correction with the original PR author. [Follow-up on #867](https://github.com/fxceless/victory-fork/pull/867#issuecomment-7177459828) · [Runnable replay](https://github.com/BradRoland/victory-fork/commit/6f46fd0) The startup hang remains a separate finding. The early file contains pipeline keys. At startup the renderer reads them into a set, then matches them when the title creates a pipeline. A key’s position in the file therefore does not establish compile order. Your 14-entry set is a useful lead. Replaying halves from a saved copy would narrow it if the hang reproduces consistently. [Early-list lookup](https://github.com/fxceless/victory-fork/blob/b8994e1/crates/victory-gpu/src/pipeline/library.rs#L705-L730)
BitWuehler commented 2026-11-26 00:06:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-26T00:01:21Z.


Follow-up from live Linux (GE-Proton + RTX 5080) testing with #867's waited_frame change in pipeline/make.rs:

  • Steady-state PipelineWaitUs dropped cleanly to 0.0 ms waited on subsequent world frames (even with a 200 ms first-frame budget).
  • Workaround update: emptying early-pipelines.txt reliably avoids the startup hang across runs, though without prewarm fewer pipelines load early (~1,857 vs. ~2,696). Thanks for #1194 — will capture the exact stalled prewarm key in a diagnostics build next.

Note: Log analysis and write-up were AI-assisted based on local runtime measurements.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7178308910 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7178308910). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-26T00:01:21Z. --- Follow-up from live Linux (GE-Proton + RTX 5080) testing with #867's `waited_frame` change in `pipeline/make.rs`: - Steady-state `PipelineWaitUs` dropped cleanly to **`0.0 ms waited`** on subsequent world frames (even with a 200 ms first-frame budget). - Workaround update: emptying `early-pipelines.txt` reliably avoids the startup hang across runs, though without prewarm fewer pipelines load early (~1,857 vs. ~2,696). Thanks for #1194 — will capture the exact stalled prewarm key in a diagnostics build next. *Note: Log analysis and write-up were AI-assisted based on local runtime measurements.*
BitWuehler commented 2026-11-26 01:06:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-26T00:14:12Z.


Update after restoring VICTORY_PIPELINE_WAIT_MS=500 together with #867's one-frame waited_frame cap + #1188 (VICTORY_BACK_QUIET=1):

  • World intervals improved further to med=4.6 fps (217.7 ms), max=9.6 fps (104.3 ms/frame) (up from 4.0 / 8.6 fps), usual frame: 98 ms, prep med: 79.0 ms, dropped med: 366.
  • Keeping the 500 ms first-frame budget with 0 ms on subsequent frames recovers newly encountered pipelines cleanly without any steady-state stall.

Note: Log analysis and write-up were AI-assisted based on local runtime measurements.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7178543446 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7178543446). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-26T00:14:12Z. --- Update after restoring `VICTORY_PIPELINE_WAIT_MS=500` together with #867's one-frame `waited_frame` cap + #1188 (`VICTORY_BACK_QUIET=1`): - World intervals improved further to **`med=4.6 fps (217.7 ms)`**, **`max=9.6 fps (104.3 ms/frame)`** (up from `4.0 / 8.6 fps`), `usual frame: 98 ms`, `prep med: 79.0 ms`, `dropped med: 366`. - Keeping the 500 ms first-frame budget with 0 ms on subsequent frames recovers newly encountered pipelines cleanly without any steady-state stall. *Note: Log analysis and write-up were AI-assisted based on local runtime measurements.*
BitWuehler commented 2026-11-26 01:06:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-26T00:23:53Z.


A/B measurement on VICTORY_TEXTURE_NO_WAIT (Linux GE-Proton + RTX 5080, with #867 + #1188):

  • VICTORY_TEXTURE_NO_WAIT=0: tex med=200.5 ms, prep med=339.3 ms, fps med=2.0 (502.0 ms), max=10.2 fps (97.9 ms/frame) — scene loading stalls heavily waiting on texture memory to hold still, though steady frames later hit 110 ms (38-frame usual mean).
  • VICTORY_TEXTURE_NO_WAIT=1: prep med=79.0 ms, fps med=4.6 (217.7 ms), max=9.6 fps (104.3 ms/frame).
  • Texture visual artifacts (popping foliage) persisted with NO_WAIT=0, so they are not caused by VICTORY_TEXTURE_NO_WAIT=1.

Note: Log analysis and write-up were AI-assisted based on local runtime measurements.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7178712496 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7178712496). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-26T00:23:53Z. --- A/B measurement on `VICTORY_TEXTURE_NO_WAIT` (Linux GE-Proton + RTX 5080, with #867 + #1188): - **`VICTORY_TEXTURE_NO_WAIT=0`:** `tex med=200.5 ms`, `prep med=339.3 ms`, `fps med=2.0 (502.0 ms)`, `max=10.2 fps (97.9 ms/frame)` — scene loading stalls heavily waiting on texture memory to hold still, though steady frames later hit `110 ms` (`38`-frame usual mean). - **`VICTORY_TEXTURE_NO_WAIT=1`:** `prep med=79.0 ms`, `fps med=4.6 (217.7 ms)`, `max=9.6 fps (104.3 ms/frame)`. - Texture visual artifacts (popping foliage) persisted with `NO_WAIT=0`, so they are not caused by `VICTORY_TEXTURE_NO_WAIT=1`. *Note: Log analysis and write-up were AI-assisted based on local runtime measurements.*
BitWuehler commented 2026-11-26 01:06:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-26T00:32:02Z.


Consolidated Linux (GE-Proton11-14 + vkd3d-proton, RTX 5080) A/B summary across today's runs:

Configuration / Change World FPS (med / max) Frame ms (min / med) CPU prep med Notes
Baseline (PIPELINE_WAIT_MS=500, no #867) 1.3 / 2.1 482.7 / 761.2 292.5 ms 500.1 ms waited on every frame (4 stuck MAKING jobs)
PIPELINE_WAIT_MS=50 4.0 / 8.6 116.8 / 252.1 122.1 ms 50.1 ms waited per frame; usual frame: 87–92 ms
#867 waited_frame + #1188 (BACK_QUIET=1) + PIPELINE_WAIT_MS=500 4.6 / 9.6 104.3 / 217.7 79.0 ms 0.0 ms waited steady-state; usual frame: 98 ms
Same + VICTORY_TEXTURE_NO_WAIT=0 2.0 / 10.2 97.9 / 502.0 339.3 ms tex med=200.5 ms (loading stalls, steady frames hit 110 ms)
Same + VICTORY_TEXTURE_NO_WAIT=1, TEXTURE_PAGES=0 1.8 / 9.7 102.8 / 552.7 168.5 ms usual frame: 99 ms, 94% card busy; visual artifacts unchanged
VICTORY_CARD_WINDOWS_MB=256 (WINDOW_UPLOAD=1) 1.1 / 2.8 356.3 / 912.9 59.1 ms 57 windows (248 MB) in GPU upload heap, 1,152 refused; GPU 98% busy

Note: Log analysis and write-up were AI-assisted based on local runtime measurements.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7178855315 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7178855315). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-26T00:32:02Z. --- Consolidated Linux (GE-Proton11-14 + vkd3d-proton, RTX 5080) A/B summary across today's runs: | Configuration / Change | World FPS (med / max) | Frame ms (min / med) | CPU prep med | Notes | |---|---:|---:|---:|---| | Baseline (`PIPELINE_WAIT_MS=500`, no `#867`) | 1.3 / 2.1 | 482.7 / 761.2 | 292.5 ms | `500.1 ms waited` on every frame (4 stuck `MAKING` jobs) | | `PIPELINE_WAIT_MS=50` | 4.0 / 8.6 | 116.8 / 252.1 | 122.1 ms | `50.1 ms waited` per frame; `usual frame: 87–92 ms` | | `#867` `waited_frame` + `#1188` (`BACK_QUIET=1`) + `PIPELINE_WAIT_MS=500` | **4.6 / 9.6** | 104.3 / **217.7** | **79.0 ms** | `0.0 ms waited` steady-state; `usual frame: 98 ms` | | Same + `VICTORY_TEXTURE_NO_WAIT=0` | 2.0 / **10.2** | **97.9** / 502.0 | 339.3 ms | `tex med=200.5 ms` (loading stalls, steady frames hit `110 ms`) | | Same + `VICTORY_TEXTURE_NO_WAIT=1`, `TEXTURE_PAGES=0` | 1.8 / 9.7 | 102.8 / 552.7 | 168.5 ms | `usual frame: 99 ms`, `94%` card busy; visual artifacts unchanged | | `VICTORY_CARD_WINDOWS_MB=256` (`WINDOW_UPLOAD=1`) | 1.1 / 2.8 | 356.3 / 912.9 | 59.1 ms | 57 windows (248 MB) in GPU upload heap, 1,152 refused; GPU `98%` busy | *Note: Log analysis and write-up were AI-assisted based on local runtime measurements.*
j-fuxa commented 2026-11-26 02:08:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by j-fuxa on 2026-11-26T01:41:47Z.


Two notes from our tree, which hit the same stall (one global per-frame wait with no per-pipeline memory: up to 500 ms on every frame that binds a pipeline still being made).

  1. One-frame cap against a per-pipeline budget. The one-frame claim in #1234 (taken under the budget lock only when the frame has budget left) gives the same steady state as our fix, which keeps a cumulative waited time per pipeline and stops waiting once it has used one full budget. A partial wait counts toward the budget, so a pipeline first bound when little was left still gets its turn later. Nothing to change there; mentioned in case the two are compared.

  2. A worker panic would leave a pipeline "being made" for the rest of the run. In pipeline/make.rs at fabf3c4, Pending::make runs HostPipeline::new inside OnceLock::get_or_init with no catch_unwind, and the worker loop does next().make() and then WAITING.fetch_sub(1). The release profile has no panic = "abort", so a panic in translation or pipeline creation unwinds out of the loop and ends that worker thread. made stays unset, waiting() is never decremented, DONE is never signalled, and the pool is one worker smaller. Every frame that binds the pipeline then waits for it (or drops its draws, with #1234) until exit.

We cannot say whether this explains the four pipelines stuck as "(4 being made)" in this issue. A panicked at line from a thread named victory-pipelines-N in the log would show it.

Suggested: run HostPipeline::new under std::panic::catch_unwind(AssertUnwindSafe(..)) inside the get_or_init closure, treat a panic as a refused pipeline (None), log the shader hashes, and let make() still notify DONE. The worker then reaches WAITING.fetch_sub and keeps serving the queue.

Caveat: this is defensive. We observed no panic that we can tie to this issue, and we have not run your tree.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7180033136 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7180033136). Originally posted by [j-fuxa](https://github.com/j-fuxa) on 2026-11-26T01:41:47Z. --- Two notes from our tree, which hit the same stall (one global per-frame wait with no per-pipeline memory: up to 500 ms on every frame that binds a pipeline still being made). 1. One-frame cap against a per-pipeline budget. The one-frame claim in #1234 (taken under the budget lock only when the frame has budget left) gives the same steady state as our fix, which keeps a cumulative waited time per pipeline and stops waiting once it has used one full budget. A partial wait counts toward the budget, so a pipeline first bound when little was left still gets its turn later. Nothing to change there; mentioned in case the two are compared. 2. A worker panic would leave a pipeline "being made" for the rest of the run. In pipeline/make.rs at fabf3c4, `Pending::make` runs `HostPipeline::new` inside `OnceLock::get_or_init` with no `catch_unwind`, and the worker loop does `next().make()` and then `WAITING.fetch_sub(1)`. The release profile has no `panic = "abort"`, so a panic in translation or pipeline creation unwinds out of the loop and ends that worker thread. `made` stays unset, `waiting()` is never decremented, `DONE` is never signalled, and the pool is one worker smaller. Every frame that binds the pipeline then waits for it (or drops its draws, with #1234) until exit. We cannot say whether this explains the four pipelines stuck as "(4 being made)" in this issue. A `panicked at` line from a thread named `victory-pipelines-N` in the log would show it. Suggested: run `HostPipeline::new` under `std::panic::catch_unwind(AssertUnwindSafe(..))` inside the `get_or_init` closure, treat a panic as a refused pipeline (`None`), log the shader hashes, and let `make()` still notify `DONE`. The worker then reaches `WAITING.fetch_sub` and keeps serving the queue. Caveat: this is defensive. We observed no panic that we can tie to this issue, and we have not run your tree.
milesah3ad commented 2026-11-26 02:08:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by milesah3ad on 2026-11-26T01:47:09Z.


@j-fuxa thanks, both points are useful.

On (2), data from this side: six sessions of this fork on an RTX 5080 (Windows, native D3D12, driver 621.24), all on 006c353 (five of them with #1234), stdout and stderr captured, 5 to 20 minutes each, plus one session of avatarmanz/VIctory-7900XTX (a fork of this tree). No panicked at line anywhere, from victory-pipelines-N or any other thread. In every session the frame line's "(N being made)" counted down to 0 once the cold pipelines were built and stayed there (the last 20 frame lines of each run: 0 in every line but one). So on this machine nothing stays stuck in MAKING: the stall here was the per-frame re-wait on pipelines that were still compiling, which #1234 removes.

That doesn't rule out your panic case on other trees or drivers, and catch_unwind around HostPipeline::new looks like the right defensive change on its own: a lost worker and a pipeline that never reports done would be hard to see otherwise. Happy to run it here if someone opens it.

AI-assisted (Claude Code); the numbers are from the logs of these runs.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7180127642 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7180127642). Originally posted by [milesah3ad](https://github.com/milesah3ad) on 2026-11-26T01:47:09Z. --- @j-fuxa thanks, both points are useful. On (2), data from this side: six sessions of this fork on an RTX 5080 (Windows, native D3D12, driver 621.24), all on `006c353` (five of them with #1234), stdout and stderr captured, 5 to 20 minutes each, plus one session of avatarmanz/VIctory-7900XTX (a fork of this tree). No `panicked at` line anywhere, from `victory-pipelines-N` or any other thread. In every session the frame line's "(N being made)" counted down to 0 once the cold pipelines were built and stayed there (the last 20 frame lines of each run: 0 in every line but one). So on this machine nothing stays stuck in `MAKING`: the stall here was the per-frame re-wait on pipelines that were still compiling, which #1234 removes. That doesn't rule out your panic case on other trees or drivers, and `catch_unwind` around `HostPipeline::new` looks like the right defensive change on its own: a lost worker and a pipeline that never reports done would be hard to see otherwise. Happy to run it here if someone opens it. *AI-assisted (Claude Code); the numbers are from the logs of these runs.*
BitWuehler commented 2026-11-26 15:04:07 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-26T14:11:45Z.


@j-fuxa @milesah3ad checked all 6 of our recent Linux (GE-Proton11-14 + vkd3d-proton, RTX 5080) logs where (4 being made) stayed at 4: 0 panicked at / panic lines anywhere in those logs, matching @milesah3ad's Windows observation.

So the 4 stuck entries on our Proton setup are likely long/hung driver/vkd3d compiles rather than panicking workers, though wrapping HostPipeline::new in catch_unwind is still a great defensive safeguard. Pulling #1234 into our test build on top of a20809d next to validate the budget-aware one-frame claim on Linux/Proton too.

Note: Log check and write-up were AI-assisted based on local logs.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7194411028 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7194411028). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-26T14:11:45Z. --- @j-fuxa @milesah3ad checked all 6 of our recent Linux (GE-Proton11-14 + vkd3d-proton, RTX 5080) logs where `(4 being made)` stayed at 4: **0 `panicked at` / panic lines** anywhere in those logs, matching @milesah3ad's Windows observation. So the 4 stuck entries on our Proton setup are likely long/hung driver/vkd3d compiles rather than panicking workers, though wrapping `HostPipeline::new` in `catch_unwind` is still a great defensive safeguard. Pulling #1234 into our test build on top of `a20809d` next to validate the budget-aware one-frame claim on Linux/Proton too. *Note: Log check and write-up were AI-assisted based on local logs.*
anon31-006459 commented 2026-11-26 17:08:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by anon31-006459 on 2026-11-26T17:08:41Z.


Same on Linux / NVIDIA Ampere: RTX 3070 Ti 8 GB, driver 595.104.02, Proton Experimental 11.0-20261112, Ryzen 7 3700X, 32 GB RAM, fork main ac25549 + the #1820 recipe, Series S.

  • (4 being made) stayed at 4 for the whole session in every run I checked over two days. Each run also logs 4 compute pipelines as host pipeline refused ... Invalid parameter (0x80070057). I have not checked whether those are the same 4, and your hung-compile reading may fit better.
  • Default wait: pipelines: 0 made, 0 loaded, 500.1 ms waited on every world frame, usual frame about 655 ms (1.5 fps).
  • VICTORY_PIPELINE_WAIT_MS=20: 126 to 160 ms frames in the same room (6.2 to 7.9 fps), and no extra draws dropped (170 to 320 a frame, as with 500).

So +1 for not re-waiting on a pending entry that has already used up a frame's budget. 20 ms has been our default since.

AI-assisted (Claude Code, Claude Opus 5.5); numbers from runs on my machine.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7198563146 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7198563146). Originally posted by [anon31-006459](https://github.com/anon31-006459) on 2026-11-26T17:08:41Z. --- Same on **Linux / NVIDIA Ampere**: RTX 3070 Ti 8 GB, driver 595.104.02, Proton Experimental 11.0-20261112, Ryzen 7 3700X, 32 GB RAM, fork main `ac25549` + the #1820 recipe, Series S. - `(4 being made)` stayed at 4 for the whole session in every run I checked over two days. Each run also logs 4 compute pipelines as `host pipeline refused ... Invalid parameter (0x80070057)`. I have not checked whether those are the same 4, and your hung-compile reading may fit better. - Default wait: `pipelines: 0 made, 0 loaded, 500.1 ms waited` on every world frame, usual frame about 655 ms (1.5 fps). - `VICTORY_PIPELINE_WAIT_MS=20`: 126 to 160 ms frames in the same room (6.2 to 7.9 fps), and no extra draws dropped (170 to 320 a frame, as with 500). So +1 for not re-waiting on a pending entry that has already used up a frame's budget. 20 ms has been our default since. *AI-assisted (Claude Code, Claude Opus 5.5); numbers from runs on my machine.*
BitWuehler commented 2026-11-26 23:07:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-26T23:07:47Z.


Follow-up on 52ac4ec (CachyOS, GE-Proton11-14 + vkd3d-proton, RTX 5080 16 GB, Series X profile), answering @anon31-006459's question above:

  1. Not panicking workers (#1353): With 46da5ee (#1353 panic guard) merged in 52ac4ec, (4 being made) still stays at 4 across all world sessions with 0 panic log lines.
  2. Not the 0x80070057 refused compute pipelines: In pipeline/make.rs, a 0x80070057 refusal returns None from HostPipeline::new, completes Pending::make(), and decrements WAITING (WAITING.fetch_sub(1)). In our Series X world runs (32-lane host), 6 compute shaders log host pipeline refused ... 0x80070057 while WAITING stays at 4 — confirming that 4 of the 8 worker threads are genuinely blocked inside never-returning vkd3d-proton/NVIDIA pipeline compiles.
  3. Interaction with VK_NV_raw_access_chains and #1234: Leaving VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains unset causes additional vkd3d-proton/NVIDIA compiles to spin at 98–100% of one core indefinitely during loading (preventing world entry). With VK_NV_raw_access_chains disabled + PR #1234 (7195775, one-frame wait cap) merged onto 52ac4ec, the remaining 4 workers finish ~2,300 pipelines and steady-state world frames drop from 500 ms/frame pipeline wait to 0.0 ms waiting for pipelines (at 5,000–6,900 draws/frame) despite (4 being made) remaining.

(AI-assisted code audit, log analysis, and summary.)

<!-- greyfinch-sync:fxceless/victory-fork:comment:7205279055 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7205279055). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-26T23:07:47Z. --- Follow-up on `52ac4ec` (CachyOS, GE-Proton11-14 + `vkd3d-proton`, RTX 5080 16 GB, Series X profile), answering @anon31-006459's question above: 1. **Not panicking workers (`#1353`):** With `46da5ee` (`#1353` panic guard) merged in `52ac4ec`, `(4 being made)` still stays at `4` across all world sessions with `0` panic log lines. 2. **Not the `0x80070057` refused compute pipelines:** In `pipeline/make.rs`, a `0x80070057` refusal returns `None` from `HostPipeline::new`, completes `Pending::make()`, and decrements `WAITING` (`WAITING.fetch_sub(1)`). In our Series X world runs (32-lane host), **6** compute shaders log `host pipeline refused ... 0x80070057` while `WAITING` stays at **4** — confirming that 4 of the 8 worker threads are genuinely blocked inside never-returning `vkd3d-proton`/NVIDIA pipeline compiles. 3. **Interaction with `VK_NV_raw_access_chains` and `#1234`:** Leaving `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` unset causes additional `vkd3d-proton`/NVIDIA compiles to spin at 98–100% of one core indefinitely during loading (preventing world entry). With `VK_NV_raw_access_chains` disabled + PR `#1234` (`7195775`, one-frame wait cap) merged onto `52ac4ec`, the remaining 4 workers finish ~2,300 pipelines and steady-state world frames drop from 500 ms/frame pipeline wait to **`0.0 ms waiting for pipelines`** (at 5,000–6,900 draws/frame) despite `(4 being made)` remaining. *(AI-assisted code audit, log analysis, and summary.)*
BitWuehler commented 2026-11-28 19:22:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by BitWuehler on 2026-11-28T19:22:25Z.


Follow-up on the Linux/Proton side (CachyOS, RTX 5080 16 GB 620.73.04, GE-Proton11-14):

In addition to #1234 eliminating the repeated 500 ms per-frame wait on vkd3d-proton 3.2.0, testing vkd3d-proton master (71cae091b06571e5, after removal of the legacy structurizer, as noted in trustno1-coder/VIctory-NVIDIA#1199) compiled all 7 previously-stuck compute shaders (7 / 7) cleanly (17829ac71aab4e8d, 32ed072b9f845048, 559d9f0184e15fe3, a1b20bc47e3c9597, afeea48bbb9913ad, e8c962358d862e3f, fdd56d97a806bcca) over a 13m 44s Series X 1440p session (made=2416, 0 Xids, 34.5–38.7 fps in interiors/cutscenes, 14.5 fps outdoors at 9,719 draws/frame).

(AI-assisted testing, log analysis, and summary.)

<!-- greyfinch-sync:fxceless/victory-fork:comment:7244495251 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1181#issuecomment-7244495251). Originally posted by [BitWuehler](https://github.com/BitWuehler) on 2026-11-28T19:22:25Z. --- Follow-up on the Linux/Proton side (CachyOS, RTX 5080 16 GB `620.73.04`, `GE-Proton11-14`): In addition to #1234 eliminating the repeated 500 ms per-frame wait on `vkd3d-proton 3.2.0`, testing `vkd3d-proton` master (`71cae091b06571e5`, after removal of the legacy structurizer, as noted in `trustno1-coder/VIctory-NVIDIA#1199`) compiled **all 7 previously-stuck compute shaders (`7 / 7`)** cleanly (`17829ac71aab4e8d`, `32ed072b9f845048`, `559d9f0184e15fe3`, `a1b20bc47e3c9597`, `afeea48bbb9913ad`, `e8c962358d862e3f`, `fdd56d97a806bcca`) over a 13m 44s Series X 1440p session (`made=2416`, `0` Xids, `34.5–38.7 fps` in interiors/cutscenes, `14.5 fps` outdoors at `9,719 draws/frame`). *(AI-assisted testing, log analysis, and summary.)*
Sign in to join this conversation.
No labels
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.

Reference
fxceless/victory-fork#1178
No description provided.