Skip to content

README: document XCL_CS_PSO_WAIT_MS - #3422

Draft
romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/cs-pso-wait-ms-readme-07
Draft

romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/cs-pso-wait-ms-readme-07

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

Documents the compute-pipeline wait budget that pso_async.rs already implements but the README does not mention.

What is in it

  • README-only documentation of XCL_CS_PSO_WAIT_MS verified against crates/xcl/src/hle/d3d12x/pso_async.rs (cs_wait_budget/budget_of/budget_for) at upstream head 3b6a91e.

Tested

  • No local build/test (docs-only; this environment has no Windows/GPU test setup). No cargo test run.

Regression run

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

Not tested

  • Runtime behavior not exercised; wording checked against source only.

AI use

  • Muse Spark (Meta AI) researched the variable in source, checked for duplicate PRs, and prepared this docs change.

@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 0fc4891, diff read, not a merge-check; draft, README only):

  • Default not stated. The bullet says what happens past the budget but not that, with neither XCL_CS_PSO_WAIT_MS nor XCL_PSO_WAIT_MS set, a dispatch waits until its pipeline is built. Also missing is what skipping costs: what those dispatches compute is missing or old meanwhile, including the counts later ExecuteIndirects read (indirect_guard only zeroes counts out of range). That is why cs_wait_budget (pso_async.rs ~11119-11130) keeps it off by default. A reader turning it on for a stall should know both.
  • XCL_PSO_WAIT_MS, which it falls back to, isn't in the README either.

Fine: budget_of treats unset, 0 or not a number as no budget, budget_for picks cs.or(all) for compute pipelines, and past the budget the pipeline's dispatches get the stand-in until a worker builds it (resolve_within). The bullet is top-level and wrapped like its neighbours, and it merges cleanly with current main. #3396 (same author) documents the graphics budget beside it; one README PR for the wait switches would have been easier 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 0fc4891

No open or merged PR documents XCL_CS_PSO_WAIT_MS; the other README env-var PRs (#3118, #3155, #3202, #3215, #3227, #3274, #3285, #3311) each document a different variable. The text matches main's pso_async::cs_wait_budget / budget_of (unset, 0 or not a number falls back to XCL_PSO_WAIT_MS; past the budget the pipeline's dispatches are skipped until it is built).
#3439 inserts at the same README line, so whichever merges second needs a trivial rebase.
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