GPU-bound at low occupancy — RGP suggests shader waves wait on title memory read from system RAM (9.6 GB in RAM vs 2.3 GB in VRAM) #14

Open
opened 2026-12-01 07:41:10 +00:00 by github-bot · 4 comments
Owner

@⁠grykom on GitHub · 2026-11-29 21:14 UTC · original

RX 9070 (RDNA 4): GPU-bound at low occupancy — RGP suggests shader waves wait on title memory read from system RAM (9.6 GB in RAM vs 2.3 GB in VRAM)

Thanks for xmem — it is clearly faster here than the Windows forks we used before. We spent an evening measuring where the remaining frame time goes and wanted to share the data, since it may point at something structural.

Setup

  • RX 9070 (Sapphire Pulse, 16 GB, RDNA 4 / gfx1201), Ryzen 7 7800X3D, 32 GB RAM, PCIe 5.0 x16 (verified), IOMMU domain for the GPU = identity
  • CachyOS, kernel 7.3.6, Wine 11.23 (system; its wineserver already has the view tree, so we skipped patches/wine.patch), your Mesa 26.3.1 + patches/mesa.patch, vkd3d-proton as pinned
  • xmem ca97da2, diag build, Series X profile, run.sh play defaults
  • Repeatable scripted test: early prison-cell save, VICTORY_KEYS (Enter, then turn the camera toward a scripted NPC scene), MangoHud log + VIctory per-frame log lines + amdgpu_top GRBM sampling. Run-to-run spread ±0.2 fps.

What we measured (cell scene, after the camera turn)

output (game's 2/3 scaler → render) fps frame time
3840x2160 (2560x1440) 23.9 41.7 ms
2560x1440 (~1706x960) 30.7 32.4 ms
1920x1080 (1280x720) 34.0 29.3 ms
  • Linear fit: frame ≈ 25 ms fixed + 4.5 ms per render megapixel. At 720p ~85% of the frame does not depend on resolution.
  • VIctory log: card ~100% busy, submitting thread waits 13–27 ms per frame for the card; ~5,200 mesh draws, ~6,600 indirect executions, ~820 barrier groups, ~168 clamp passes per frame.
  • amdgpu_top GRBM at every resolution: Graphics pipe / CP gfx / CP fetch 98–99%, SPI 91–95%, TA 70–78%; memory controller activity only 4–10%; board power drops with resolution (167 W → 131 W) at the same ~3.05 GHz.

Switch tests (all within noise unless noted):

  • VICTORY_BARRIER_TEST=indirect: no change → clamp waits are free.
  • VICTORY_BARRIER_TEST=groups: +11% (cell) / +28% (standing) but heavy visual corruption → upper bound for the title's barriers ~4–8 ms.
  • VICTORY_JOIN_BARRIERS=1, VICTORY_PORT_CONSTANTS_ORDER=0: no change (clamp pass count stays 168 with INDIRECT_BATCH=3).
  • MESA_VK_TRACE=ctxroll: 1,256 context rolls per frame, only 7 redundant → ~1–2 ms at most, not the cause.

RGP capture (one frame, cell scene, 1080p output)

Overview:

  • GPU idle 4.35%; all work on the graphics queue, compute queue empty.
  • 12,873 events: vkCmdDispatch 4,147, vkCmdDrawMeshTasksIndirectEXT 2,963, vkCmdPipelineBarrier 1,819, vkCmdDispatchIndirect 1,269, vkCmdDrawMeshTasksEXT 1,060, vkCmdCopyImage 547, vkCmdDraw 488. Almost every draw has instance count 1.
  • Barriers: 0.12% of the frame.
  • Wavefront occupancy over the frame: mostly ~25–40%, long stretches of thin VS/PS spikes at 10–30%; only a few compute stretches reach 75–100%.

Most expensive events: a block of ~170 small vkCmdDispatch(1..98,1,1) (CS, 120 VGPRs, occupancy 12/16, ~5 waves each) that each take 0.9–2.1 ms, running concurrently (~2.1 ms for the block, ~5% of the frame).

The interesting part — zooming into a low-occupancy stretch, many events are in flight while occupancy is near zero. The events are tiny but every wave lives for tens of microseconds:

event waves threads duration
vkCmdDispatchIndirect(59,1,1) 59 3,776 23.9 µs
vkCmdDrawMeshTasksIndirectEXT 66 mesh, 0 PS 4,224 27.8 µs
vkCmdDrawMeshTasksEXT 2 mesh + 1 PS 134 33.3 µs
vkCmdDrawMeshTasksIndirectEXT 4 mesh, 0 PS 256 42.5 µs

A 4-wave mesh draw taking 42 µs looks latency-bound, not work-bound.

Likely cause: title memory the GPU reads lives in system RAM

The diag log says:

unified memory: 9628 MB in RAM, 2279 MB in VRAM in 28 pools ...; 12663 title buffers and windows in place

In victory-hle/src/modules/xmem.rs, XMemAllocatePhysicalPages always calls um::pool(size, false), so the title's big physical pool (6,236 MB, flags 0x380, mapped by the title as protection 0x2004) goes to the HOST_VISIBLE | HOST_COHERENT | HOST_CACHED type. Only write-combined memory (0x2404, ~2.2 + 1.6 GB) gets VRAM. If buffers the shaders chase (meshlets, records, constants) sit in snooped system memory, every dependent read goes over PCIe with a coherence check — which would match all of the above: resolution-independent cost, low VRAM controller activity, low power, long-lived tiny waves, cheap barriers.

We tried the naive version (local switch: um::pool(size, true) for XMemAllocatePhysicalPages). The pool did land in VRAM (2420 MB in RAM, 9410 MB in VRAM), but the title sat on a black screen with ~4 cores busy, GPU ~5% and zero layer work — the title's own CPU code reads that memory, and CPU reads over the BAR are far too slow. So the whole pool can't move.

Questions / ideas

  1. Does this match what you see on your machine (9070 XT)? Is the RAM/VRAM split above expected?
  2. Would a split placement be feasible — VRAM only for ranges the GPU reads and the CPU only writes (or never touches after setup), RAM for the rest? We don't know the title's allocator well enough to tell which ranges those are.
  3. Is there a cheap way to get per-range GPU read traffic so the hot ranges can be identified? We can run experiments and RGP captures on our side.

Side note: RGP on this setup (in case others try)

  • With MESA_VK_TRACE=rgp, RADV sets a profiling pstate per device. The first RADV device in the process (presumably xmem's own one from um.rs) takes it, vkd3d-proton's device then gets radv/amdgpu: failed to set new pstate. (-16), device creation fails, and the layer silently falls back to the iGPU (here a Ryzen 610M), which then ate all system RAM and froze the machine. Check for host D3D12 adapter adapter="AMD Radeon(TM) Graphics" in the log.
  • RADV_PROFILE_PSTATE=none avoids the failure, but then RADV cancels the capture ("hang condition", not in a profiling pstate). Forcing profile_peak through sysfs instead made device creation fail with -16 again (same fallback to the iGPU).
  • What worked: a separate Mesa build used only for capturing (VK_DRIVER_FILES=...), with radv_sqtt_init not failing when radv_device_acquire_performance_counters returns busy (the first device has already set the profiling pstate), plus VICTORY_PREPARE_PIPELINES=0 (SQTT changes the driver hash, so all ~94k prepared pipelines would recompile), 64 MiB SQTT buffer, instruction timing and cache counters off.

Happy to share the .rgp capture or run anything you'd like measured.

**@⁠grykom** on GitHub · 2026-11-29 21:14 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/14) ## RX 9070 (RDNA 4): GPU-bound at low occupancy — RGP suggests shader waves wait on title memory read from system RAM (9.6 GB in RAM vs 2.3 GB in VRAM) Thanks for xmem — it is clearly faster here than the Windows forks we used before. We spent an evening measuring where the remaining frame time goes and wanted to share the data, since it may point at something structural. ### Setup - RX 9070 (Sapphire Pulse, 16 GB, RDNA 4 / gfx1201), Ryzen 7 7800X3D, 32 GB RAM, PCIe 5.0 x16 (verified), IOMMU domain for the GPU = identity - CachyOS, kernel 7.3.6, Wine 11.23 (system; its wineserver already has the view tree, so we skipped `patches/wine.patch`), your Mesa 26.3.1 + `patches/mesa.patch`, vkd3d-proton as pinned - xmem `ca97da2`, diag build, Series X profile, `run.sh play` defaults - Repeatable scripted test: early prison-cell save, `VICTORY_KEYS` (Enter, then turn the camera toward a scripted NPC scene), MangoHud log + VIctory per-frame log lines + `amdgpu_top` GRBM sampling. Run-to-run spread ±0.2 fps. ### What we measured (cell scene, after the camera turn) | output (game's 2/3 scaler → render) | fps | frame time | |---|---|---| | 3840x2160 (2560x1440) | 23.9 | 41.7 ms | | 2560x1440 (~1706x960) | 30.7 | 32.4 ms | | 1920x1080 (1280x720) | 34.0 | 29.3 ms | - Linear fit: frame ≈ **25 ms fixed + 4.5 ms per render megapixel**. At 720p ~85% of the frame does not depend on resolution. - VIctory log: card ~100% busy, submitting thread waits 13–27 ms per frame for the card; ~5,200 mesh draws, ~6,600 indirect executions, ~820 barrier groups, ~168 clamp passes per frame. - `amdgpu_top` GRBM at every resolution: Graphics pipe / CP gfx / CP fetch 98–99%, SPI 91–95%, TA 70–78%; **memory controller activity only 4–10%**; board power drops with resolution (167 W → 131 W) at the same ~3.05 GHz. Switch tests (all within noise unless noted): - `VICTORY_BARRIER_TEST=indirect`: no change → clamp waits are free. - `VICTORY_BARRIER_TEST=groups`: +11% (cell) / +28% (standing) but heavy visual corruption → upper bound for the title's barriers ~4–8 ms. - `VICTORY_JOIN_BARRIERS=1`, `VICTORY_PORT_CONSTANTS_ORDER=0`: no change (clamp pass count stays 168 with `INDIRECT_BATCH=3`). - `MESA_VK_TRACE=ctxroll`: 1,256 context rolls per frame, only 7 redundant → ~1–2 ms at most, not the cause. ### RGP capture (one frame, cell scene, 1080p output) Overview: - GPU idle 4.35%; **all work on the graphics queue, compute queue empty**. - 12,873 events: `vkCmdDispatch` 4,147, `vkCmdDrawMeshTasksIndirectEXT` 2,963, `vkCmdPipelineBarrier` 1,819, `vkCmdDispatchIndirect` 1,269, `vkCmdDrawMeshTasksEXT` 1,060, `vkCmdCopyImage` 547, `vkCmdDraw` 488. Almost every draw has instance count 1. - **Barriers: 0.12% of the frame.** - Wavefront occupancy over the frame: mostly ~25–40%, long stretches of thin VS/PS spikes at 10–30%; only a few compute stretches reach 75–100%. Most expensive events: a block of ~170 small `vkCmdDispatch(1..98,1,1)` (CS, 120 VGPRs, occupancy 12/16, ~5 waves each) that each take 0.9–2.1 ms, running concurrently (~2.1 ms for the block, ~5% of the frame). The interesting part — zooming into a low-occupancy stretch, many events are in flight while occupancy is near zero. The events are tiny but **every wave lives for tens of microseconds**: | event | waves | threads | duration | |---|---|---|---| | `vkCmdDispatchIndirect(59,1,1)` | 59 | 3,776 | 23.9 µs | | `vkCmdDrawMeshTasksIndirectEXT` | 66 mesh, 0 PS | 4,224 | 27.8 µs | | `vkCmdDrawMeshTasksEXT` | 2 mesh + 1 PS | 134 | 33.3 µs | | `vkCmdDrawMeshTasksIndirectEXT` | 4 mesh, 0 PS | 256 | 42.5 µs | A 4-wave mesh draw taking 42 µs looks latency-bound, not work-bound. ### Likely cause: title memory the GPU reads lives in system RAM The diag log says: ``` unified memory: 9628 MB in RAM, 2279 MB in VRAM in 28 pools ...; 12663 title buffers and windows in place ``` In `victory-hle/src/modules/xmem.rs`, `XMemAllocatePhysicalPages` always calls `um::pool(size, false)`, so the title's big physical pool (6,236 MB, flags `0x380`, mapped by the title as protection `0x2004`) goes to the `HOST_VISIBLE | HOST_COHERENT | HOST_CACHED` type. Only write-combined memory (`0x2404`, ~2.2 + 1.6 GB) gets VRAM. If buffers the shaders chase (meshlets, records, constants) sit in snooped system memory, every dependent read goes over PCIe with a coherence check — which would match all of the above: resolution-independent cost, low VRAM controller activity, low power, long-lived tiny waves, cheap barriers. We tried the naive version (local switch: `um::pool(size, true)` for `XMemAllocatePhysicalPages`). The pool did land in VRAM (`2420 MB in RAM, 9410 MB in VRAM`), but the title sat on a black screen with ~4 cores busy, GPU ~5% and zero layer work — the title's own CPU code reads that memory, and CPU reads over the BAR are far too slow. So the whole pool can't move. ### Questions / ideas 1. Does this match what you see on your machine (9070 XT)? Is the RAM/VRAM split above expected? 2. Would a split placement be feasible — VRAM only for ranges the GPU reads and the CPU only writes (or never touches after setup), RAM for the rest? We don't know the title's allocator well enough to tell which ranges those are. 3. Is there a cheap way to get per-range GPU read traffic so the hot ranges can be identified? We can run experiments and RGP captures on our side. ### Side note: RGP on this setup (in case others try) - With `MESA_VK_TRACE=rgp`, RADV sets a profiling pstate per device. The first RADV device in the process (presumably xmem's own one from `um.rs`) takes it, vkd3d-proton's device then gets `radv/amdgpu: failed to set new pstate. (-16)`, device creation fails, and the layer **silently falls back to the iGPU** (here a Ryzen 610M), which then ate all system RAM and froze the machine. Check for `host D3D12 adapter adapter="AMD Radeon(TM) Graphics"` in the log. - `RADV_PROFILE_PSTATE=none` avoids the failure, but then RADV cancels the capture ("hang condition", not in a profiling pstate). Forcing `profile_peak` through sysfs instead made device creation fail with -16 again (same fallback to the iGPU). - What worked: a separate Mesa build used only for capturing (`VK_DRIVER_FILES=...`), with `radv_sqtt_init` not failing when `radv_device_acquire_performance_counters` returns busy (the first device has already set the profiling pstate), plus `VICTORY_PREPARE_PIPELINES=0` (SQTT changes the driver hash, so all ~94k prepared pipelines would recompile), 64 MiB SQTT buffer, instruction timing and cache counters off. Happy to share the `.rgp` capture or run anything you'd like measured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 07:41:10 +00:00
Author
Owner

@⁠SemmerSky on GitHub · 2026-11-30 16:58 UTC · original

RX 7900 XTX (RDNA 3, 24 GB): page residency (VICTORY_PAGES) measured, A/B in a repeatable scene

A data point from different hardware for the residency work in 90338ca.

Setup

  • RX 7900 XTX 24 GB (gfx1100), Ryzen 9 7950X3D, 30 GB RAM, Fedora 45 (kernel 7.3.6), Proton Experimental, Mesa 26.3.1 + mesa.patch, vkd3d-proton + both patches
  • baf0468 (plus #27 locally), diag build (for VICTORY_KEYS), Series X, 2560x1440, sound muted
  • Log line: card room for the title 12272 MB

Method (repeatable, no hands)

  • No story save, so every start goes into the prologue cutscene. VICTORY_KEYS=20:Enter,30:Enter,40:Enter reaches it ~60 s after start.
  • Measured from 10 s to 200 s after the first frame with ≥1000 draws, using the stats: frame lines. Menus are excluded. Each run is the same scene with the same camera.
  • Headless gamescope at 2560x1440, so nothing else on the desktop competes.
  • Runs alternate PAGES=1 / PAGES=0. Two repeats of the same setting differed by ~1.5 % in mean fps.

Results (fps mean / worst 10 %)

VICTORY_PAGES=1 VICTORY_PAGES=0
RT off, run 1 / 2 52.3 / 28.9 · 53.5 / 33.7 54.6 / 36.5 · 53.8 / 35.2
RT on (card node test on=true), run 1 / 2 44.6 / 25.6 · 44.9 / 26.9 45.5 / 30.1 · 46.3 / 31.7

gpu_wait_ms is the same with and without paging (RT off ~6.5 ms, RT on ~8.5 ms).

Residency at the end of a run with RT on: 3676 MB of 9330 MB of paged title memory on the card, 2831 MB of the card free, 16055 pages moved up, 3771 down when the processor touched them, 0 down cold, 0 down for room. With RT off it's 3.25 GB up and ~2,100 down.

Reading

  • In this scene, putting ~3.3–3.7 GB of paged title memory on the card does not change mean fps or GPU wait on this card.
  • The worst 10 % of frames are worse with paging in all 4 pairs (−4 to −7 fps). The thousands of pages that go back down when the processor touches them seem a likely cause, but I haven't verified that.
  • Free VRAM is only ~2.8–3.4 GB on a 24 GB card, so the 12 GB "room" is never the limit here.

Earlier data (cd811c1, windowed, RT off): resolution scaling in the same scene

output fps mean frame
2560x1440 48.3 / 47.6 (2 runs) 22.7 / 24.0 ms
1920x1080 53.4 21.0 ms
1280x720 59.0 19.1 ms

That's ~18 ms fixed per frame and ~1.3 ms per megapixel, the same shape as the RX 9070 numbers above. On RDNA 3 too, most of the frame doesn't depend on resolution.

Caveats

  • One scene, a cutscene, and two runs per cell. An open-world drive with heavy streaming could behave differently.
  • The before/after across commits changed Mesa, vkd3d and windowed→headless at the same time. Only the PAGES A/B is controlled.

Two small fixes I ran into on the way: #34 (MUTE=1 as an argument didn't mute) and #35 (./setup.sh vkd3d didn't copy the DLLs into an existing prefix, which after 90338ca silently leaves the card's node test off).

Happy to run other settings or scenes, or add a VICTORY_* diag line, if that helps narrow it down.

**@⁠SemmerSky** on GitHub · 2026-11-30 16:58 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/14#issuecomment-7285519904) ## RX 7900 XTX (RDNA 3, 24 GB): page residency (`VICTORY_PAGES`) measured, A/B in a repeatable scene A data point from different hardware for the residency work in 90338ca. ### Setup - RX 7900 XTX 24 GB (gfx1100), Ryzen 9 7950X3D, 30 GB RAM, Fedora 45 (kernel 7.3.6), Proton Experimental, Mesa 26.3.1 + `mesa.patch`, vkd3d-proton + both patches - `baf0468` (plus #27 locally), diag build (for `VICTORY_KEYS`), Series X, 2560x1440, sound muted - Log line: `card room for the title 12272 MB` ### Method (repeatable, no hands) - No story save, so every start goes into the prologue cutscene. `VICTORY_KEYS=20:Enter,30:Enter,40:Enter` reaches it ~60 s after start. - Measured from 10 s to 200 s after the first frame with ≥1000 draws, using the `stats: frame` lines. Menus are excluded. Each run is the same scene with the same camera. - Headless gamescope at 2560x1440, so nothing else on the desktop competes. - Runs alternate `PAGES=1` / `PAGES=0`. Two repeats of the same setting differed by ~1.5 % in mean fps. ### Results (fps mean / worst 10 %) | | `VICTORY_PAGES=1` | `VICTORY_PAGES=0` | |---|---|---| | RT off, run 1 / 2 | 52.3 / 28.9 · 53.5 / 33.7 | 54.6 / 36.5 · 53.8 / 35.2 | | RT on (card node test `on=true`), run 1 / 2 | 44.6 / 25.6 · 44.9 / 26.9 | 45.5 / 30.1 · 46.3 / 31.7 | `gpu_wait_ms` is the same with and without paging (RT off ~6.5 ms, RT on ~8.5 ms). Residency at the end of a run with RT on: `3676 MB of 9330 MB of paged title memory on the card`, `2831 MB of the card free`, 16055 pages moved up, 3771 down when the processor touched them, 0 down cold, 0 down for room. With RT off it's 3.25 GB up and ~2,100 down. ### Reading - In this scene, putting ~3.3–3.7 GB of paged title memory on the card does not change mean fps or GPU wait on this card. - The worst 10 % of frames are worse with paging in all 4 pairs (−4 to −7 fps). The thousands of pages that go back down when the processor touches them seem a likely cause, but I haven't verified that. - Free VRAM is only ~2.8–3.4 GB on a 24 GB card, so the 12 GB "room" is never the limit here. ### Earlier data (cd811c1, windowed, RT off): resolution scaling in the same scene | output | fps mean | frame | |---|---|---| | 2560x1440 | 48.3 / 47.6 (2 runs) | 22.7 / 24.0 ms | | 1920x1080 | 53.4 | 21.0 ms | | 1280x720 | 59.0 | 19.1 ms | That's ~18 ms fixed per frame and ~1.3 ms per megapixel, the same shape as the RX 9070 numbers above. On RDNA 3 too, most of the frame doesn't depend on resolution. ### Caveats - One scene, a cutscene, and two runs per cell. An open-world drive with heavy streaming could behave differently. - The before/after across commits changed Mesa, vkd3d and windowed→headless at the same time. Only the `PAGES` A/B is controlled. Two small fixes I ran into on the way: #34 (`MUTE=1` as an argument didn't mute) and #35 (`./setup.sh vkd3d` didn't copy the DLLs into an existing prefix, which after 90338ca silently leaves the card's node test off). Happy to run other settings or scenes, or add a `VICTORY_*` diag line, if that helps narrow it down.
Author
Owner

@⁠Ritualcolt on GitHub · 2026-11-30 22:05 UTC · original

Open-world heavy-streaming A/B on RX 7900 XTX (24 GB, RDNA 3) — baf0468, 2560x1440 (0.75 render scale), RT off (~8,500–10,100 draws/f):
• VICTORY_PAGES=1 (default): 14.5–15.1 FPS (66.3–69.0 ms), 1% low: 5.2 FPS, Worst: 72.4–157.1 ms (14–25 hitches), GPU / Wait: 54.5–61.8 / 4.4–11.1 ms, xmem pool: V3.2G R8.5G
• VICTORY_PAGES=0: 15.8 FPS (63.5 ms), 1% low: 6.5 FPS, Worst: 63.5 ms (12 hitches), GPU / Wait: 53.4 / 10.5 ms, xmem pool: V3.0G R8.7G
Confirms the cutscene A/B behavior holds up in heavy open-world streaming too: disabling background page migration (VICTORY_PAGES=0) improves 1% low (+25%) and cuts worst-frame hitches in half while keeping identical ~53 ms GPU wave time at ~8,558 draws/f.

**@⁠Ritualcolt** on GitHub · 2026-11-30 22:05 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/14#issuecomment-7293322384) Open-world heavy-streaming A/B on RX 7900 XTX (24 GB, RDNA 3) — baf0468, 2560x1440 (0.75 render scale), RT off (~8,500–10,100 draws/f): • VICTORY_PAGES=1 (default): 14.5–15.1 FPS (66.3–69.0 ms), 1% low: 5.2 FPS, Worst: 72.4–157.1 ms (14–25 hitches), GPU / Wait: 54.5–61.8 / 4.4–11.1 ms, xmem pool: V3.2G R8.5G • VICTORY_PAGES=0: 15.8 FPS (63.5 ms), 1% low: 6.5 FPS, Worst: 63.5 ms (12 hitches), GPU / Wait: 53.4 / 10.5 ms, xmem pool: V3.0G R8.7G Confirms the cutscene A/B behavior holds up in heavy open-world streaming too: disabling background page migration (VICTORY_PAGES=0) improves 1% low (+25%) and cuts worst-frame hitches in half while keeping identical ~53 ms GPU wave time at ~8,558 draws/f.
Author
Owner

@⁠Aruku448 on GitHub · 2026-12-01 14:17 UTC · original

Supporting numbers from a slower card: RDNA3 (RX 7800 XT, NAVI32, 16 GB, 37bb30f, wine-staging 11.22, Series X profile, 1080p, RT off, all 94,215 pipelines warm).

unified memory: 9384 MB in RAM, 2591 MB in VRAM in 29 pools shown at 96981 places;
  7387668 maps, 1339770 unmaps; 211384 title buffers and windows in place, 91 of 64 KiB or
  more left to copies; 384641 MiB streamed from VRAM
frame: median 35 ms, 94 % of frames >= 20 ms, 11 % >= 50 ms; gpu_wait_ms 8.9; GPU busy 89 %

Same shape as yours (9.4 GB RAM vs 2.6 GB VRAM) with the same occupancy ceiling, on a card that is roughly half the speed: preparing_ms 7.6 and copy_ms 4.4 together do not explain a 35 ms frame, gpu_wait_ms 8.9 plus the GPU idle time do, and the GPU sits at 89 % while the CPU side is not saturated. That reads like the waves waiting on title memory read out of system RAM rather than on the layer's own bookkeeping, which is your conclusion.

I have not run the VICTORY_UM_VRAM_MB experiment, so I cannot add anything to the split question — if you want a second data point on it, I can put a save through it and report back.

**@⁠Aruku448** on GitHub · 2026-12-01 14:17 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/14#issuecomment-7314010844) Supporting numbers from a slower card: RDNA3 (RX 7800 XT, NAVI32, 16 GB, `37bb30f`, wine-staging 11.22, Series X profile, 1080p, RT off, all 94,215 pipelines warm). ``` unified memory: 9384 MB in RAM, 2591 MB in VRAM in 29 pools shown at 96981 places; 7387668 maps, 1339770 unmaps; 211384 title buffers and windows in place, 91 of 64 KiB or more left to copies; 384641 MiB streamed from VRAM frame: median 35 ms, 94 % of frames >= 20 ms, 11 % >= 50 ms; gpu_wait_ms 8.9; GPU busy 89 % ``` Same shape as yours (9.4 GB RAM vs 2.6 GB VRAM) with the same occupancy ceiling, on a card that is roughly half the speed: `preparing_ms` 7.6 and `copy_ms` 4.4 together do not explain a 35 ms frame, `gpu_wait_ms` 8.9 plus the GPU idle time do, and the GPU sits at 89 % while the CPU side is not saturated. That reads like the waves waiting on title memory read out of system RAM rather than on the layer's own bookkeeping, which is your conclusion. I have not run the `VICTORY_UM_VRAM_MB` experiment, so I cannot add anything to the split question — if you want a second data point on it, I can put a save through it and report back.
Author
Owner

@⁠grykom on GitHub · 2026-12-01 19:45 UTC · original

A data point for the PAGES=1 / PAGES=0 question from @⁠SemmerSky and @⁠Ritualcolt, on RX 9070 16 GB (37bb30f,
1440p, diag build, RT off, physical monitor, 7 min runs, A B B A; run-to-run spread 0.4 fps).

Prison cell:

fps 150-210 s 1 % low fps 360-420 s 1 % low cutscene 45-80 s: 1 % low / frames > 80 ms
PAGES=1 33.3 / 32.9 16.5 / 16.6 41.7 / 41.3 20.0 / 17.7 10.5 / 9.7 · 14 / 11
PAGES=0 30.0 / 29.9 15.4 / 14.9 38.9 / 39.1 17.0 / 19.4 11.8 / 11.3 · 5 / 7

Open world (Mandy save, walking then driving, one run each, played by hand on a similar route):

avg fps median 1 % low frames > 80 ms worst frame
PAGES=1 29.2 31.9 ms 9.5 121 678 ms
PAGES=0 28.7 34.5 ms 11.1 84 115 ms

So on this card it is both: in a steady scene residency is a clear win (+10 %, lows equal or better); the lows get
worse while it is moving, i.e. at the start of a scene and in the open world, where 55 % of the moved pages came back
during the run (return times in vktory6/VKtory#17). The player didn't feel a big difference in the open world;
the numbers are one run per arm, so take the open-world part as a hint.

The worst open-world frames (0.5-0.7 s) only happened with PAGES=1. We haven't checked whether they line up with
waves or with returns. A pace test (same pages per second in 200 ms steps instead of 1 s waves, and 3x faster) is
ready on our side and is the next thing we run.

**@⁠grykom** on GitHub · 2026-12-01 19:45 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/14#issuecomment-7323382785) A data point for the PAGES=1 / PAGES=0 question from @⁠SemmerSky and @⁠Ritualcolt, on RX 9070 16 GB (`37bb30f`, 1440p, diag build, RT off, physical monitor, 7 min runs, A B B A; run-to-run spread 0.4 fps). Prison cell: | | fps 150-210 s | 1 % low | fps 360-420 s | 1 % low | cutscene 45-80 s: 1 % low / frames > 80 ms | |---|---|---|---|---|---| | PAGES=1 | 33.3 / 32.9 | 16.5 / 16.6 | 41.7 / 41.3 | 20.0 / 17.7 | 10.5 / 9.7 · 14 / 11 | | PAGES=0 | 30.0 / 29.9 | 15.4 / 14.9 | 38.9 / 39.1 | 17.0 / 19.4 | 11.8 / 11.3 · 5 / 7 | Open world (Mandy save, walking then driving, one run each, played by hand on a similar route): | | avg fps | median | 1 % low | frames > 80 ms | worst frame | |---|---|---|---|---|---| | PAGES=1 | 29.2 | 31.9 ms | 9.5 | 121 | 678 ms | | PAGES=0 | 28.7 | 34.5 ms | 11.1 | 84 | 115 ms | So on this card it is both: in a steady scene residency is a clear win (+10 %, lows equal or better); the lows get worse while it is moving, i.e. at the start of a scene and in the open world, where 55 % of the moved pages came back during the run (return times in vktory6/VKtory#17). The player didn't feel a big difference in the open world; the numbers are one run per arm, so take the open-world part as a hint. The worst open-world frames (0.5-0.7 s) only happened with PAGES=1. We haven't checked whether they line up with waves or with returns. A pace test (same pages per second in 200 ms steps instead of 1 s waves, and 3x faster) is ready on our side and is the next thing we run.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#14
No description provided.