Skip to content

README: document XCL_COPY_THREADS - #3334

Draft
romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/copy-threads-readme-01
Draft

romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/copy-threads-readme-01

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

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

What is in it

  • README.md: state the copy worker count (default 4, at most 15; 0: no workers; unset or not a number keeps 4).

Tested

  • Verified against crates/xcl/src/hle/d3d12x/worker_pool.rs at d8bd9a3: the pool parses XCL_COPY_THREADS (trimmed), falls back to 4 when unset or not a number, caps the count at 15, and creates no workers when the count is 0. Searched open PRs and issues first; none documents this switch.

Not tested

  • Not compiled locally (no Windows/Rust toolchain for XCL in my environment); relying on CI.

AI use

  • Muse Spark (Clifford), conducted by Alexander Lerbakken / LegendaryGodKing.

@github-actions github-actions Bot added the area:docs-ci Documentation, scripts, workflows, repo governance label Nov 29, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Review (head 9ca2e05, diff read, not a merge-check; draft, README only):

  • "Copy worker" doesn't say what the pool does. worker_pool::run is used for the sparse page scans (sparse.rs ~7484, ~7523) and the texture-upload looks (texture_upload.rs ~328), and the calling thread works too. Something like "threads that help scan written pages before a submit" tells a reader when changing it matters. The README already names these phases under XCL_LOOK_STATS.
  • Nit: the continuation line is indented 4 spaces; the bullets around it use 2. Next to the DirectStorage worker bullets it also reads as if it were one of them.

Fine: the numbers match pool() (worker_pool.rs ~97-104): trimmed, 4 when unset or not a number, at most 15, and 0 makes no workers. The README doesn't mention it yet. #3374, #3396, #3422, #3439 and #3454 (same account) each document one switch; one README PR for all of them would be quicker to review.

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

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head 9ca2e05

No other open PR documents XCL_COPY_THREADS. The text matches worker_pool.rs (default 4, at most 15, 0 turns the pool off, a non-number keeps 4). Two nits. The entry sits among the DirectStorage bullets, but the pool is the D3D12.X submit pool (sparse::before_execute page scan and staging copies, texture uploads). "copy worker count" could say what it copies. The continuation line is indented 4 spaces where the list uses 2.
Recommendation: keep open.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs-ci Documentation, scripts, workflows, repo governance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants