Pipelines: VICTORY_PIPELINE_WORKERS sets the worker count #1728
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1728
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1728/head"
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?
@npanu420 on GitHub · 2026-11-24 21:25 UTC · original
npanu420:pipeline/worker-count→main· +29 −3 · 1 files · 1 commits · closed without mergingWhat
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
@Marvisak on GitHub · 2026-11-25 03:36 UTC · original
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
@Marvisak on GitHub · 2026-11-25 22:02 UTC · original
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