Skip to content

README: document XCL_TWO_PASS_MB - #3555

Draft
romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/two-pass-mb-readme-17
Draft

romeawayfromhome-rgb wants to merge 1 commit into
xcl-dev:mainfrom
romeawayfromhome-rgb:docs/two-pass-mb-readme-17

Conversation

@romeawayfromhome-rgb

Copy link
Copy Markdown

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

What is in it

  • README.md: one new bullet under "Switches for how a title runs", after the XCL_WAIT_TIMEOUT_MS / XCL_GPU_WAIT_TIMEOUT_MS bullet, stating that XCL_TWO_PASS_MB=n caps the two-pass buffers alive at once at n MiB and a draw whose buffer would pass the cap is skipped, and that unset or not a whole number the cap comes from the DXGI video-memory budget instead (1024 MiB when no budget is known).

Tested

  • Verified against crates/xcl/src/hle/d3d12x/bind.rs at main d0832e6: two_pass_cap() parses the trimmed value as whole MiB (mb * 1 MiB) and otherwise falls back to budget_two_pass_cap() over DXGI budget headroom, which returns 1024 MiB when the budget is unknown; refuse_two_pass() logs that a draw whose buffer would take the alive buffers past the cap is skipped. Confirmed the variable had no mention in README.md at that commit and searched open PRs/issues for a duplicate; none found.

Regression run
main: n/a (docs-only)
PR: n/a (docs-only)

Not tested

  • No local build or test run; README-only change. Windows build, cargo test --workspace, the GPU suite, and any retail title were not run.

AI use

  • AI-assisted (Muse Spark): read the code, checked for duplicate PRs, and prepared this docs change. No test results were produced by the tool.

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

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

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

  • README line 361 is indented 6 spaces; the other continuation lines use 4.
  • "a draw whose buffer would pass the cap is skipped" leaves out that XCL first frees finished buffers, waits on in-flight fences and shrinks the record buffer (ensure_res_buffer_with_cap in bind.rs); only a draw that still doesn't fit is skipped. The unset case could say the cap is 25 % of the remaining video-memory budget, clamped between a 256-512 MiB floor and min(budget/4, 2 GiB) (budget_two_pass_cap).
  • Open draft D3D12.X: a draw's two-pass buffer goes past the headroom cap, not skipped #3165 would change what happens with the variable unset.

Fine: parsing (a trimmed whole number of MiB, otherwise the budget cap), the 1024 MiB fallback when no budget is known, no trailing whitespace, line lengths, and no other PR documents this variable.

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 a05aad7

No open or merged PR documents XCL_TWO_PASS_MB. The text matches two_pass_cap / budget_two_pass_cap in bind.rs: a whole number of MiB, and otherwise the DXGI budget (1024 MiB with no budget).
Nit: the second line of the entry is indented 6 spaces instead of 4 like the lines around it.
Recommendation: keep open.

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

saintwolf added a commit to saintwolf/xcl that referenced this pull request Dec 1, 2026
When local-VRAM two-pass buffers reach XCL_TWO_PASS_MB (or the DXGI headroom floor),
spill overflow UAV buffers to D3D12_MEMORY_POOL_L0 (up to XCL_TWO_PASS_L0_MB,
default 512 MiB; 0 disables) with a separate FREE_L0_RES pool instead of
spin-waiting and skipping draws.

Complementary to xcl-dev#3165 and xcl-dev#3555.
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