Use six pipeline workers in the RTX 3060 preset #422

Closed
github-bot wants to merge 660 commits from github-bot/gh-422 into main AGit
Owner

@⁠Indy2l on GitHub · 2026-11-28 15:53 UTC · original
Indy2l:preset/3060-pipeline-workers → main · +60031 −5429 · 206 files · 660 commits · closed without merging

Summary

-Machine 3060 now uses six pipeline workers (VICTORY_PIPELINE_WORKERS=6) instead of the three it inherits from the 4070 profile. Nothing else changes.

With a cold pipeline cache, for example after a translator or driver change, about 460 of the prologue route's pipelines take over a second each to compile on this PC: 1,450 s together, the longest 61 and 72 s. With three workers that work alone takes about 8 minutes. The pipelines the picture needs are cheap, but they wait behind the slow ones, so the world stays black until the backlog clears and then fills in at once.

On fe7c6e5, i5-12400F / RTX 3060 12 GB / 16 GB, Series S, the same prologue route each time. Before each run, the driver's shader cache files for victory.exe and the cache directory's pipelines folder were removed. Shader translations were kept.

Run Pipeline workers Black (recording) Queue empty after fps median once the queue was empty
43 3 (current) about 6 min 15 s about 595 s 7.9
46 4 about 5 min 35 s about 505 s 10.2
45 6 about 4 min 45 s about 423 s 9.0

Warm runs with three workers on the same base gave 7.7 and 8.8 fps, so more workers did not cost frames in play. The workers run below the title's threads.

This shortens the cold start but doesn't remove it: with six workers the longest compiles still hold up the cheap pipelines for about a minute. A separate change to the queue order will address that.

docs/rtx3060-16gb.md has the new row in the settings table and the measurements above.

Verification

  • cargo build --locked --profile diag -p victory --features diagnostics, then each run with scripts\play.ps1 -Machine 3060 -Console series-s -Windowed -More @{VICTORY_OUTPUT='1920x1080'; VICTORY_UPSCALER='6'; VICTORY_RENDER_SCALE='0.5'; VICTORY_PIPELINE_WORKERS='<n>'}. That is the same value the preset now sets. Each log confirms it with pipeline workers workers=<n>.
  • All three runs were recorded and compared at one frame every 10 s. "Black" runs from the first world frame to the first frame with the scene drawn, to within 10 s. After that the three look the same, with no new artifacts. Recordings stay local.
  • cargo run -p xtask --locked -- policy: 322 files ok.
  • scripts\play.ps1 parses with the PowerShell parser.
  • git diff --check: clean.
  • No Rust code changed, so clippy and cargo test were not rerun.

🤖 Generated with Claude Code

**@⁠Indy2l** on GitHub · 2026-11-28 15:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/422) `Indy2l:preset/3060-pipeline-workers` → `main` · +60031 −5429 · 206 files · 660 commits · closed without merging ## Summary `-Machine 3060` now uses six pipeline workers (`VICTORY_PIPELINE_WORKERS=6`) instead of the three it inherits from the 4070 profile. Nothing else changes. With a cold pipeline cache, for example after a translator or driver change, about 460 of the prologue route's pipelines take over a second each to compile on this PC: 1,450 s together, the longest 61 and 72 s. With three workers that work alone takes about 8 minutes. The pipelines the picture needs are cheap, but they wait behind the slow ones, so the world stays black until the backlog clears and then fills in at once. On `fe7c6e5`, i5-12400F / RTX 3060 12 GB / 16 GB, Series S, the same prologue route each time. Before each run, the driver's shader cache files for `victory.exe` and the cache directory's `pipelines` folder were removed. Shader translations were kept. | Run | Pipeline workers | Black (recording) | Queue empty after | fps median once the queue was empty | |---|---|---|---|---| | 43 | 3 (current) | about 6 min 15 s | about 595 s | 7.9 | | 46 | 4 | about 5 min 35 s | about 505 s | 10.2 | | 45 | 6 | **about 4 min 45 s** | **about 423 s** | 9.0 | Warm runs with three workers on the same base gave 7.7 and 8.8 fps, so more workers did not cost frames in play. The workers run below the title's threads. This shortens the cold start but doesn't remove it: with six workers the longest compiles still hold up the cheap pipelines for about a minute. A separate change to the queue order will address that. `docs/rtx3060-16gb.md` has the new row in the settings table and the measurements above. ## Verification - `cargo build --locked --profile diag -p victory --features diagnostics`, then each run with `scripts\play.ps1 -Machine 3060 -Console series-s -Windowed -More @{VICTORY_OUTPUT='1920x1080'; VICTORY_UPSCALER='6'; VICTORY_RENDER_SCALE='0.5'; VICTORY_PIPELINE_WORKERS='<n>'}`. That is the same value the preset now sets. Each log confirms it with `pipeline workers workers=<n>`. - All three runs were recorded and compared at one frame every 10 s. "Black" runs from the first world frame to the first frame with the scene drawn, to within 10 s. After that the three look the same, with no new artifacts. Recordings stay local. - `cargo run -p xtask --locked -- policy`: 322 files ok. - `scripts\play.ps1` parses with the PowerShell parser. - `git diff --check`: clean. - No Rust code changed, so clippy and `cargo test` were not rerun. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With a cold pipeline cache, three workers kept the world black for about
six minutes on the i5-12400F; six workers cut that to under five and
emptied the queue three minutes sooner, with no fewer frames afterwards.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 15:58:01 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:35 UTC · original

Thanks for the matched cold-cache runs and visual comparisons. Six workers shortened the queue drain on this 3060/16 GB setup. Please keep the change scoped to that preset and measure peak commit and memory pressure too; the long-pipeline ordering work belongs separately in #424.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:35 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/422#issuecomment-7255217197) Thanks for the matched cold-cache runs and visual comparisons. Six workers shortened the queue drain on this 3060/16 GB setup. Please keep the change scoped to that preset and measure peak commit and memory pressure too; the long-pipeline ordering work belongs separately in #424.
Author
Owner

@⁠Indy2l on GitHub · 2026-11-29 17:09 UTC · original

The change stays in the -Machine 3060 row only.

Memory for the same three cold runs. A sampler read the game process and the system every 3 s. These figures cover the first 590 s of each run, which includes every queue drain (423 to 595 s). i5-12400F, 16 GB RAM, RTX 3060 12 GB; commit limit 63.85 GB.

Run Pipeline workers Peak private Median private Peak system commit Peak working set Peak GPU dedicated / shared Pages in per s, median / mean
43 3 (current) 18.82 GB 17.23 GB 36.78 GB 12.52 GB 8.18 / 3.01 GB 1,434 / 5,112
46 4 19.66 GB 18.53 GB 37.38 GB 11.75 GB 8.76 / 3.64 GB 1,496 / 4,551
45 6 19.07 GB 18.15 GB 36.96 GB 12.61 GB 8.49 / 3.37 GB 1,927 / 5,129

With six workers, peak private was 0.25 GB higher than with three, and peak commit 0.2 GB higher, at 58% of the limit. Four workers peaked higher than six. Paging was heavy in all three runs, as usual on 16 GB with this title: the working set stays around 12.5 GB. The median rate was higher with six workers, the mean about the same. These are single runs, so I wouldn't read the paging difference as more than run-to-run spread.

**@⁠Indy2l** on GitHub · 2026-11-29 17:09 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/422#issuecomment-7259472650) The change stays in the `-Machine 3060` row only. Memory for the same three cold runs. A sampler read the game process and the system every 3 s. These figures cover the first 590 s of each run, which includes every queue drain (423 to 595 s). i5-12400F, 16 GB RAM, RTX 3060 12 GB; commit limit 63.85 GB. | Run | Pipeline workers | Peak private | Median private | Peak system commit | Peak working set | Peak GPU dedicated / shared | Pages in per s, median / mean | |---|---|---|---|---|---|---|---| | 43 | 3 (current) | 18.82 GB | 17.23 GB | 36.78 GB | 12.52 GB | 8.18 / 3.01 GB | 1,434 / 5,112 | | 46 | 4 | 19.66 GB | 18.53 GB | 37.38 GB | 11.75 GB | 8.76 / 3.64 GB | 1,496 / 4,551 | | 45 | 6 | 19.07 GB | 18.15 GB | 36.96 GB | 12.61 GB | 8.49 / 3.37 GB | 1,927 / 5,129 | With six workers, peak private was 0.25 GB higher than with three, and peak commit 0.2 GB higher, at 58% of the limit. Four workers peaked higher than six. Paging was heavy in all three runs, as usual on 16 GB with this title: the working set stays around 12.5 GB. The median rate was higher with six workers, the mean about the same. These are single runs, so I wouldn't read the paging difference as more than run-to-run spread.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 19:02 UTC · original

Thanks for the memory measurements. The reported increase in peak system commit is modest (0.18 GB), but paging is already heavy on this 16 GB setup. Keeping six workers limited to the 3060 preset makes sense; I would avoid generalizing the result to other presets from these single runs.

**@⁠TaynanGT** on GitHub · 2026-11-29 19:02 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/422#issuecomment-7260953349) Thanks for the memory measurements. The reported increase in peak system commit is modest (0.18 GB), but paging is already heavy on this 16 GB setup. Keeping six workers limited to the 3060 preset makes sense; I would avoid generalizing the result to other presets from these single runs.
github-bot closed this pull request 2026-11-30 17:08:47 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:07 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:07 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/422#issuecomment-7285767989) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.