Pipeline workers: VICTORY_PIPELINE_WORKERS and VICTORY_PIPELINE_NORMAL #955

Open
github-bot wants to merge 1 commit from github-bot/gh-955 into main AGit
Owner

@⁠LukaManstein on GitHub · 2026-11-25 13:42 UTC · original
LukaManstein:pr/pipeline-workers → main · +19 −6 · 1 files · 1 commits · open

Two switches for the host pipeline workers, both off by default (nothing changes unless they are set):

  • VICTORY_PIPELINE_WORKERS=<n> (1–64): the number of workers, instead of half the logical processors clamped to 2–8.
  • VICTORY_PIPELINE_NORMAL=1: the workers run at normal priority instead of below normal.

Why: on a Ryzen 7 2700 (8 cores / 16 threads) with an RTX 3080 Ti, the title keeps every core busy in the world. With the default 8 below-normal workers the pipeline queue drained at about one pipeline every 2 s: right after a new build (or a new translator) ~950 pipelines waited and half of the draws were dropped for many minutes, which looked like a black or broken screen. With VICTORY_PIPELINE_WORKERS=12 VICTORY_PIPELINE_NORMAL=1 the same queue drained in about a minute (~30 a second at best), at the cost of lower fps while it drains (the copies get less CPU); once the library is on disk the next runs are unaffected.

The worker count and priority are logged once (host pipeline workers workers=… normal=…).

Tested on f85101b plus the Windows 10 Agility SDK commit, many sessions into the world; this branch is the same change on 0b0074e and compiles there.

🤖 Generated with Claude Code

**@⁠LukaManstein** on GitHub · 2026-11-25 13:42 UTC · [original](https://github.com/fxceless/victory-fork/pull/955) `LukaManstein:pr/pipeline-workers` → `main` · +19 −6 · 1 files · 1 commits · open Two switches for the host pipeline workers, both off by default (nothing changes unless they are set): - `VICTORY_PIPELINE_WORKERS=<n>` (1–64): the number of workers, instead of half the logical processors clamped to 2–8. - `VICTORY_PIPELINE_NORMAL=1`: the workers run at normal priority instead of below normal. **Why:** on a Ryzen 7 2700 (8 cores / 16 threads) with an RTX 3080 Ti, the title keeps every core busy in the world. With the default 8 below-normal workers the pipeline queue drained at about one pipeline every 2 s: right after a new build (or a new translator) ~950 pipelines waited and half of the draws were dropped for many minutes, which looked like a black or broken screen. With `VICTORY_PIPELINE_WORKERS=12 VICTORY_PIPELINE_NORMAL=1` the same queue drained in about a minute (~30 a second at best), at the cost of lower fps while it drains (the copies get less CPU); once the library is on disk the next runs are unaffected. The worker count and priority are logged once (`host pipeline workers workers=… normal=…`). Tested on `f85101b` plus the Windows 10 Agility SDK commit, many sessions into the world; this branch is the same change on `0b0074e` and compiles there. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:54:34 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/make.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/955/head:github-bot/gh-955'
git switch 'github-bot/gh-955'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-955'
git switch 'github-bot/gh-955'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-955'
git switch 'github-bot/gh-955'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-955'
git switch 'main'
git merge --squash 'github-bot/gh-955'
git switch 'main'
git merge --ff-only 'github-bot/gh-955'
git switch 'main'
git merge 'github-bot/gh-955'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.