README: document xcl shaders --precompile --limit #2718

Open
romeawayfromhome-rgb wants to merge 2 commits from upstream-pr/2728 into main
romeawayfromhome-rgb commented 2026-11-26 09:03:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-26T09:03:34Z.


Documents the --limit N flag for xcl shaders --precompile, which the README usage block does not mention. The parser accepts --limit (crates/xcl/src/shaders.rs, default unlimited) and precompile processes only the first N input records (input.len().min(limit)). Verified against main b49be18; no open PR documents this flag.

What is in it

  • README.md: one example line for xcl shaders --precompile --limit 100 in the usage block

Tested

  • README-only change; no code touched. Flag name, default, and behaviour verified by reading crates/xcl/src/shaders.rs at b49be18. Not built or run: this VM is Linux and XCL builds on Windows only.

Regression run

  • Not applicable: README-only, no change under crates/xcl/src.

Not tested

  • Not run on Windows or any GPU; the example line itself was not executed.

AI use

  • Muse Spark via Muse, conducted by LegendaryGodKing: found the undocumented flag, verified it against the parser, wrote the README line and this description.
<!-- greyfinch-sync:ivall/xcl:issue:5507053786 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2728). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-26T09:03:34Z. --- Documents the `--limit N` flag for `xcl shaders --precompile`, which the README usage block does not mention. The parser accepts `--limit` (crates/xcl/src/shaders.rs, default unlimited) and precompile processes only the first N input records (`input.len().min(limit)`). Verified against main b49be18; no open PR documents this flag. **What is in it** - README.md: one example line for `xcl shaders --precompile --limit 100` in the usage block **Tested** - README-only change; no code touched. Flag name, default, and behaviour verified by reading crates/xcl/src/shaders.rs at b49be18. Not built or run: this VM is Linux and XCL builds on Windows only. **Regression run** - Not applicable: README-only, no change under crates/xcl/src. **Not tested** - Not run on Windows or any GPU; the example line itself was not executed. **AI use** - Muse Spark via Muse, conducted by LegendaryGodKing: found the undocumented flag, verified it against the parser, wrote the README line and this description.
luckyteagirl commented 2026-11-26 09:43:34 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T09:43:34Z.

Review: COMMENTED


The new comment says --limit 100 precompiles “the first 100 shaders,” but precompile() sets n = input.len().min(limit) before it parses entries or applies --only/--used-only. The limit bounds input records, not eligible shaders or compiled programs; one record can hold multiple programs, and filtered records still consume positions within the first 100. That distinction matters when someone uses this example to bound a short run.

Could the comment say “process at most the first 100 shader records” (the PR description already uses “records”)? This is exact-head source review only; I did not run the CLI for this wording change.

<!-- greyfinch-sync:ivall/xcl:review:6071762405 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2728#pullrequestreview-6071762405). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T09:43:34Z. **Review:** COMMENTED --- The new comment says `--limit 100` precompiles “the first 100 shaders,” but `precompile()` sets `n = input.len().min(limit)` before it parses entries or applies `--only`/`--used-only`. The limit bounds input **records**, not eligible shaders or compiled programs; one record can hold multiple programs, and filtered records still consume positions within the first 100. That distinction matters when someone uses this example to bound a short run. Could the comment say “process at most the first 100 shader records” (the PR description already uses “records”)? This is exact-head source review only; I did not run the CLI for this wording change.
romeawayfromhome-rgb commented 2026-11-26 11:05:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-26T11:02:09Z.


Thanks — updated in ae5a2f9. The example comment now reads "process at most the first 100 shader records".

<!-- greyfinch-sync:ivall/xcl:comment:7190173991 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2728#issuecomment-7190173991). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-26T11:02:09Z. --- Thanks — updated in ae5a2f9. The example comment now reads "process at most the first 100 shader records".
github-actions[bot] commented 2026-12-01 02:34:02 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:34:02Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7298754461 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2728#issuecomment-7298754461). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:34:02Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 08:50:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:50:09Z.


Triage (#1607) – head ae5a2f9

No open or merged PR documents --precompile --limit. The line is accurate: precompile processes input.len().min(limit) records (shaders.rs). No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305847871 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2728#issuecomment-7305847871). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:50:09Z. --- **Triage (#1607)** – head ae5a2f9 No open or merged PR documents `--precompile --limit`. The line is accurate: `precompile` processes `input.len().min(limit)` records (`shaders.rs`). No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2728:upstream-pr/2728'
git switch 'upstream-pr/2728'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2728'
git switch 'upstream-pr/2728'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2728'
git switch 'upstream-pr/2728'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2728'
git switch 'main'
git merge --squash 'upstream-pr/2728'
git switch 'main'
git merge --ff-only 'upstream-pr/2728'
git switch 'main'
git merge 'upstream-pr/2728'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2718
No description provided.