um: VICTORY_UM_VRAM_MB overrides the 1 GiB VRAM cap for title memory #15

Closed
github-bot wants to merge 1 commit from gh-pr/15/head into gh-pr/15/base
Owner

@⁠LOCKhart07 on GitHub · 2026-11-29 21:16 UTC · original
LOCKhart07:um-vram-cap → main · +11 −1 · 1 files · 1 commits · closed without merging

VRAM_CAP_BYTES (1 GiB) is checked per allocation (LIVE_VRAM + bytes <= cap), so the title's combined block (~2.1 GB here) never fits and goes to RAM whole; only ~144 MB of title memory ends up in VRAM. The card then reads that block over PCIe every frame.

This adds VICTORY_UM_VRAM_MB to override the cap (0 = no cap). The default stays 1 GiB, so nothing changes unless it's set.

Measured (RX 9070 XT 16 GB, Ryzen 7 7800X3D, Fedora 44, Wine 11.21 Staging, Series X, 2560x1440, RT off; same save and camera, ~8.5k draws/frame, hands-off scripted runs):

title memory RAM / VRAM median frame
88c9c29, default cap 11,831 / 144 MB 26.0 ms (38.4 fps)
88c9c29, VICTORY_UM_VRAM_MB=4096 9,632 / 2,343 MB 24.5 ms (40.8 fps)
5a60834 (no cap, VICTORY_UNIFIED_VRAM=1) 9,632 / 2,279 MB 20.8 ms (48 fps)

Card memory peaked around 11–12 GB of 16 with the block in VRAM. Maybe the default could scale with the adapter's VRAM budget (e.g. off below 12 GB, uncapped at 16 GB+) instead of a fixed 1 GiB.

Each row is a full 8-minute run with in-run A/A phases (halves within 0.3–0.4% of each other), so the ~1.5 ms is well outside the noise.

The rest of the gap to 5a60834 (~3.7 ms) is something else; I haven't isolated it yet.

🤖 Generated with Claude Code

**@⁠LOCKhart07** on GitHub · 2026-11-29 21:16 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/15) `LOCKhart07:um-vram-cap` → `main` · +11 −1 · 1 files · 1 commits · closed without merging `VRAM_CAP_BYTES` (1 GiB) is checked per allocation (`LIVE_VRAM + bytes <= cap`), so the title's combined block (~2.1 GB here) never fits and goes to RAM whole; only ~144 MB of title memory ends up in VRAM. The card then reads that block over PCIe every frame. This adds `VICTORY_UM_VRAM_MB` to override the cap (`0` = no cap). The default stays 1 GiB, so nothing changes unless it's set. **Measured** (RX 9070 XT 16 GB, Ryzen 7 7800X3D, Fedora 44, Wine 11.21 Staging, Series X, 2560x1440, RT off; same save and camera, ~8.5k draws/frame, hands-off scripted runs): | | title memory RAM / VRAM | median frame | |---|---|---| | 88c9c29, default cap | 11,831 / 144 MB | 26.0 ms (38.4 fps) | | 88c9c29, `VICTORY_UM_VRAM_MB=4096` | 9,632 / 2,343 MB | 24.5 ms (40.8 fps) | | 5a60834 (no cap, `VICTORY_UNIFIED_VRAM=1`) | 9,632 / 2,279 MB | 20.8 ms (48 fps) | Card memory peaked around 11–12 GB of 16 with the block in VRAM. Maybe the default could scale with the adapter's VRAM budget (e.g. off below 12 GB, uncapped at 16 GB+) instead of a fixed 1 GiB. Each row is a full 8-minute run with in-run A/A phases (halves within 0.3–0.4% of each other), so the ~1.5 ms is well outside the noise. The rest of the gap to 5a60834 (~3.7 ms) is something else; I haven't isolated it yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The cap is checked per allocation, so the title's ~2.1 GB combined block never fits and goes to RAM whole (144 MB of title memory in VRAM on a 9070 XT). VICTORY_UM_VRAM_MB=<MB> overrides it (0: no cap); unset keeps 1 GiB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DJe9WTewVmLUUPkT6dTccK
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:41:11 +00:00
github-bot closed this pull request 2026-12-01 07:41:11 +00:00
Author
Owner

@⁠LOCKhart07 on GitHub · 2026-11-29 21:40 UTC · original

Closing: superseded by 109cdb5, where the room for title memory scales with the card (visible VRAM − 12 GiB). On a 16 GB 9070 XT that gives ~4 GB, so the ~2.1 GB combined block fits in VRAM, same as this PR did with VICTORY_UM_VRAM_MB=4096. Thanks!

**@⁠LOCKhart07** on GitHub · 2026-11-29 21:40 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/15#issuecomment-7263057439) Closing: superseded by 109cdb5, where the room for title memory scales with the card (visible VRAM − 12 GiB). On a 16 GB 9070 XT that gives ~4 GB, so the ~2.1 GB combined block fits in VRAM, same as this PR did with VICTORY_UM_VRAM_MB=4096. Thanks!

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.