Repository navigation
fix(runtime): bound pipeline checker workers to the shader slice - #3234
ItsNotRexed merged 1 commit into
Conversation
Keep the requested jobs count as an upper bound. Launch only as many workers as the filtered slice can use and report the resulting count.
|
Independent Windows check at 76e66de on a Ryzen 5 3600. vk_pipeline_check_cli passed. With two synthetic compute modules, --jobs 1 used one worker thread and --jobs 4 used two. Both pipelines passed in both runs. The sampled peak working sets were about 101 MiB and 49 MiB, respectively. These are single observations and do not establish a memory savings trend. AI-assisted testing and write-up. |
|
Tested
AI-assisted (Claude Code). Synthetic test shaders only, no game files. |
|
Tested
No game files. AI-assisted (Claude Code). |
Changes
Treat
--jobsas an upper bound for the worker pool. After choosing the shader slice, launch at most one worker per selected module and report the number that will run. Small diagnostic slices no longer allocate unused workers.Validation
Windows 11, Clang 23.1.5, RTX 4070 Ti, NVIDIA 621.24. The original checker used eight workers for one selected synthetic shader. The patched checker used one. Two selected shaders used two workers with
--jobs 8and one with--jobs 1. A start offset past the end used zero workers and exited normally.--jobs 4294967295 --count 1also used one worker, with the expected shader result. Native CMake CLI cases passed.Coordination claim. AI-assisted (Codex).