CLI: read warm-up input files once per pass #3610
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3610"
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?
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T21:03:15Z.
Passing a parent directory and one of its subdirectories, or listing a file already under a directory argument, sent the same path through the shader warm-up and the pipeline prebuild again. The shader cache deduplicated matching containers after the read.
Within each warm-up pass, a successful read now covers subsequent occurrences of the same path. The first occurrence determines input order. Failed reads can be retried when the path occurs again. A single root uses the existing direct read path.
I tested a synthetic pack and two shader containers through the normal CLI. A parent root, a nested root and an explicit file produced five reads per pass on main and three with the patch. The single-root control stayed at three. All 17 sorted pipeline keys matched. The cold WARP run made two distinct pipelines, and the warm run found all 17 records in the library. Both versions translated the same two shaders and found the same two shader-cache entries on the repeat run.
The local read counters and SDK fixture were temporary. The branch includes a unit test for successful, repeated and failed reads.
All 19 CLI tests passed with default and diagnostic features. Both strict Clippy configurations, formatting for the changed files and the asset policy check passed.
Developed and tested with Codex assistance.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T21:07:05Z.
Windows CI passed on the published commit
f87d06f. The local CLI comparison used the same three synthetic inputs in all runs. Overlapping roots caused 10 input reads on main and 6 with this change across shader warm-up and prebuild. All 17 pipeline keys matched. Both cold WARP runs made two distinct pipelines and both warm runs found all 17 records. The single-root control stayed at three reads per pass. Windows CIIf reusing the change or the test, please retain the Git author when cherry-picking or rebasing. If folding it into another commit, please add the trailer below.
Co-authored-by: andrewpozdnakov7-jpg [email protected]
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.