RTX 3060 Ti (8 GB): measurements of the retail title's world load (memory by kind, ExecuteIndirect rounds, GPU 26 s behind) #2666

Open
opened 2026-11-26 06:14:59 +00:00 by github-bot · 0 comments
Owner

@⁠LucasHoepfner on GitHub · 2026-11-26 05:37 UTC · original

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: main at b49be18 with #684 #751 #1803 #2229 #2551 #2581 #1975 #2404 #2097 #1798 #2590 #2385 #1182 and the top commit of #735 merged locally. Also run as they are: nvidia-dev at c044dc6 and amd-dev at b5c0275.
  • 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 #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

  1. 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.
  2. XCL_SPLIT_INDIRECT_ROUNDS=2 instead 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.
  3. The smallest configuration that runs: XCL_DEVICE_TYPE=lockhart, XCL_RENDER_RES=1920x1080 (#735), XCL_TEXTURE_MAX=256 (#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. With XCL_RENDER_RES=1280x720 the title divides by zero (0xc0000094 at +0x28f03e8) at 81 s.
  4. 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 main at b49be18: https://github.com/LucasHoepfner/xcl/tree/diag/world-load-measurements (what each does: scripts/diag/README.md). Not for merge. On main they pass cargo 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_AT crashed 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.
**@⁠LucasHoepfner** on GitHub · 2026-11-26 05:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/2666) 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: `main` at `b49be18` with #684 #751 #1803 #2229 #2551 #2581 #1975 #2404 #2097 #1798 #2590 #2385 #1182 and the top commit of #735 merged locally. Also run as they are: `nvidia-dev` at `c044dc6` and `amd-dev` at `b5c0275`. - `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 #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** 1. 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. 2. `XCL_SPLIT_INDIRECT_ROUNDS=2` instead 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. 3. The smallest configuration that runs: `XCL_DEVICE_TYPE=lockhart`, `XCL_RENDER_RES=1920x1080` (#735), `XCL_TEXTURE_MAX=256` (#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. With `XCL_RENDER_RES=1280x720` the title divides by zero (0xc0000094 at +0x28f03e8) at 81 s. 4. 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 `main` at `b49be18`: https://github.com/LucasHoepfner/xcl/tree/diag/world-load-measurements (what each does: `scripts/diag/README.md`). Not for merge. On `main` they pass `cargo 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_AT` crashed 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:14:59 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.