Pipelines: VICTORY_PIPELINE_WORKERS sets the worker count #1727
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1728"
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?
Imported from Marvisak/VIctory. Originally posted by npanu420 on 2026-11-24T21:25:40Z.
What
VICTORY_PIPELINE_WORKERS=nsets the number of host pipeline workers (1 to 64). Without it nothing changes: half the logical processors, 2 to 8. The count is logged (host pipeline workers).Why
On a first run with an empty pipeline library, the world's pipelines are compiled by the driver on these workers, and draws whose pipeline is not made yet are dropped. On NVIDIA the largest world programs take seconds each. Same machine, same scene (i9-9900X with 20 threads, RTX 3070, Windows 11):
The two runs did not start from the same library state, so the rates are an indication, not a clean A/B. The CPU stayed below 80 % with 16 workers. CPUs with more threads than 16 may want more, and CPUs with fewer may want less while the title loads.
Changes
worker_count(asked, processors)reads the switch, clamped to 1-64, else keeps the default.worker_count_takes_the_switch_within_bounds.Verification
No game data is used or committed. AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T21:36:44Z.
Review: COMMENTED
Static review only: this crate is Windows-only (D3D12/windows_sys/Win32) — nothing compiles or runs on macOS; source review of the diff.
VICTORY_PIPELINE_WORKERS: default half the logical processors clamped to 2-8, env override clamped 1-64, parse failures fall back to default. worker_count has a unit test (worker_count_takes_the_switch_within_bounds) but victory-gpu is Windows-only so it only runs there. Rationale (driver compile of the world's largest programs bounds first run with empty library) is documented. Fine.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:36:15Z.
Automated triage for the maintainers.
Merge candidate.
worker_countinpipeline/make.rskeeps the old default (half the logical processors, 2 to 8, and 2 when the count is unknown);VICTORY_PIPELINE_WORKERSoverrides it, clamped to 1-64, and the count is logged once. The test covers the default, the clamps and an unparsable value. It only reads an environment variable and changes the thread count. Suggestion: add a row to the README switch table. #1861 also adds this switch, so only one should land. CI has not run (it needs approval).Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T22:02:08Z.
Automated triage for the maintainers, second look (a review against current
main, with builds and tests where they could change the verdict).Closing as the narrower of two duplicates. #2250 adds the same switch for the runtime workers and for
victory translate's worker pool, with a README row, and the two conflict inmake.rs. Whether such a switch goes in will be decided on #2250.If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Pull request closed