README: document XCL_VRAM_KEEP_SPARE_POOLS #3802

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

Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-12-03T17:52: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:5631959043 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3802). Originally posted by [romeawayfromhome-rgb](https://github.com/romeawayfromhome-rgb) on 2026-12-03T17:52: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:54:52 +00:00 (Migrated from github.com)

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


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

In short: This is the fourth PR with this bullet, after the closed #3799, #3800 and #3801. The indentation is now right: the bullet is a switch of its own, like the ones around it. The content matches the code. Two small points from the earlier reviews remain, and nothing blocks it.

Nit

  1. "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. "(evictable and not)" would tell a reader what the 1 counts.
  2. 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
  • Earlier nit fixed: the bullet is - with a 4-space continuation line, like XCL_SKIP_BINK and the other switches, so it no longer renders under XCL_WAIT_TIMEOUT_MS.
  • 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:7387275176 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3802#issuecomment-7387275176). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-03T17:54:52Z. --- **Review** of `1e4616d6` (code reading only, not a merge-check; draft) · 2 nits **In short:** This is the fourth PR with this bullet, after the closed #3799, #3800 and #3801. The indentation is now right: the bullet is a switch of its own, like the ones around it. The content matches the code. Two small points from the earlier reviews remain, and nothing blocks it. #### Nit 1. **"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. "(evictable and not)" would tell a reader what the 1 counts. 2. **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> - Earlier nit fixed: the bullet is ` - ` with a 4-space continuation line, like `XCL_SKIP_BINK` and the other switches, so it no longer renders under `XCL_WAIT_TIMEOUT_MS`. - 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>
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/3802:upstream-pr/3802'
git switch 'upstream-pr/3802'

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