xmem: keep a stretch below 4 GiB for the title's 32-bit graphics heap (upstream 03d164e) #41
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!41
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-41"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCThis 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