translate --warm starts four worker threads by default, though --jobs says every logical core #292
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#292
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@itsonewi on GitHub · 2026-11-26 19:16 UTC · original
What happens
--jobsofvictory translateis documented as "Worker threads (default: every logical core)" (apps/victory/src/main.rs:94), and the ordinary path keeps that promise:apps/victory/src/translate.rs:289uses(the same as
victory shaders,:416). The--warmpath in the same command does not:So
victory translate --warm hashes.txtwith no--jobstranslates on 4 threads whatever the machine has, and the summary says so: "… {:.1} s on {threads} threads" (:231). On a 16-core machine that is a quarter of the cores the same flag givesvictory translateandvictory shaders; on a 32-thread one, an eighth. The dedicatedvictory warmcommand does scale with the machine (apps/victory/src/warm.rs:62-63, two thirds of the cores), which makes the 4 in the--warmpath look like a leftover rather than a choice.Why it matters
A warm-up is the long, once-per-translator-version job the command exists for (the
Shadershelp calls it "a few minutes, once per version of the translator"). Four threads where the help promises every core makes it several times longer than it needs to be, and the only visible sign is the "on 4 threads" at the end of a run that already finished.Suggested fix
Use the same default as the other two paths (
jobs.unwrap_or_else(|| available_parallelism().map_or(4, |n| n.get()))), or point the--jobshelp at the--warmdefault if 4 is meant there.AI use
Found by reading
apps/victory/src/main.rsandapps/victory/src/translate.rs(andapps/victory/src/warm.rsfor the other default). Nothing was built or run.github-bot referenced this issue2026-11-26 19:49:17 +00:00