VICTORY_SKIP_PIPELINES: a skipped pipeline is not started early either #375

Closed
tightfall wants to merge 1 commit from upstream-pr/375 into main
tightfall commented 2026-11-25 00:08:46 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by tightfall on 2026-11-25T00:08:46Z.


VICTORY_SKIP_PIPELINES drops the draws and dispatches of the listed shaders, but the early start at the title's pipeline creation (make::early in hand_out) still compiled them whenever the early list named them. So skipping a shader whose host compile is the problem did not help: the compile still ran at every start.

This is what happened on an RX 9070 (Windows 11, Adrenalin 26.11.2) with a tree from before 1684989: indirect_diffuse_lighting:CS_ScreenProbes_ActivateRays (39f0e9aeb156a61c) never finished in the AMD driver's compiler, which grew the process heap by about 100 MB/s until the run ran out of memory after 5-10 minutes in the world. With it in VICTORY_SKIP_PIPELINES, the log still showed pipeline make started label=[compute 39f0e9aeb156a61c] right after launch (from the early list) and the heap climbed the same way.

With this change, a pipeline with a listed shader is not started early, so a skip now also skips the compile. The check sits behind the diagnostics feature like the rest of VICTORY_SKIP_PIPELINES; without it nothing changes.

Tested:

  • Run with VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,39f0e9aeb156a61c (on the older tree): no make of 39f0e9aeb156a61c, only skipped shader drops; 25 minutes in the world with the process heap at 1.6-2.5 GB (before: OOM after 5-10 minutes).
  • cargo build release and --profile diag --features diagnostics, cargo clippy -p victory-gpu with and without diagnostics (-D warnings), cargo test -p victory-gpu --features diagnostics (117 passed), cargo xtask policy --staged.

Note: with 1684989's clean-up passes the same shader now compiles (offline translate --pipelines on main: about 80 s, peak about 1.7 GB, against over 13 GB and still growing at 120 s before). So the skip is no longer needed for that shader on main, but the early start still ignored the list for any other.

AI-assisted: found and written with Claude Code; tested on one machine (RX 9070, Windows 11, Adrenalin 26.11.2).

🤖 Generated with Claude Code

<!-- greyfinch-sync:fxceless/victory-fork:issue:6594055587 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/375). Originally posted by [tightfall](https://github.com/tightfall) on 2026-11-25T00:08:46Z. --- `VICTORY_SKIP_PIPELINES` drops the draws and dispatches of the listed shaders, but the early start at the title's pipeline creation (`make::early` in `hand_out`) still compiled them whenever the early list named them. So skipping a shader whose host compile is the problem did not help: the compile still ran at every start. This is what happened on an RX 9070 (Windows 11, Adrenalin 26.11.2) with a tree from before 1684989: `indirect_diffuse_lighting:CS_ScreenProbes_ActivateRays` (`39f0e9aeb156a61c`) never finished in the AMD driver's compiler, which grew the process heap by about 100 MB/s until the run ran out of memory after 5-10 minutes in the world. With it in `VICTORY_SKIP_PIPELINES`, the log still showed `pipeline make started label=[compute 39f0e9aeb156a61c]` right after launch (from the early list) and the heap climbed the same way. With this change, a pipeline with a listed shader is not started early, so a skip now also skips the compile. The check sits behind the `diagnostics` feature like the rest of `VICTORY_SKIP_PIPELINES`; without it nothing changes. Tested: - Run with `VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,39f0e9aeb156a61c` (on the older tree): no make of `39f0e9aeb156a61c`, only `skipped shader` drops; 25 minutes in the world with the process heap at 1.6-2.5 GB (before: OOM after 5-10 minutes). - `cargo build` release and `--profile diag --features diagnostics`, `cargo clippy -p victory-gpu` with and without `diagnostics` (`-D warnings`), `cargo test -p victory-gpu --features diagnostics` (117 passed), `cargo xtask policy --staged`. Note: with 1684989's clean-up passes the same shader now compiles (offline `translate --pipelines` on main: about 80 s, peak about 1.7 GB, against over 13 GB and still growing at 120 s before). So the skip is no longer needed for that shader on main, but the early start still ignored the list for any other. AI-assisted: found and written with Claude Code; tested on one machine (RX 9070, Windows 11, Adrenalin 26.11.2). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
upstream-sync closed this pull request 2026-11-25 02:09:28 +00:00
IxMxAMAR commented 2026-11-25 02:10:07 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by IxMxAMAR on 2026-11-25T01:21:09Z.


Same effect as #172 (closed), whose change I ran on an RX 9070 XT (driver 32.0.32029.2010, 32 GB), diag build of fd021bf (7b0f736 plus #63, #71, #32, #82, #83, #81, #77), Series X profile, 39f0e9aeb156a61c skipped. I have not run this PR's version itself; it applies cleanly to fd021bf and to 19feca8.

  • Without the fix, the early list starts 39f0e9aeb156a61c at launch and every 5 s line says (1 being made) for the whole run. A read-only probe of the process (heap segment headers, then pointers in sampled pages) puts the growth in one private heap whose pointers all go into amdxc64.dll (2,974 of 2,974): 13.8, 24.3 and 31.9 GB at 4, 6.5 and 9.5 min, private bytes 45 to 58 GB, then out of memory (E_OUTOFMEMORY closing a list at the commit limit) or 0x887A0006.
  • early-pipelines.txt moved aside: private bytes flat at 22.8 GB, the queue reaches 0, no such heap.
  • With #172 and the original early-pipelines.txt: the queue drains (host pipelines all made made=276 loaded=2574 started_early=2855), the shader is never compiled, private bytes peak at 25.2 GB and are at 24.4 GB after 29 min, no compiler heap.

#458 would have named this compile in the log after a minute, and #459 shows that heap in the memory map.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7149458304 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/375#issuecomment-7149458304). Originally posted by [IxMxAMAR](https://github.com/IxMxAMAR) on 2026-11-25T01:21:09Z. --- Same effect as #172 (closed), whose change I ran on an RX 9070 XT (driver 32.0.32029.2010, 32 GB), diag build of `fd021bf` (`7b0f736` plus #63, #71, #32, #82, #83, #81, #77), Series X profile, `39f0e9aeb156a61c` skipped. I have not run this PR's version itself; it applies cleanly to `fd021bf` and to `19feca8`. - **Without the fix**, the early list starts `39f0e9aeb156a61c` at launch and every 5 s line says `(1 being made)` for the whole run. A read-only probe of the process (heap segment headers, then pointers in sampled pages) puts the growth in one private heap whose pointers all go into `amdxc64.dll` (2,974 of 2,974): 13.8, 24.3 and 31.9 GB at 4, 6.5 and 9.5 min, private bytes 45 to 58 GB, then out of memory (`E_OUTOFMEMORY` closing a list at the commit limit) or `0x887A0006`. - **`early-pipelines.txt` moved aside**: private bytes flat at 22.8 GB, the queue reaches 0, no such heap. - **With #172 and the original `early-pipelines.txt`**: the queue drains (`host pipelines all made made=276 loaded=2574 started_early=2855`), the shader is never compiled, private bytes peak at 25.2 GB and are at 24.4 GB after 29 min, no compiler heap. #458 would have named this compile in the log after a minute, and #459 shows that heap in the memory map.
kaayzouee commented 2026-11-25 02:10:07 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:26:07Z.


Saw you mentioning #172, is this a duplicate?

<!-- greyfinch-sync:fxceless/victory-fork:comment:7149542581 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/375#issuecomment-7149542581). Originally posted by [kaayzouee](https://github.com/kaayzouee) on 2026-11-25T01:26:07Z. --- Saw you mentioning #172, is this a duplicate?
IxMxAMAR commented 2026-11-25 02:10:07 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by IxMxAMAR on 2026-11-25T01:27:01Z.


Not a duplicate of an open PR: #172 was closed without being merged (2026-11-25 00:35 UTC, no reason given). Both make the same fix in different places: #172 checked inside make::early (skipped_shader taking the shaders), this PR checks at the call site in hand_out, before make::early. Same effect: a skipped pipeline is not started early. I ran #172's version, so my numbers above back the fix itself, not this PR's code line by line.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7149558626 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/375#issuecomment-7149558626). Originally posted by [IxMxAMAR](https://github.com/IxMxAMAR) on 2026-11-25T01:27:01Z. --- Not a duplicate of an open PR: #172 was closed without being merged (2026-11-25 00:35 UTC, no reason given). Both make the same fix in different places: #172 checked inside `make::early` (`skipped_shader` taking the shaders), this PR checks at the call site in `hand_out`, before `make::early`. Same effect: a skipped pipeline is not started early. I ran #172's version, so my numbers above back the fix itself, not this PR's code line by line.
kaayzouee commented 2026-11-25 02:10:08 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:31:33Z.


Whether #172 is currently open or closed is irrelevant to whether #375 was a duplicate when submitted.

#172 was submitted by @ericomeehan at 22:07 UTC, while #375 was submitted by @tightfall at 00:08 UTC. #172 was subsequently closed at 00:35 UTC without being merged. Both PRs were therefore open simultaneously.

Both patches address the same root cause and produce the same intended behavior. Moving the skip condition from make::early() to its call site in hand_out() does not, by itself, constitute a materially distinct fix.

Furthermore, the validation results you provided were obtained using #172, not #375.

Unless there is a demonstrated technical advantage or an agreed reason for superseding the original contribution, I believe #375 should be closed as a functional duplicate and #172 reconsidered.

If #375 is intended to supersede #172, that should be explicitly documented, with appropriate credit to the original contributor.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7149645765 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/375#issuecomment-7149645765). Originally posted by [kaayzouee](https://github.com/kaayzouee) on 2026-11-25T01:31:33Z. --- Whether #172 is currently open or closed is irrelevant to whether #375 was a duplicate when submitted. #172 was submitted by @ericomeehan at 22:07 UTC, while #375 was submitted by @tightfall at 00:08 UTC. #172 was subsequently closed at 00:35 UTC without being merged. Both PRs were therefore open simultaneously. Both patches address the same root cause and produce the same intended behavior. Moving the skip condition from make::early() to its call site in hand_out() does not, by itself, constitute a materially distinct fix. Furthermore, the validation results you provided were obtained using #172, not #375. Unless there is a demonstrated technical advantage or an agreed reason for superseding the original contribution, I believe #375 should be closed as a functional duplicate and #172 reconsidered. If #375 is intended to supersede #172, that should be explicitly documented, with appropriate credit to the original contributor.
IxMxAMAR commented 2026-11-25 02:10:09 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by IxMxAMAR on 2026-11-25T01:38:11Z.


Fair: they were open at the same time, and my numbers come from #172's code, as I said. I'm not the author of either. Which one lands, and how @ericomeehan is credited, is for the maintainers and the two authors to settle. For AMD users what matters is that one of them is merged: either stops the memory blow-up I measured. If the maintainers want #375's own code measured, I can run it.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7149778311 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/375#issuecomment-7149778311). Originally posted by [IxMxAMAR](https://github.com/IxMxAMAR) on 2026-11-25T01:38:11Z. --- Fair: they were open at the same time, and my numbers come from #172's code, as I said. I'm not the author of either. Which one lands, and how @ericomeehan is credited, is for the maintainers and the two authors to settle. For AMD users what matters is that one of them is merged: either stops the memory blow-up I measured. If the maintainers want #375's own code measured, I can run it.
tightfall commented 2026-11-25 02:10:14 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by tightfall on 2026-11-25T02:03:02Z.


Closing this. #172 by @ericomeehan made the same fix first, and thanks to @IxMxAMAR for measuring it on an RX 9070 XT. Since 1684989 (shader clean-up passes), 39f0e9aeb156a61c compiles on RDNA 4 anyway (offline: ~80 s, 1.7 GB peak), so the early start no longer causes the memory blow-up. If a skip that also covers the early start is still wanted for diagnostics, #172's version is fine with me.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7150258361 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/375#issuecomment-7150258361). Originally posted by [tightfall](https://github.com/tightfall) on 2026-11-25T02:03:02Z. --- Closing this. #172 by @ericomeehan made the same fix first, and thanks to @IxMxAMAR for measuring it on an RX 9070 XT. Since 1684989 (shader clean-up passes), `39f0e9aeb156a61c` compiles on RDNA 4 anyway (offline: ~80 s, 1.7 GB peak), so the early start no longer causes the memory blow-up. If a skip that also covers the early start is still wanted for diagnostics, #172's version is fine with me.

Pull request closed

Sign in to join this conversation.
No reviewers
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!375
No description provided.