README: document XCL_RESERVED_SPARES #3787

Open
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/3787 into main
romeawayfromhome-rgb commented 2026-12-03 13:08:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-12-03T13:08:06Z.


Documents XCL_RESERVED_SPARES, which is read in crates/xcl/src/hle/d3d12x/vram.rs but was not mentioned in the README switches list.

  • This change does not use code, signatures or documentation from leaked or NDA-only SDKs.

What is in it

  • README.md: add an XCL_RESERVED_SPARES bullet to the "Switches for how a title runs" sub-list, after the XCL_WAIT_TIMEOUT_MS bullet.

Tested

  • Not built or tested: this change was prepared on a Linux VM, and XCL builds/runs on Windows only.
  • Verified against main at a815de9: spare reserved textures are kept made ahead per description only where live reserved placements are on, 2 unless given and at most 16 (0 keeps none); made next to a placement, they enter the pool once the mapping queue passes a Signal after them, which is once their page-table entries exist. In that tree the variable name appears only in vram.rs; the README has no mention of it.

Regression run

  • Not applicable: README-only change; no runtime code changed.

Not tested

  • Windows build, GPU test suite, and title runs were not run for this docs-only change.

AI use

  • Muse Spark via Muse found the undocumented variable, drafted the README bullet, and wrote this description. No code was changed.
<!-- greyfinch-sync:ivall/xcl:issue:5627121389 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3787). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-12-03T13:08:06Z. --- Documents `XCL_RESERVED_SPARES`, which is read in `crates/xcl/src/hle/d3d12x/vram.rs` but was not mentioned in the README switches list. - [x] This change does not use code, signatures or documentation from leaked or NDA-only SDKs. **What is in it** - `README.md`: add an `XCL_RESERVED_SPARES` bullet to the "Switches for how a title runs" sub-list, after the `XCL_WAIT_TIMEOUT_MS` bullet. **Tested** - Not built or tested: this change was prepared on a Linux VM, and XCL builds/runs on Windows only. - Verified against `main` at `a815de9`: spare reserved textures are kept made ahead per description only where live reserved placements are on, 2 unless given and at most 16 (`0` keeps none); made next to a placement, they enter the pool once the mapping queue passes a Signal after them, which is once their page-table entries exist. In that tree the variable name appears only in `vram.rs`; the README has no mention of it. **Regression run** - Not applicable: README-only change; no runtime code changed. **Not tested** - Windows build, GPU test suite, and title runs were not run for this docs-only change. **AI use** - Muse Spark via Muse found the undocumented variable, drafted the README bullet, and wrote this description. No code was changed.
Foniass commented 2026-12-03 13:09:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T13:09:48Z.


Review of dbf4c5cc (code reading only, not a merge-check; draft) · 2 nits

In short: The PR adds an XCL_RESERVED_SPARES bullet to the README switches list. The default, the cap and the meaning of 0 match reserved_spares in hle/d3d12x/vram.rs on main. Two small points: the bullet's indentation, and "where live reserved placements are on" says nothing about when that is.

Nit

  1. The bullet is indented one space. - XCL_RESERVED_SPARES (README.md ~356) starts with one space, where the other switches start with two ( -), so it may render outside the switches sub-list. Use -. The continuation lines at 4 spaces are right.
  2. Say when live reserved placements are on. live_reserved_for (vram.rs ~758) turns them on by default only under Wine on an AMD adapter. XCL_LIVE_RESERVED=1 / 0 forces them on or off, and XCL_RESERVED_POOL=0 turns them off. Without that, a reader cannot tell whether the switch does anything on their machine. Add "(by default only under Wine on AMD; XCL_LIVE_RESERVED=1 forces them)".
Checked and fine
  • reserved_spares (vram.rs ~828) parses the value, defaults to 2 and caps it at 16. 0 makes spares_to_make return 0, so none are kept.
  • The rest matches the doc comment (~825-827): spares are made next to a placement, and enter the pool once the mapping queue passes a Signal after them.
  • One commit with a README: subject. No other open PR documents this variable.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7379406182 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3787#issuecomment-7379406182). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T13:09:48Z. --- **Review** of `dbf4c5cc` (code reading only, not a merge-check; draft) · 2 nits **In short:** The PR adds an `XCL_RESERVED_SPARES` bullet to the README switches list. The default, the cap and the meaning of `0` match `reserved_spares` in `hle/d3d12x/vram.rs` on `main`. Two small points: the bullet's indentation, and "where live reserved placements are on" says nothing about when that is. #### Nit 1. **The bullet is indented one space.** ` - XCL_RESERVED_SPARES` (`README.md` ~356) starts with one space, where the other switches start with two (` - `), so it may render outside the switches sub-list. Use ` - `. The continuation lines at 4 spaces are right. 2. **Say when live reserved placements are on.** `live_reserved_for` (`vram.rs` ~758) turns them on by default only under Wine on an AMD adapter. `XCL_LIVE_RESERVED=1` / `0` forces them on or off, and `XCL_RESERVED_POOL=0` turns them off. Without that, a reader cannot tell whether the switch does anything on their machine. Add "(by default only under Wine on AMD; `XCL_LIVE_RESERVED=1` forces them)". <details><summary>Checked and fine</summary> - `reserved_spares` (`vram.rs` ~828) parses the value, defaults to 2 and caps it at 16. `0` makes `spares_to_make` return 0, so none are kept. - The rest matches the doc comment (~825-827): spares are made next to a placement, and enter the pool once the mapping queue passes a Signal after them. - One commit with a `README:` subject. No other open PR documents this variable. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>
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/3787:upstream-pr/3787'
git switch 'upstream-pr/3787'

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