gpu: honor VICTORY_SKIP_PIPELINES in release builds and before worker enqueue #110
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!110
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-110"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@nullexxx on GitHub · 2026-11-27 01:33 UTC · original
nullexxx:fix/skip-pipelines-before-enqueue→main· +79 −11 · 3 files · 2 commits · merged 2026-11-27 02:28 UTCProblem
VICTORY_SKIP_PIPELINESwas gated behind#[cfg(all(windows, feature = "diagnostics"))], so it silently had no effect in--releasebuilds.diagnosticsenabled, skipped hashes were only checked at draw/dispatch time indraw.rs, not before queuing pipelines to background workers inpipeline/make.rs. Shaders that hang pipeline compilation (e.g. under Proton/vkd3d-protonon Linux) still entered the worker pool at startup and permanently deadlocked all worker threads, leaving the queue stuck and dropping world draws.Fix
pipeline::skipped_in(&[Arc<Shader>])andparse_skip_hashesunder#[cfg(windows)](reused byskipped_shaderin diagnostics builds).super::skipped_in(shaders)inpipeline::make::left_out()so skipped pipelines are marked left-out before ever reaching the worker queue, in both release and diagnostics builds.Measured Impact
Tested on Linux (CachyOS, GE-Proton11-14, RTX 5080, Ryzen 7 9800X3D,
--release, Series S path, 1920x1080) withVICTORY_SKIP_PIPELINESset to the 6 compute shaders that hangvkd3d-protoncompilation (32ed072b9f845048,fdd56d97a806bcca,17829ac71aab4e8d,a1b20bc47e3c9597,afeea48bbb9913ad,e8c962358d862e3f):left_out)being made)Verification
cargo clippy --workspace --all-targets --locked -- -D warnings(clean)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(clean)cargo test -p xtask --locked(10/10 passed)@TaynanGT on GitHub · 2026-11-27 01:39 UTC · original · reviewed
Thanks for the CachyOS and RTX 5080 comparison. I checked
92a744d7and the Windows CI is green.Pending::newrecords the omission beforeearly,ready, ornowcan build the pipeline. The existingskipped shader <hash>diagnostic still takes precedence, and the fallback reason remains distinct frombeing madeas in #82.Could you add a regression test showing that an explicit hash match leaves the pipeline unqueued and reports the omission? An unmatched shader should still take the normal path. Please also document that this is an opt-in workaround for known compiler hangs and can omit visible effects. The separate
victory warmpath builds throughknown::makeand is outside this change.For the RTX 5080 report, redacted before-and-after queue and first-world frame lines from the same starting cache and settings would let us check the reported recovery. The queue draining from around 1,600 to zero is the result to verify first.
@nullexxx on GitHub · 2026-11-27 01:40 UTC · original
This was a HUGE !!! Optimization and breakthrough for me on linux...
GIve me a minute and i'll gather a more proper response.. because holy shit my framerate went for 3 fps to 24+
@TaynanGT on GitHub · 2026-11-27 01:41 UTC · original
Thanks, @nullexxx. Take your time. The jump to 24+ FPS is encouraging, especially with the world drawing again. A short excerpt from startup through the first world frame in each run is enough. The pipeline queue and draw counts will help show when the workers started making progress again.
@TaynanGT on GitHub · 2026-11-27 01:52 UTC · original
Thanks for adding the regression and documenting the limits in
cf4f840. I checked the CI log. The test confirms that the listed hash stays out of the queue, the unmatched shader follows the normal path, and diagnostics report the omission. The docs also cover the effect on rendering and the separatevictory warmpath. The before-and-after Linux logs are still the remaining evidence for the reported queue recovery. CI run@nullexxx on GitHub · 2026-11-27 01:56 UTC · original
Updated in
cf4f840(all 4 CI checks green):skipped_hash_leaves_pipeline_unqueued_and_unmatched_queues_normallyincrates/victory-gpu/src/pipeline/make.rs(vianew_with_skip_hashes/skipped_in_listso it does not mutate the process-wideOnceLockunder--test-threads=1). It verifies a matched hash staysNOT_QUEUEDafterearly/readyand reportsskipped by VICTORY_SKIP_PIPELINESunderdiagnostics, while an unmatched hash queues and completes normally.docs/README-fxceless.mdto documentVICTORY_SKIP_PIPELINESas an opt-in workaround for known compiler hangs that can omit visible effects and does not apply tovictory warm(known::make).Matched RTX 5080 A/B Log Lines (CachyOS, GE-Proton11-14,
--release, Series S, 1920x1080)Both runs used identical launch options, binary (
cf4f840), and starting cache snapshot, differing only inVICTORY_SKIP_PIPELINES. A 7th compute shader (559d9f0184e15fe3) also hungvkd3d-protonwhen omitted from the skip list, leaving1 being madestuck and burning the per-frame wait budget; including it inVICTORY_SKIP_PIPELINES(32ed072b9f845048,fdd56d97a806bcca,17829ac71aab4e8d,a1b20bc47e3c9597,afeea48bbb9913ad,e8c962358d862e3f,7f05ddab771799a9,a53a7977fe762268,be14e72d86362031,559d9f0184e15fe3) drained the queue to0.Before (
VICTORY_SKIP_PIPELINESunset — workers deadlocked, queue stuck at ~1,800):After (
VICTORY_SKIP_PIPELINESset — queue drains to0, world renders):@TaynanGT on GitHub · 2026-11-27 02:02 UTC · original
@nullexxx Thanks for the matched runs. With the same
cf4f840build and starting cache, the excerpts show the queue going from about 1,800 stuck entries to zero and world draws resuming on the RTX 5080. The final example uses the full ten-hash list, including559d9f0184e15fe3. That covers the Linux evidence requested in review. It also gives us a concrete baseline for the opt-in workaround, including the draws that still get omitted.