victory: add --jobs worker option to preload #174
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
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
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
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/Androtim--MiniVI!174
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/174/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?
@Androtim on GitHub · 2026-11-30 00:05 UTC · original
Androtim:feat/iter171-preload-jobs-flag→main· +15 −4 · 1 files · 1 commits · merged 2026-11-30 01:10 UTCSummary
Adds
--jobs <N>(Option<NonZeroUsize>) tovictory preloadso users on higher-core CPUs can explicitly control worker parallelism across both shader translation and pipeline warming, matchingvictory translate --jobsandvictory shaders --jobs.#[arg(long)] jobs: Option<NonZeroUsize>toCommand::Preloadinapps/victory/src/main.rsand forwardsjobs.map(NonZeroUsize::get)intotranslate::precompile,warm::run, andwarm::into_library.SHADER_COMMANDSandparse_shader_jobsinapps/victory/src/main.rstests to coverpreloaddefault (None), positive worker counts,0, negative values, and overflow.Addresses #169
Verification
cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy:asset policy: 311 files okcargo +1.98.1-x86_64-pc-windows-gnu test -p victory: passcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings: passcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings: pass@Androtim on GitHub · 2026-11-30 01:02 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):passingTriage Review: PR #174
Verdict:
merge-candidateSummary of Changes
--jobs <N>(Option<NonZeroUsize>) toCommand::Preloadinapps/victory/src/main.rs, matchingCommand::TranslateandCommand::Shaders.jobs.map(NonZeroUsize::get)intotranslate::precompile,warm::run, andwarm::into_library, all of which already acceptOption<usize>and preserve existing defaults whenNone(all logical cores for shader precompilation,cores * 2 / 3clamped to>= 1forwarm::runandwarm::into_library).SHADER_COMMANDSandparse_shader_jobsinapps/victory/src/main.rsunder#[cfg(windows)]to testpreload(with and without positionalpaths) across default (None), positive values,0, negative values, and overflow.Checks
NonZeroUsizeprevents--jobs 0; non-Windows builds remain properly gated via#[cfg(windows)].(Automated triage review; does not constitute formal maintainer approval.)
Generated with Antigravity CLI (
agy).