Pipeline workers: opt-in low-memory mode keeps the slow-build limit at first use (#56) #164
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!164
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-164"
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?
@JoeY54 on GitHub · 2026-11-26 08:46 UTC · original
avatarmanz:claude/brave-shannon-7bfuao→main· +296 −28 · 2 files · 1 commits · openAdds
VICTORY_PIPELINE_LOW_MEMORY=1(off by default). When on, pipelines known to be slow count against the slow-build limit at first use and for screen passes, not only when started early. Screen and first-use jobs get the next free slow slot ahead of speculative work. Quick jobs, including cache hits, keep running while a slow miss waits. The slow limit is now a quarter of the configured worker count (VICTORY_PIPELINE_WORKERSincluded).Tests: 7 deterministic queue tests from the issue's acceptance list. Existing scheduler tests are unchanged. Merges cleanly with #125, #144 and #128.
Not yet done: hardware cold/warm comparison (results to follow). Known-slow library hits are also limited in this mode.
Generated by Claude Code
@JoeY54 on GitHub · 2026-11-26 08:57 UTC · original
CI is red on this PR for the same reasons it is red on
mainat722c0e1(run 45784658299). This PR does not touch either file:clippy::missing_transmute_annotationsatcrates/victory-loader/src/descriptor_sites.rs:277(twotransmutecalls without type annotations). Clippy stops there, so it never reachesvictory-gpuin either run.pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_drawsfails atcrates/victory-gpu/src/pipeline/host.rs:1464("depth 0.5 outside [0.6, 1.0] must be rejected", left 255, right 0).Apart from that one test, everything else passes: 371 passed here vs 364 on
main(Default), 423 vs 416 (Diagnostics). The 7 extra are the newlow_memory_tests. The existing scheduler tests pass.Generated by Claude Code
@JoeY54 on GitHub · 2026-11-26 10:11 UTC · original
Local Windows check of this PR's head
5a2f8c6, compared withmainat9576c45. Toolchain: rustc/cargo 1.98.1 fromrust-toolchain.toml. CPU only, no game files.cargo test -p victory-gpu --lib --locked pipeline::make--all-features -- --test-threads=15a2f8c6main9576c45low_memory_tests. The 6 existing scheduler tests pass unchanged.cargo clippy -p victory-gpu --all-targets --locked -- -D warningsreports nothing inpipeline/make.rs. Its remaining errors are the same 45 lines as on the merge base39031cb.9576c45.Generated by Claude Code
@JoeY54 on GitHub · 2026-11-26 17:11 UTC · original
Hardware comparison on RTX 5090 + 9950X3D (192 GB), PR head
5a2f8c6,diagbuild,play.ps1 -Safe. The low-memory mode limits slow builds toslow_limit=4(16 workers). Each run measures 200 s from the start screen. Cold cache = seeded cache withouthost-pipelines.bin, with the NVIDIA DXCache cleared. Warm cache = the full seed. 2 runs per group, in shuffled order; medians shown.Generated by Claude Code
@JoeY54 on GitHub · 2026-11-26 17:55 UTC · original
This is ready for review. The mode is off by default, so default runs are unaffected. The point to look at is the cold-cache stall in the hardware comparison above: one run with the mode on spent about 165 s at about 2 fps while 322 pipelines drained through 4 slow slots. If you would rather have first-use slow builds limited only when commit headroom is low, I can add that here before merge, or as a follow-up.
Generated by Claude Code
5a2f8c60aeto95fd5b4911@JoeY54 on GitHub · 2026-11-27 01:09 UTC · original
Head changed from
5a2f8c6toc12a32cto correct the commit author: it was the cloud container's default Git identity, and it is now my account. The tree, parent and commit message are byte-identical (git diff 5a2f8c6 c12a32cis empty), so the test and hardware results above still apply. The original commit is kept onclaude/brave-shannon-7bfuao-backup-5a2f8c6.Generated by Claude Code
@JoeY54 on GitHub · 2026-11-27 01:11 UTC · original
Head changed again, from
c12a32cto95fd5b4: I removed a private session-link trailer from the commit message. The code is unchanged (git diff c12a32c 95fd5b4is empty).Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.