Skip to content

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

Open
tightfall wants to merge 1 commit into
fxceless:mainfrom
tightfall:skip-early-start
Open

tightfall wants to merge 1 commit into
fxceless:mainfrom
tightfall:skip-early-start

Conversation

@tightfall

Copy link
Copy Markdown

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

VICTORY_SKIP_PIPELINES dropped the draws and dispatches of the listed
shaders, but the early start at the title's pipeline creation still
compiled them when the early list named them. A skip meant to avoid a
compile the driver never finishes did not avoid it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant