Skip to content

README: document XCL_ASYNC_PSO - #3155

Draft
romeawayfromhome-rgb wants to merge 2 commits into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/async-pso-readme
Draft

romeawayfromhome-rgb wants to merge 2 commits into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/async-pso-readme

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

Documents the existing XCL_ASYNC_PSO switch in the README switches section. The switch already exists in crates/xcl/src/hle/d3d12x/pso_async.rs; this change only documents it.

What is in it

  • README.md: one bullet on background pipeline building and XCL_ASYNC_PSO=0.

Tested

  • Source check against main e429936: enabled() in pso_async.rs is true unless the value is exactly "0", and the module header states that XCL_ASYNC_PSO=0 builds every pipeline in the call. A search for XCL_ASYNC_PSO found no open PR documenting it.

Regression run

  • Not required: README.md only, no runtime change.

Not tested

  • Not built or tested locally: this was prepared on Linux, where XCL does not build, so there is no Windows or GPU run. Docs-only change.

AI use

  • Muse (Muse Spark model), directed by the account holder: scouted the switch, verified it against the source, and drafted the change and this description.

@JJAutoCompare

Copy link
Copy Markdown

Tested

Independently reran the pinned standalone CPU executable for f0412b4f1294ca4d66a18b4444a866c6610bd35c on Windows 11 x64 build 26200.9974 with a Ryzen 7 3800X. The binary was built with Rust 1.100.1 (x86_64 MSVC). All 91 bytes of pso_async::enabled() matched between the PR head, main at 10d272970f25b02b72ebe3c883d02d74d4d4763b, and the harness.

Ran async_pso_enabled.exe <case> --exact --nocapture --test-threads=1 with a fresh native child for each case. Node passed XCL_ASYNC_PSO directly in the child's environment.

Case Child value enabled()
env_absent Unset true
env_empty_string Empty string true
env_literal_zero 0 false
env_literal_one 1 true
env_spaces_around_zero " 0 " true
env_double_zero 00 true
env_arbitrary_text enabled-value true

UTF-16 enumeration and direct lookup agreed in all seven children, distinguishing unset from empty and preserving both spaces around the padded zero. All seven native processes exited 0. Total was 7 passed, 0 failed, 0 ignored, 0 skipped.

Not tested

Workspace build or suite, runtime pipeline creation and waits, caching, GPU behavior, and retail titles.

AI use

T3 Code through Codex (gpt-6.2-sol, high) prepared the standalone harness, verified the source and executable, independently reran the seven tests, and drafted this report.

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head f0412b4

No open or merged PR documents XCL_ASYNC_PSO in README.md (the other README env-var PRs, e.g. #3202 / #3215 / #3227, document different variables); main has it only in pso_async.rs and HANDOFF.md.
One inaccuracy: "a graphics pipeline draws nothing until the real one is ready" is not the default. Per pso_async.rs (module docs and gfx_wait_budget), a draw waits for the pipeline at its bind; it goes on with the stand-in only past XCL_GFX_PSO_WAIT_MS / XCL_PSO_WAIT_MS when those are set. Please reword that clause. The branch also conflicts with main.
Recommendation: keep open.

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

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Review (head f0412b4, diff read, not a merge-check; draft, README only, conflicts with main):

  • "a graphics pipeline draws nothing until the real one is ready" isn't the default. Per the module doc (pso_async.rs ~8-13), a draw whose pipeline is still being built waits for it where it is used. It goes on with the stand-in (drawing nothing) only once its thread has spent XCL_GFX_PSO_WAIT_MS in the last second, and only when that is set. A dispatch waits until its pipeline is built unless XCL_CS_PSO_WAIT_MS limits it. So "the title gets a stand-in at once, and the first draw or dispatch that uses it waits for the real one" is closer.
  • "whose DXIL is not in the disk cache yet" narrows it more than the code does: enabled() (~3491) applies to pipelines generally, with lazy building on top (XCL_LAZY_PSO, README: document XCL_LAZY_PSO #3202). Worth checking against submit before describing the cached case.
  • Precision: only the exact value 0 turns it off (no trim).

The README doesn't name the variable yet, and with #3202, #3215, #3227, #3374, #3396 and #3422 (same account) all documenting pipeline switches in the same few lines, one README PR for them would avoid conflicts between them.

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

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants