README: document xcl shaders --precompile --limit #2728
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2728
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2728"
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?
@romeawayfromhome-rgb on GitHub · 2026-11-26 09:03 UTC · original
romeawayfromhome-rgb:docs/precompile-limit-readme→main· +1 −0 · 1 files · 2 commits · draftDocuments the
--limit Nflag forxcl 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 mainb49be18; no open PR documents this flag.What is in it
xcl shaders --precompile --limit 100in the usage blockTested
b49be18. Not built or run: this VM is Linux and XCL builds on Windows only.Regression run
Not tested
AI use
@luckyteagirl on GitHub · 2026-11-26 09:43 UTC · original · reviewed
The new comment says
--limit 100precompiles “the first 100 shaders,” butprecompile()setsn = 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 on GitHub · 2026-11-26 11:02 UTC · original
Thanks — updated in
ae5a2f9. The example comment now reads "process at most the first 100 shader records".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.