Memory: with the default 4 UMA windows the retail game's world renders black on the Series S profile; XCL_UMA_WINDOWS=16 draws it #3565

Open
opened 2026-12-01 09:12:23 +00:00 by KOLESNiii · 3 comments
KOLESNiii commented 2026-12-01 09:12:23 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-01T09:12:23Z.


On the Series S profile the retail game reaches the world, but everything except the UI renders black (a yellow dotted horizon line is all that shows). The title gives the GPU addresses of GPU views of its CPU memory (0xc_…/0xd_…, the CPU address + 0x4_0000_0000; "reservation … is the GPU view of …" in the log). Shaders reach those only through the view windows, which gpu/uma.rs makes only for the 16-window layout. With the default 4 windows, Uma::view_reserve returns None, kernelx.rs (~line 934) falls back to a plain reservation without a warning, and every shader read there returns 0. So the meshlet lists and V#s the mesh programs read are zero, and the console's null fallback (1 vertex / 1 primitive) draws nothing.

Main already warns "GPU views of the title's memory stay outside the windows and shaders read 0 there (an empty 3D world)", but only when XCL_UMA_WINDOWS=16 is asked for and cannot be reserved (uma.rs ~line 1217), not with the default 4.

Evidence (RTX 2070 SUPER 8 GB, wave32 only; Windows 11 26300; release; a local integration tree on main 9dfbe3ea with open PRs and local experiments merged, plus two local readback diagnostics; not plain main):

  • Local two-pass readback diagnostic, 4 windows: every world mesh record had nv=np=1. The mesh program's io had the table at s16/s17 and the root descriptor at s19:s20 pointing into the GPU view (0xc_/0xd_); the CPU copy at those addresses held real meshlet descriptors.
  • Same build with XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1: "+ 6 view window(s) for GPU views"; in the first world frame, 6129 mesh-stage views were served from them; 59–65 % of sampled G-buffer texels were non-zero (0 % with 4 windows). The world is visible: buildings, people, lighting.
  • 5 runs with 16 windows:
    • 4 reached the world. 3 of them ran 500–1700 s of world with no crash. The 4th crashed in title code 23 s in; it was the only one with the local readback diagnostic on, and the crash did not come back.
    • 1 lost the device at 240 s, before the world: a DRED page fault at VA 0. A retry with identical settings was clean.

Cost: the window count is in the shader cache key, so switching to 16 windows starts a cold cache. On this 8 GB card the first cold run stalled at world load, compiling very large compute pipelines one after another (13–16 s each).

Asks / options (not a conclusion):

  • Should a title that reserves GPU views get the 16-window layout automatically? Or should XCL at least WARN once when a GPU view is reserved with no view windows ("the GPU will read zeros from it; set XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1")?
  • Contributors who run the title on the Series S profile: does XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 draw the world for you (AMD, other NVIDIA)? Please give the commit, GPU, driver, and whether the world renders.

Related: #697 (more than 4 memory windows), #2867 (title crashes on the Series S profile with sparse GPU heaps).

Not tested: AMD, the Series X profile, plain main without the local diagnostics and merged PRs (the env switch alone is what changes the result here).

Still wrong with 16 windows (separate issues, not investigated to a cause):

  • an ~8 px sawtooth / hatched pattern over lit surfaces: it is in the lighting result, not in albedo, and XCL_X64_ALL_MASKS=1 does not change it;
  • one triangle of the cell window missing in the velocity target;
  • ~1 FPS in the world.

AI use: Claude Code (Claude Opus 5.5) ran the diagnostics and runs and wrote this report.

<!-- greyfinch-sync:ivall/xcl:issue:6716731258 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3565). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-12-01T09:12:23Z. --- On the Series S profile the retail game reaches the world, but everything except the UI renders black (a yellow dotted horizon line is all that shows). The title gives the GPU addresses of GPU views of its CPU memory (`0xc_…`/`0xd_…`, the CPU address + 0x4_0000_0000; "reservation … is the GPU view of …" in the log). Shaders reach those only through the view windows, which `gpu/uma.rs` makes only for the 16-window layout. With the default 4 windows, `Uma::view_reserve` returns None, `kernelx.rs` (~line 934) falls back to a plain reservation without a warning, and every shader read there returns 0. So the meshlet lists and V#s the mesh programs read are zero, and the console's null fallback (1 vertex / 1 primitive) draws nothing. Main already warns "GPU views of the title's memory stay outside the windows and shaders read 0 there (an empty 3D world)", but only when `XCL_UMA_WINDOWS=16` is asked for and cannot be reserved (`uma.rs` ~line 1217), not with the default 4. **Evidence** (RTX 2070 SUPER 8 GB, wave32 only; Windows 11 26300; release; a local integration tree on main `9dfbe3ea` with open PRs and local experiments merged, plus two local readback diagnostics; not plain main): - Local two-pass readback diagnostic, 4 windows: every world mesh record had nv=np=1. The mesh program's io had the table at s16/s17 and the root descriptor at s19:s20 pointing into the GPU view (`0xc_`/`0xd_`); the CPU copy at those addresses held real meshlet descriptors. - Same build with `XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1`: "+ 6 view window(s) for GPU views"; in the first world frame, 6129 mesh-stage views were served from them; 59–65 % of sampled G-buffer texels were non-zero (0 % with 4 windows). The world is visible: buildings, people, lighting. - 5 runs with 16 windows: - 4 reached the world. 3 of them ran 500–1700 s of world with no crash. The 4th crashed in title code 23 s in; it was the only one with the local readback diagnostic on, and the crash did not come back. - 1 lost the device at 240 s, before the world: a DRED page fault at VA 0. A retry with identical settings was clean. **Cost:** the window count is in the shader cache key, so switching to 16 windows starts a cold cache. On this 8 GB card the first cold run stalled at world load, compiling very large compute pipelines one after another (13–16 s each). **Asks / options** (not a conclusion): - Should a title that reserves GPU views get the 16-window layout automatically? Or should XCL at least WARN once when a GPU view is reserved with no view windows ("the GPU will read zeros from it; set XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1")? - Contributors who run the title on the Series S profile: does `XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1` draw the world for you (AMD, other NVIDIA)? Please give the commit, GPU, driver, and whether the world renders. Related: #697 (more than 4 memory windows), #2867 (title crashes on the Series S profile with sparse GPU heaps). **Not tested:** AMD, the Series X profile, plain main without the local diagnostics and merged PRs (the env switch alone is what changes the result here). **Still wrong with 16 windows (separate issues, not investigated to a cause):** - an ~8 px sawtooth / hatched pattern over lit surfaces: it is in the lighting result, not in albedo, and `XCL_X64_ALL_MASKS=1` does not change it; - one triangle of the cell window missing in the velocity target; - ~1 FPS in the world. AI use: Claude Code (Claude Opus 5.5) ran the diagnostics and runs and wrote this report.
brainhay5 commented 2026-12-01 09:51:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T09:51:47Z.


Confirmed on a second title and card, with a number for what the missing view windows cost.

Setup. RTX 5070 Ti 16 GB, driver 610.88, Ryzen 7 5800X3D, 64 GB, Windows 11 22631; main 493dbd3d, release build; XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1, 300 s, scripted presses. xcl.exe has a 2048 MB driver shader heap (#2590), so no run here is removed and the difference below is not a removal effect.

The line you describe, in our logs. With the default 4 UMA windows, every run this evening printed:

D3D12.X: 3 sparse window(s) for the title's own memory and 0 for GPU views of it

With XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 the same line reads ... and 6 for GPU views of it, and the startup line reports 6 view window(s) for GPU views at 0x1000000000 instead of none.

What it changes here. Same tree, same title, same settings apart from the two variables:

1500 frames reached at worst video memory over budget
default (0 view windows) 108.1 s 1,913 MB
XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 80.0 s 2,519 MB

So ~26 % less time to the same frame, and the world draws. Worth noting for anyone diagnosing this: our runs did present frames with 0 view windows (30 fps early on), so the failure is not always the black-except-UI shape — a title can keep presenting while every GPU-view read returns zero, which makes this look like a performance problem rather than a rendering one.

Separate from this issue, and unchanged by it: presenting still stops after the world loads — here at 92.1 s for 184 s — which is the stall reported in #3541. So the view windows fix load time, not that.

AI use: an agent ran the builds and the runs and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7307314928 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3565#issuecomment-7307314928). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T09:51:47Z. --- Confirmed on a second title and card, with a number for what the missing view windows cost. **Setup.** RTX 5070 Ti 16 GB, driver 610.88, Ryzen 7 5800X3D, 64 GB, Windows 11 22631; `main` `493dbd3d`, release build; `XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1`, 300 s, scripted presses. `xcl.exe` has a 2048 MB driver shader heap (#2590), so no run here is removed and the difference below is not a removal effect. **The line you describe, in our logs.** With the default 4 UMA windows, every run this evening printed: ``` D3D12.X: 3 sparse window(s) for the title's own memory and 0 for GPU views of it ``` With `XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1` the same line reads `... and 6 for GPU views of it`, and the startup line reports `6 view window(s) for GPU views at 0x1000000000` instead of none. **What it changes here.** Same tree, same title, same settings apart from the two variables: | | 1500 frames reached at | worst video memory over budget | |---|---|---| | default (0 view windows) | 108.1 s | 1,913 MB | | `XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1` | 80.0 s | 2,519 MB | So ~26 % less time to the same frame, and the world draws. Worth noting for anyone diagnosing this: our runs **did** present frames with 0 view windows (30 fps early on), so the failure is not always the black-except-UI shape — a title can keep presenting while every GPU-view read returns zero, which makes this look like a performance problem rather than a rendering one. **Separate from this issue, and unchanged by it:** presenting still stops after the world loads — here at 92.1 s for 184 s — which is the stall reported in #3541. So the view windows fix load time, not that. *AI use: an agent ran the builds and the runs and wrote this comment.*
brainhay5 commented 2026-12-01 09:58:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by brainhay5 on 2026-12-01T09:58:21Z.


One follow-up measurement, since it changes what I would recommend as a config.

Adding the Series S profile to the same run moves the memory picture a long way, at a small cost in load time:

config view windows 1500 frames at worst video memory over budget
default 0 108.1 s 1,913 MB
XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1 6 80.0 s 2,519 MB
+ XCL_DEVICE_TYPE=lockhart 6 85.2 s 353 MB

So the two window variables fix the missing views and speed the load, and lockhart then brings the process to within 353 MB of its budget instead of 2.5 GB over — on a 16 GB card where the title's texture pages alone want ~19 GB, that is the difference between constant paging and almost fitting.

If anyone is weighing the profile, that is the trade: ~5 s more to load, 2.2 GB less overshoot. Presenting still becomes intermittent after ~95 s in every one of these configs, so none of it touches the stall in #3541.

AI use: an agent ran the runs and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7307477437 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3565#issuecomment-7307477437). Originally posted by [brainhay5](https://github.com/brainhay5) on 2026-12-01T09:58:21Z. --- One follow-up measurement, since it changes what I would recommend as a config. Adding the Series S profile to the same run moves the memory picture a long way, at a small cost in load time: | config | view windows | 1500 frames at | worst video memory over budget | |---|---|---|---| | default | 0 | 108.1 s | 1,913 MB | | `XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1` | 6 | 80.0 s | 2,519 MB | | + `XCL_DEVICE_TYPE=lockhart` | 6 | 85.2 s | **353 MB** | So the two window variables fix the missing views and speed the load, and `lockhart` then brings the process to within 353 MB of its budget instead of 2.5 GB over — on a 16 GB card where the title's texture pages alone want ~19 GB, that is the difference between constant paging and almost fitting. If anyone is weighing the profile, that is the trade: ~5 s more to load, 2.2 GB less overshoot. Presenting still becomes intermittent after ~95 s in every one of these configs, so none of it touches the stall in #3541. *AI use: an agent ran the runs and wrote this comment.*
AAsobu commented 2026-12-03 15:59:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by AAsobu on 2026-12-03T15:59:05Z.


In-world test of the 16-window layout on a retail title, with three open PRs, on the default (Series X) profile. RTX 3090 24 GB (driver 621.24), i5-10600K, 32 GB, Windows 11 26300, release build.

Tree: c21d3235 = main 0c725d5d + #3094 8a28d317 + #3282 ea91c5f4 + #3625 e3dabe10 (all clean merges).
Both arms: XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_VIEW_REACH_MB=36 XCL_MIRROR_FILL_MB=128 XCL_TWO_PASS_MB=4096 XCL_TEXTURE_LEVEL_PAGES=1 XCL_WAVE64_SPIN=0
"on" adds XCL_ALIAS_COPY=1 XCL_PAIR_PAGES=1. Order on, off, on; 1300 s each, after six 360 s warm-up runs (compute pipeline waits per run 451 -> 109).

Picture. Geometry and textures show in all three runs. In the same cutscene shot, both "on" runs show the world lit (sky, sun and shadows, hair on a character); the "off" run, which already has the 16 windows, shows the same shot almost black except for a strip of light. This repeated with both "on" runs and never with "off", so here the 16 windows alone were not enough for the lighting: it came with XCL_ALIAS_COPY=1 + XCL_PAIR_PAGES=1. Remaining defects in "on": some textures transparent or noisy (window frames, walls), over-exposed areas, one stretched white surface.

Runs.

  • on #1 crashed at 840 s: access violation in title code, read at 0x29. There was no device removal.
  • off and on #2 ran the full 1300 s clean.
  • No device removals in any run.
  • Peak commit 42-45 GB and VRAM 18.3-19.0 GB in all three, no difference between the arms.
  • Frame rate is not comparable: one run per arm, mostly waiting on pipeline builds.

Problems found on the way.

  • #3282 on current main: the unit tests do not build. Three calls to place_on_pages in vram.rs (around lines 7031, 7141 and 7208, added on main after #3282's base) pass 11 arguments; the new signature takes 12 (pair). The binary builds. It needs a rebase.
  • Default-env smoke of this tree: 2 frames. 60 s without the layout variables gave 2 frames, against 1612 on main 16c2fd08 in the same hour, with no removals or crashes. I have not isolated which PR causes it.
  • gpu_compute_e2e hung intermittently on this tree. It hung in 2 of 3 runs: 4 tests over 60 s, spinning. Each PR alone on main, and main itself, passed 9/9. Killing the hung process left ~28 GB of system commit held outside any process until a reboot.
  • xcl pso-precompile --used with this layout stalled the same way in the driver pipeline phase: a first batch of blobs, then nothing for 17 min, also with 1 process x 4 threads and 3 processes. Possibly a driver compile that does not finish; not proven.

Not tested: AMD, other titles, the Series S profile, each PR on its own in the world, a main control run of the same length.
Tool and model: Claude Code (Claude Opus 5.5).

<!-- greyfinch-sync:ivall/xcl:comment:7384061087 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/3565#issuecomment-7384061087). Originally posted by [AAsobu](https://github.com/AAsobu) on 2026-12-03T15:59:05Z. --- In-world test of the 16-window layout on a retail title, with three open PRs, on the default (Series X) profile. RTX 3090 24 GB (driver 621.24), i5-10600K, 32 GB, Windows 11 26300, release build. Tree: c21d3235 = main 0c725d5d + #3094 8a28d317 + #3282 ea91c5f4 + #3625 e3dabe10 (all clean merges). Both arms: `XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_VIEW_REACH_MB=36 XCL_MIRROR_FILL_MB=128 XCL_TWO_PASS_MB=4096 XCL_TEXTURE_LEVEL_PAGES=1 XCL_WAVE64_SPIN=0` "on" adds `XCL_ALIAS_COPY=1 XCL_PAIR_PAGES=1`. Order on, off, on; 1300 s each, after six 360 s warm-up runs (compute pipeline waits per run 451 -> 109). **Picture.** Geometry and textures show in all three runs. In the same cutscene shot, both "on" runs show the world lit (sky, sun and shadows, hair on a character); the "off" run, which already has the 16 windows, shows the same shot almost black except for a strip of light. This repeated with both "on" runs and never with "off", so here the 16 windows alone were not enough for the lighting: it came with `XCL_ALIAS_COPY=1` + `XCL_PAIR_PAGES=1`. Remaining defects in "on": some textures transparent or noisy (window frames, walls), over-exposed areas, one stretched white surface. **Runs.** - on #1 crashed at 840 s: access violation in title code, read at 0x29. There was no device removal. - off and on #2 ran the full 1300 s clean. - No device removals in any run. - Peak commit 42-45 GB and VRAM 18.3-19.0 GB in all three, no difference between the arms. - Frame rate is not comparable: one run per arm, mostly waiting on pipeline builds. **Problems found on the way.** - **#3282 on current main: the unit tests do not build.** Three calls to `place_on_pages` in vram.rs (around lines 7031, 7141 and 7208, added on main after #3282's base) pass 11 arguments; the new signature takes 12 (`pair`). The binary builds. It needs a rebase. - **Default-env smoke of this tree: 2 frames.** 60 s without the layout variables gave 2 frames, against 1612 on main 16c2fd08 in the same hour, with no removals or crashes. I have not isolated which PR causes it. - **`gpu_compute_e2e` hung intermittently on this tree.** It hung in 2 of 3 runs: 4 tests over 60 s, spinning. Each PR alone on main, and main itself, passed 9/9. Killing the hung process left ~28 GB of system commit held outside any process until a reboot. - **`xcl pso-precompile --used` with this layout stalled the same way** in the driver pipeline phase: a first batch of blobs, then nothing for 17 min, also with 1 process x 4 threads and 3 processes. Possibly a driver compile that does not finish; not proven. Not tested: AMD, other titles, the Series S profile, each PR on its own in the world, a main control run of the same length. Tool and model: Claude Code (Claude Opus 5.5).
Sign in to join this conversation.
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#3565
No description provided.