Repository navigation
Conversation
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>
|
Same effect as #172 (closed), whose change I ran on an RX 9070 XT (driver 32.0.32029.2010, 32 GB), diag build of
#458 would have named this compile in the log after a minute, and #459 shows that heap in the memory map. |
|
Saw you mentioning #172, is this a duplicate? |
|
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 |
|
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. |
|
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. |
|
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), |
VICTORY_SKIP_PIPELINESdrops the draws and dispatches of the listed shaders, but the early start at the title's pipeline creation (make::earlyinhand_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 inVICTORY_SKIP_PIPELINES, the log still showedpipeline 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
diagnosticsfeature like the rest ofVICTORY_SKIP_PIPELINES; without it nothing changes.Tested:
VICTORY_SKIP_PIPELINES=eeed82b877b44b5f,39f0e9aeb156a61c(on the older tree): no make of39f0e9aeb156a61c, onlyskipped shaderdrops; 25 minutes in the world with the process heap at 1.6-2.5 GB (before: OOM after 5-10 minutes).cargo buildrelease and--profile diag --features diagnostics,cargo clippy -p victory-gpuwith and withoutdiagnostics(-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 --pipelineson 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