README: document XCL_VRAM_KEEP_SPARE_POOLS #3801

Closed
romeawayfromhome-rgb wants to merge 1 commit from upstream-pr/3801 into main
romeawayfromhome-rgb commented 2026-12-03 17:45:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-12-03T17:45:22Z.


Documents XCL_VRAM_KEEP_SPARE_POOLS, 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_VRAM_KEEP_SPARE_POOLS 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 e99b0bd: keep_spare_pools() parses the value as a usize and falls back to 1; empty-pool reclaim keeps up to that many completely empty pool heaps of each class warm, so 0 keeps none. In that tree the variable name appears only in vram.rs; the README on main and amd-dev has no mention of it, and PR/issue search found no duplicate PR.

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:5631847649 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3801). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-12-03T17:45:22Z. --- Documents `XCL_VRAM_KEEP_SPARE_POOLS`, 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_VRAM_KEEP_SPARE_POOLS` 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 `e99b0bd`: `keep_spare_pools()` parses the value as a `usize` and falls back to 1; empty-pool reclaim keeps up to that many completely empty pool heaps of each class warm, so `0` keeps none. In that tree the variable name appears only in `vram.rs`; the README on `main` and `amd-dev` has no mention of it, and PR/issue search found no duplicate PR. **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 17:46:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-03T17:46:14Z.


Review of 0b47c9cd (code reading only, not a merge-check; draft) · 3 nits

In short: This is the third PR with this bullet, after the closed #3799 and #3800. The text is the same, and it still matches the code. The bullet is still indented 4 spaces, so it is still a sub-item of XCL_WAIT_TIMEOUT_MS. The two other small points from those reviews still apply.

Nit

  1. The bullet is still nested under the previous switch. The switches in this list are - (2 spaces), and their continuation lines are 4 spaces. For example, - \XCL_SKIP_BINK`: …is followed by intros), …. A -at 4 spaces, as here, opens a sub-list inside theXCL_WAIT_TIMEOUT_MS` item. Change the first line to 2 spaces and the second to 4. It is enough to push the fix to this PR's branch; a new PR is not needed each time.
  2. "of each class" does not say what the classes are. reclaim_empty_heaps counts the kept heaps per heap_evictable class (vram.rs ~1869): evictable pool heaps and the rest.
  3. Same insertion point as #3794. Both add a bullet right after XCL_WAIT_TIMEOUT_MS, so whichever lands second has a one-line conflict.
Checked and fine
  • The content matches keep_spare_pools (vram.rs ~2071): it trims and parses a usize, and falls back to 1. 0 keeps none. Heaps are 64 MiB (1024 × 64 KiB), and only completely empty ones above the count are freed.
  • The only change is two lines of README.

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

<!-- greyfinch-sync:ivall/xcl:comment:7387033650 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3801#issuecomment-7387033650). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T17:46:14Z. --- **Review** of `0b47c9cd` (code reading only, not a merge-check; draft) · 3 nits **In short:** This is the third PR with this bullet, after the closed #3799 and #3800. The text is the same, and it still matches the code. The bullet is still indented 4 spaces, so it is still a sub-item of `XCL_WAIT_TIMEOUT_MS`. The two other small points from those reviews still apply. #### Nit 1. **The bullet is still nested under the previous switch.** The switches in this list are ` - ` (2 spaces), and their continuation lines are 4 spaces. For example, ` - \`XCL_SKIP_BINK\`: …` is followed by ` intros), …`. A `-` at 4 spaces, as here, opens a sub-list inside the `XCL_WAIT_TIMEOUT_MS` item. Change the first line to 2 spaces and the second to 4. It is enough to push the fix to this PR's branch; a new PR is not needed each time. 2. **"of each class" does not say what the classes are.** `reclaim_empty_heaps` counts the kept heaps per `heap_evictable` class (`vram.rs` ~1869): evictable pool heaps and the rest. 3. **Same insertion point as #3794.** Both add a bullet right after `XCL_WAIT_TIMEOUT_MS`, so whichever lands second has a one-line conflict. <details><summary>Checked and fine</summary> - The content matches `keep_spare_pools` (`vram.rs` ~2071): it trims and parses a `usize`, and falls back to 1. `0` keeps none. Heaps are 64 MiB (1024 × 64 KiB), and only completely empty ones above the count are freed. - The only change is two lines of README. </details> <sub>Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.</sub>

Pull request closed

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!3801
No description provided.