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
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
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, whichgpu/uma.rsmakes only for the 16-window layout. With the default 4 windows,Uma::view_reservereturns 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=16is 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
9dfbe3eawith open PRs and local experiments merged, plus two local readback diagnostics; not plain main):0xc_/0xd_); the CPU copy at those addresses held real meshlet descriptors.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.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):
XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1draw 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):
XCL_X64_ALL_MASKS=1does not change it;AI use: Claude Code (Claude Opus 5.5) ran the diagnostics and runs and wrote this report.
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;
main493dbd3d, release build;XCL_PREPARE=0 XCL_NETWORK=0 XCL_ACTIVITY=1, 300 s, scripted presses.xcl.exehas 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:
With
XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1the same line reads... and 6 for GPU views of it, and the startup line reports6 view window(s) for GPU views at 0x1000000000instead of none.What it changes here. Same tree, same title, same settings apart from the two variables:
XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1So ~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.
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:
XCL_UMA_WINDOWS=16 XCL_HEAP_WINDOWS=1XCL_DEVICE_TYPE=lockhartSo the two window variables fix the missing views and speed the load, and
lockhartthen 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.
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+ #30948a28d317+ #3282ea91c5f4+ #3625e3dabe10(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.
Problems found on the way.
place_on_pagesin 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.16c2fd08in the same hour, with no removals or crashes. I have not isolated which PR causes it.gpu_compute_e2ehung 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 --usedwith 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).