Repository navigation
Description
Measurements from an 8 GB NVIDIA card, for whoever works on the world load of the newer retail title of #505. It reaches the world here and runs for 300 s without a device removal, at 0.2 to 0.6 frames a second. I did not find the cause of the frame rate; below is what was measured, what was ruled out, and what is still open. Related: #2595 (RTX 3070 on nvidia-dev), #675, #2403, #2057.
Setup
- RTX 3060 Ti 8 GB (driver 621.01), i7-14700KF, 32 GB RAM, Windows 11 26200, release build.
- Tree:
mainatb49be18with XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684 D3D12.X: title texture reads outside the coherent window use the safe copy #751 D3D12.X: shaders that index the heaps themselves get the heaps' addresses #1803 Recompiler: loads through s_getpc_b64 read the constant data after the program #2229 Shaders: --precompile --pipelines also builds a split program's whole form #2551 D3D12.X: with bounded pipeline waits, dispatches are not put off to the submit #2581 recomp/dxil: CFG v_interp modes, bounded movrel/M0[7:0], and MS barrier guard #1975 D3D12.X: an ExecuteIndirect of a split program runs its pieces #2404 Recompiler: split wave64 compute groups of several waves across dispatches #2097 D3D12.X: a draw does not wait for a graphics pipeline still being built #1798 xcl run:xcl nvprofileputs xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2590 D3D12.X: sampled textures go without their top mips while video memory fills up #2385 D3D12.X: render targets on one physical page share its video memory #1182 and the top commit of PE loader: render_resolution renders RAGE titles at the screen's aspect #735 merged locally. Also run as they are:nvidia-devatc044dc6andamd-devatb5c0275. XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50, warm caches, 140 to 300 s a run, world reached after about 76 s.- NVIDIA shader heap raised with xcl run:
xcl nvprofileputs xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2590 (xcl nvprofile install --mb 2048). With 1 GB the device was removed at world entry (0x887a0005); with 2 GB it was not in any run.
What was measured
- Video memory by kind, 100 s in (Windows gives the process a budget of 7,256 MB): 11,340 MB local. XCL's own heaps 6,353 MB (target pages 2,752, sparse pools 3,200, arenas 465), default buffers 959 MB, committed textures 879 MB, and 3,149 MB that is no resource or heap of the device. That rest is 176 MB until 74 s and appears within 26 s at world entry; 4,095 MB of non-local memory is the coherent window, and non-local grows by another 2.2 GB in the same 26 s.
XCL_SPLIT_INDIRECT_ROUNDS=2instead of the default 32 takes 1.5 GB off that rest (3,149 to about 1,650 MB), 1.8 GB off non-local memory (6,926 to 5,166 MB) and 2.6 GB off the commit, with 0 slabs lost in 140 s. 208 command signatures are made between 76 and 80 s, one per split program's first ExecuteIndirect, and each of those records 32 rounds times its pieces. My reading, not proven: the driver keeps memory for each recorded ExecuteIndirect with a root-constant argument until the allocator is reset. The frame rate did not change.- The smallest configuration that runs:
XCL_DEVICE_TYPE=lockhart,XCL_RENDER_RES=1920x1080(PE loader: render_resolution renders RAGE titles at the screen's aspect #735),XCL_TEXTURE_MAX=256(D3D12.X: sampled textures go without their top mips while video memory fills up #2385), 2 rounds: 9,968 MB local, still 2.7 GB over the budget, 6 to 13 frames per 20 s. Of the 4,544 MB of sparse pools only 3,258 MB are mapped. WithXCL_RENDER_RES=1280x720the title divides by zero (0xc0000094 at +0x28f03e8) at 81 s. - The three trees, same switches:
| tree | in the world | video memory | result |
|---|---|---|---|
| local merge | 3 to 5 frames per 20 s | 11.6 GB local | no removal in 300 s; 325 programs split into 2,667 pieces |
nvidia-dev |
3 to 11 frames per 20 s between stalls of 60 to 80 s (0 frames, GPU 0 %, CPU at 6 cores) | 14.5 GB in use, 7.2 GB over the budget | no removal in 300 s |
amd-dev |
20, 6, 4 frames per 20 s | 12.3 GB local | DEVICE_HUNG (0x887a0006) at 136 s, one cold run; 35 programs split into 92 pieces |
amd-dev has 29 times fewer pieces and the same frame rate, so the number of chain pieces is not what limits it here.
5. GPU load by process and engine (Windows' GPU Engine counters) in the world: the title's 3D engine 93 %, and the System process's copy engine 30 % on average and up to 96 %: Windows moves video memory all the time. Dedicated memory is full (7.7 to 8.0 GB) with 7 to 12 GB shared.
6. XCL's own steps before a submit, switched off one at a time while the title rendered (texture uploads, target pages, uploads into the sparse windows): no change in GPU load (91 to 99 %) or frames. They do cost CPU on the submitting thread: the texture step 3 to 5 s of every 10 s, and about 11,000 UpdateTileMappings calls per 10 s take 4.5 s (0.4 ms each; churn_update_tile_mappings_timing gives 69 µs each on the idle card).
7. The GPU is far behind the title. With the title's draws, its dispatches and XCL's pre-submit steps all skipped, the title submits nothing for 26 s, its render thread spins in a wait, and its 3D engine stays 90 to 95 % busy the whole time; then the title ends at +0x23cf683, the address of #675. So queued work takes at least 26 s to drain.
Open
- What the queued work is. Skipping all draws and dispatches left the frame rate unchanged for 40 to 50 s, but with a backlog that long this does not show they are not the cost. A measurement of how far behind the GPU is per submit (a fence after each) would settle it; I did not build it.
- What the remaining 1.6 GB outside resources and heaps is, and whether fitting the budget changes the frame rate at all (no configuration fits it).
Not tested
- Any other card or title; AMD. Everything is one machine, mostly one run per configuration.
- The diagnostics (memory by kind, per-step timers, skip switches, stack scan, GPU samplers) are on a branch, applied to
mainatb49be18: https://github.com/LucasHoepfner/xcl/tree/diag/world-load-measurements (what each does:scripts/diag/README.md). Not for merge. Onmainthey passcargo check -p xcl --all-targets; the runs above were made with the same changes on the local merge, not on that branch.
Also seen
- An application that holds the audio output in exclusive mode (Spotify with that option on) stops the title at start-up: its audio queue overflows and it ends with an int3. Turning the option off fixes it.
XCL_THREAD_DUMP_ATcrashed the process on this tree (0xc0000005 in ntdll on the dump thread).
AI use
- Claude Code with Claude Fable 5.2: wrote the local diagnostics, made the runs on the hardware above and wrote this report.
Activity
LocranKing commentedon Nov 27, 2026
8 GB VRAM (
RTX 3060 Ti) measurements onnvidia-dev(ecc0bb57) + open PRs (#2905,#2815–#2817), Series S (lockhart) profile.Environment
7,256 MBDXGI local budget), driver621.40,nvprofileshader heap 2048 MB9cc6a39e, release builds, identical warmlockhartcache snapshot (1,296used pipelines,3,206driver blobs)XCL_DEVICE_TYPE=lockhart XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50 XCL_GFX_PSO_WAIT_MS=200 XCL_CS_PSO_WAIT_MS=50 XCL_PREPARE_GRAPHICS=0 XCL_DRED=1+XCL_PRESS_AT(18:A..74:A)Measurements
nvidia-dev(ecc0bb57)0xc0000005at 181.5 s (#2867)nvidia-dev+#29050x01 0 1)nvidia-dev(ecc0bb57)0x01 1 1)nvidia-dev+#28150x00 2 1)nvidia-dev+#28160x01 0 2)nvidia-dev+#28170x01 1 1)Key takeaways for 8 GB cards:
#2590) eliminated0x887a0005device removals across all runs (0removals in 6 runs).XCL_CS_PSO_WAIT_MS=50,Chain::wholecold stalls dropped dramatically once the initial driver blobs were cached, reaching world rendering att ≈ 99–138 s(31–44 sstartup prep + menu transition).#2816+#2817cut peak commit by 2.61 GB and peak local VRAM by 1.34 GB (bringing local VRAM down to8.43 GBagainst the7.26 GBbudget) while eliminating all42,663skipped two-pass draws.~4.1–4.4 GB) and sparse pools (~2.5–4.7 GB).