xmem: keep a stretch below 4 GiB for the title's 32-bit graphics heap (upstream 03d164e) #41

Manually merged
github merged 1 commit from github-bot/gh-41 into main 2026-12-05 18:19:54 +00:00 AGit
Owner

@⁠Kal0s-design on GitHub · 2026-12-05 16:57 UTC · original
Kal0s-design:port/xmem-low-window → main · +217 −16 · 2 files · 1 commits · merged 2026-12-05 18:17 UTC

This brings over upstream 03d164e by staticman256 unchanged, with the authorship kept.

The title asks once for a 185 MB placeholder below 4 GiB for its 32-bit graphics heap, after its DLLs, the graphics driver and any overlays are loaded. Whatever lands below 4 GiB before that can leave no single stretch that big even though gigabytes are free in pieces, and the call then fails with "XMemVirtualAlloc refused". The commit keeps 256 MB below 4 GiB as one placeholder from the very start of the run and splits the title's heap off it. When an allocation is still refused, it also logs what is holding that space. VICTORY_LOW_WINDOW_MB sets the size, and 0 turns it off.

I can't say for sure it explains any of the startup failures reported here, since the full logs aren't attached to them, but it is a clean crash fix from upstream. It applies cleanly on main, and the existing xmem tests in victory-hle pass with it. Clippy reports nothing in xmem.rs.

AI-assisted: yes

🤖 Generated with Claude Code

**@⁠Kal0s-design** on GitHub · 2026-12-05 16:57 UTC · [original](https://github.com/VGLALALA/ReVictory-RDNA3/pull/41) `Kal0s-design:port/xmem-low-window` → `main` · +217 −16 · 2 files · 1 commits · merged 2026-12-05 18:17 UTC This brings over upstream 03d164e by staticman256 unchanged, with the authorship kept. The title asks once for a 185 MB placeholder below 4 GiB for its 32-bit graphics heap, after its DLLs, the graphics driver and any overlays are loaded. Whatever lands below 4 GiB before that can leave no single stretch that big even though gigabytes are free in pieces, and the call then fails with "XMemVirtualAlloc refused". The commit keeps 256 MB below 4 GiB as one placeholder from the very start of the run and splits the title's heap off it. When an allocation is still refused, it also logs what is holding that space. VICTORY_LOW_WINDOW_MB sets the size, and 0 turns it off. I can't say for sure it explains any of the startup failures reported here, since the full logs aren't attached to them, but it is a clean crash fix from upstream. It applies cleanly on main, and the existing xmem tests in victory-hle pass with it. Clippy reports nothing in xmem.rs. AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 16:58:23 +00:00
github manually merged commit 9d87778999 into main 2026-12-05 18:19:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.