Translate: --warm uses every logical core by default, as --jobs says #332
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!332
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-332"
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?
@TinkerBell-90 on GitHub · 2026-11-26 20:33 UTC · original
TinkerBell-90:translate-warm-every-core→a-publier· +20 −5 · 1 files · 1 commits · merged 2026-11-26 22:30 UTCFixes #292.
translate --warmtook 4 threads when--jobswas not given, while the flag's help says "every logical core" and the two other paths oftranslate.rs(translate,shaders) do that. The three paths now take their count from one function,worker_threads: every logical core by default, never fewer than one (the.max(1)the warm-up path already had).victory warm(warm.rs, two thirds of the cores) is unchanged.This touches only
translate.rs, so it does not overlap #326, which rejects--jobs 0at parse time for #311. Once #326 is in, the.max(1)is only a guard.Testing
Linux host: built for
x86_64-pc-windows-gnuand run under Wine 10 (Ryzen 7 3700X, 16 logical cores). Not Windows. The only input was three empty DXBC containers made for the test; no game data anywhere, nothing was run in game.victoryunit tests: 23 passed, the newjobs_is_at_least_one_worker_and_every_core_by_defaultincluded.left: 4, right: 16); with the oldtranslate/shadersexpression it fails on--jobs 0(left: 0, right: 1).victory translate --warm allon the folder holding them, without--jobs:... 3 do not translate; 0.4 s on 4 threadsatcd8dfc0,... on 16 threadswith this change.cargo clippy --no-deps -p victory --all-targets --target x86_64-pc-windows-gnu -- -D warnings: clean.AI-assisted.