README: document XCL_DXC_THREADS #3462

Open
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/3462 into main
romeawayfromhome-rgb commented 2026-11-29 21:05:42 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-29T21:05:42Z.


Documents XCL_DXC_THREADS, which the README did not mention. README-only change. No issue.

What is in it

  • README.md: one new bullet after the translated-shader cache bullet stating that shader compiles run on DXC workers (and the PSO workers that feed them), that the default is every core but one clamped to 1-64, and that XCL_DXC_THREADS=N chooses the count.

Tested

  • Verified against crates/xcl/src/gpu/recomp/dxc.rs at main 1bd9cee: compile_threads() reads XCL_DXC_THREADS, falls back to available parallelism minus one when unset or not a number, and clamps the result to 1-64. Confirmed the variable had no mention in README.md at that commit and searched open PRs/issues for a duplicate README change; none documents this switch.

Regression run

  • Not needed: README only, no crates/xcl/src change.

Not tested

  • Windows build, cargo test --workspace, the GPU suite, and any retail title. A Windows test run is still needed before merge.

AI use

  • Muse Spark (Meta AI) read the code, checked for duplicate PRs, and prepared this docs change. No test results were produced by the tool.
<!-- greyfinch-sync:ivall/xcl:issue:5555114313 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3462). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-11-29T21:05:42Z. --- Documents `XCL_DXC_THREADS`, which the README did not mention. README-only change. No issue. **What is in it** - `README.md`: one new bullet after the translated-shader cache bullet stating that shader compiles run on DXC workers (and the PSO workers that feed them), that the default is every core but one clamped to 1-64, and that `XCL_DXC_THREADS=N` chooses the count. **Tested** - Verified against `crates/xcl/src/gpu/recomp/dxc.rs` at main 1bd9cee: `compile_threads()` reads `XCL_DXC_THREADS`, falls back to available parallelism minus one when unset or not a number, and clamps the result to 1-64. Confirmed the variable had no mention in README.md at that commit and searched open PRs/issues for a duplicate README change; none documents this switch. **Regression run** - Not needed: README only, no `crates/xcl/src` change. **Not tested** - Windows build, `cargo test --workspace`, the GPU suite, and any retail title. A Windows test run is still needed before merge. **AI use** - Muse Spark (Meta AI) read the code, checked for duplicate PRs, and prepared this docs change. No test results were produced by the tool.
Foniass commented 2026-12-01 08:28:33 +00:00 (Migrated from github.com)

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


Review (head 72417723, diff read, not a merge-check; draft, docs only):

  • README ~366-368 is nested under the translated-shader cache bullet rather than in the switch list or as its own bullet.
  • "By default every core but one" doesn't hold for the preparation workers shaders.rs ~3547 starts, which get XCL_DXC_THREADS=2 unless it's set; worth saying.

Fine: compile_threads() (dxc.rs ~757) defaults to cores - 1, clamped to 1-64, and also sizes the PSO workers; line lengths and whitespace are fine; merges cleanly with main.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7305366490 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3462#issuecomment-7305366490). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:28:33Z. --- Review (head 72417723, diff read, not a merge-check; draft, docs only): - README ~366-368 is nested under the translated-shader cache bullet rather than in the switch list or as its own bullet. - "By default every core but one" doesn't hold for the preparation workers `shaders.rs` ~3547 starts, which get `XCL_DXC_THREADS=2` unless it's set; worth saying. Fine: `compile_threads()` (`dxc.rs` ~757) defaults to cores - 1, clamped to 1-64, and also sizes the PSO workers; line lengths and whitespace are fine; merges cleanly with main. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-01 09:58:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:58:00Z.


Triage (#1607) – head 7241772

#1962 also documents XCL_DXC_THREADS ("default: every core but one, at most 64") inside its note on XCL_PIPELINE_THREADS; if both are merged the README says it twice. #572 would change the default itself (capped by available memory) and updates the README for that, which would make this line wrong.
The text matches dxc::compile_threads on main (cores minus one, clamped to 1-64, the variable overrides it).
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:7307468722 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3462#issuecomment-7307468722). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:58:00Z. --- **Triage (#1607)** – head 7241772 #1962 also documents `XCL_DXC_THREADS` ("default: every core but one, at most 64") inside its note on `XCL_PIPELINE_THREADS`; if both are merged the README says it twice. #572 would change the default itself (capped by available memory) and updates the README for that, which would make this line wrong. The text matches `dxc::compile_threads` on main (cores minus one, clamped to 1-64, the variable overrides it). 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/3462:upstream-pr/3462'
git switch 'upstream-pr/3462'

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/3462'
git switch 'upstream-pr/3462'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3462'
git switch 'upstream-pr/3462'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3462'
git switch 'main'
git merge --squash 'upstream-pr/3462'
git switch 'main'
git merge --ff-only 'upstream-pr/3462'
git switch 'main'
git merge 'upstream-pr/3462'
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!3462
No description provided.