perf: scale shadow, pipeline, and DirectStorage worker counts with CPU cores #49
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/fxceless--victory-fork!49
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-49"
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?
@fever308 on GitHub · 2026-11-24 20:54 UTC · original
fever308:feat/auto-cpu-worker-scaling→main· +80 −5 · 3 files · 1 commits · openSummary
Evidence
copy_widecapped at 6 threads on all hosts,wideworkers clamped to2..=6, host pipeline workers clamped to2..=8, and DirectStorage spawned one worker per logical core with no upper cap.After:
cargo test -p victory-gpu worker_count_scales_with_cores+copy_wide_max_jobs_scales_with_cores: passed.cargo test -p victory-hle dstorage_worker_count_scales_with_cores: 1 passed.cargo clippy(--all-targets -- -D warnings, default and--all-features) onvictory-gpuandvictory-hle: clean.Merge Danger
Door: two-way
Pure worker-count formulas evaluated once on first pool initialization.
Blast Radius: Workers
Changes background thread counts for shadow memory copies, host pipeline compilation, and DirectStorage decompression across low- and high-core hosts.
@Headache3318 on GitHub · 2026-11-25 04:14 UTC · original
Corpus count at current main (
c96b4f2). Machine: Arch Linux, kernel 7.3.5-arch1-1, 3x RTX 4090 driver 620.73.04, Proton, AI-assisted. Results: 26,084/26,084 programs translated to IR (100%). 25,598/25,694 known-type programs emitted DXIL (96 not emitted). 8,015/25,598 emitted programs passed validation (31.3%). 17,873 total errors across 27 error classes. Top error: Pipeline State Validation mismatch (17,367 = 97% of all errors). By type: compute 100% pass (2,672/2,672), mesh 30.2% (2,649/8,762), vertex+pixel 19.0% (2,694/14,164). Required installing dxil.dll from Microsoft.Direct3D.DXC NuGet into Wine prefix to enable --validate.@fever308 on GitHub · 2026-11-25 04:17 UTC · original
Thanks for sharing the baseline numbers,
@Headache3318! Just a quick heads-up that this PR is for scaling CPU worker counts (shadow / pipeline / DirectStorage), not shader translation/validation — in case you meant to post the corpus report on a shader or corpus tracking issue.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.