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

Closed
opened 2026-11-26 05:37:36 +00:00 by LucasHoepfner · 1 comment
LucasHoepfner commented 2026-11-26 05:37:36 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by LucasHoepfner on 2026-11-26T05:37:36Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:6620293323 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2666). Originally posted by [LucasHoepfner](https://github.com/LucasHoepfner) on 2026-11-26T05:37:36Z. --- 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.
LocranKing commented 2026-11-27 03:56:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by LocranKing on 2026-11-27T03:56:55Z.


8 GB VRAM (RTX 3060 Ti) measurements on nvidia-dev (ecc0bb57) + open PRs (#2905, #2815–#2817), Series S (lockhart) profile.

Environment

  • Windows 11 Home build 26300, AMD Ryzen 5 5500 (6C/12T), 31.8 GB RAM
  • NVIDIA GeForce RTX 3060 Ti (8 GB VRAM, 7,256 MB DXGI local budget), driver 621.40, nvprofile shader heap 2048 MB
  • Title 9cc6a39e, release builds, identical warm lockhart cache snapshot (1,296 used pipelines, 3,206 driver blobs)
  • Env: 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

configuration duration exit frames peak commit local / non-local VRAM peak target pages (end) sparse pools (end) two-pass skipped past cap
nvidia-dev (ecc0bb57) 250 s 0xc0000005 at 181.5 s (#2867) (1,732 presents) 25,994 MB 9,022 / 4,708 MB 3,936 (3,968) MB 2,560 (2,351) MB 8,421 (1024 MiB)
nvidia-dev + #2905 250 s 0x0 1,977 (1 0 1) 29,327 MB 12,333 / 5,055 MB 4,399 (4,608) MB 4,672 (2,919) MB 14,670 (1024 MiB)
nvidia-dev (ecc0bb57) 180 s 0x0 1,825 (1 1 1) 27,125 MB 9,773 / 4,914 MB 4,094 (4,160) MB 2,624 (2,543) MB 42,663 (1024 MiB)
nvidia-dev + #2815 180 s 0x0 1,805 (0 2 1) 25,765 MB 9,524 / 4,758 MB 4,182 (4,224) MB 2,624 (2,361) MB 2,554 (1024 MiB)
nvidia-dev + #2816 180 s 0x0 1,775 (1 0 2) 25,178 MB 8,565 / 4,904 MB 4,151 (4,224) MB 2,560 (2,401) MB 0 (13 MiB alive)
nvidia-dev + #2817 180 s 0x0 1,789 (1 1 1) 24,516 MB 8,429 / 4,653 MB 4,103 (4,160) MB 2,496 (2,267) MB 0 (18 MiB alive, 256 MiB cap)

Key takeaways for 8 GB cards:

  1. Raising the NVIDIA driver shader heap to 2048 MB (#2590) eliminated 0x887a0005 device removals across all runs (0 removals in 6 runs).
  2. With XCL_CS_PSO_WAIT_MS=50, Chain::whole cold stalls dropped dramatically once the initial driver blobs were cached, reaching world rendering at t ≈ 99–138 s (31–44 s startup prep + menu transition).
  3. #2816 + #2817 cut peak commit by 2.61 GB and peak local VRAM by 1.34 GB (bringing local VRAM down to 8.43 GB against the 7.26 GB budget) while eliminating all 42,663 skipped two-pass draws.
  4. Remaining VRAM pressure on 8 GB is dominated by target pages (~4.1–4.4 GB) and sparse pools (~2.5–4.7 GB).
<!-- greyfinch-sync:ivall/xcl:comment:7209397379 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2666#issuecomment-7209397379). Originally posted by [LocranKing](https://github.com/LocranKing) on 2026-11-27T03:56:55Z. --- 8 GB VRAM (`RTX 3060 Ti`) measurements on `nvidia-dev` (`ecc0bb57`) + open PRs (`#2905`, `#2815–#2817`), Series S (`lockhart`) profile. **Environment** - Windows 11 Home build 26300, AMD Ryzen 5 5500 (6C/12T), 31.8 GB RAM - NVIDIA GeForce RTX 3060 Ti (8 GB VRAM, `7,256 MB` DXGI local budget), driver `621.40`, `nvprofile` shader heap 2048 MB - Title `9cc6a39e`, release builds, identical warm `lockhart` cache snapshot (`1,296` used pipelines, `3,206` driver blobs) - Env: `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** | configuration | duration | exit | frames | peak commit | local / non-local VRAM peak | target pages (end) | sparse pools (end) | two-pass skipped past cap | |---|---:|---|---:|---:|---:|---:|---:|---:| | `nvidia-dev` (`ecc0bb57`) | 250 s | `0xc0000005` at 181.5 s (#2867) | (1,732 presents) | 25,994 MB | 9,022 / 4,708 MB | 3,936 (3,968) MB | 2,560 (2,351) MB | 8,421 (1024 MiB) | | `nvidia-dev` + `#2905` | 250 s | `0x0` | 1,977 (`1 0 1`) | 29,327 MB | 12,333 / 5,055 MB | 4,399 (4,608) MB | 4,672 (2,919) MB | 14,670 (1024 MiB) | | `nvidia-dev` (`ecc0bb57`) | 180 s | `0x0` | 1,825 (`1 1 1`) | 27,125 MB | 9,773 / 4,914 MB | 4,094 (4,160) MB | 2,624 (2,543) MB | 42,663 (1024 MiB) | | `nvidia-dev` + `#2815` | 180 s | `0x0` | 1,805 (`0 2 1`) | 25,765 MB | 9,524 / 4,758 MB | 4,182 (4,224) MB | 2,624 (2,361) MB | 2,554 (1024 MiB) | | `nvidia-dev` + `#2816` | 180 s | `0x0` | 1,775 (`1 0 2`) | 25,178 MB | 8,565 / 4,904 MB | 4,151 (4,224) MB | 2,560 (2,401) MB | **0** (13 MiB alive) | | `nvidia-dev` + `#2817` | 180 s | `0x0` | 1,789 (`1 1 1`) | **24,516 MB** | **8,429** / 4,653 MB | 4,103 (4,160) MB | 2,496 (2,267) MB | **0** (18 MiB alive, 256 MiB cap) | Key takeaways for 8 GB cards: 1. Raising the NVIDIA driver shader heap to 2048 MB (`#2590`) eliminated `0x887a0005` device removals across all runs (`0` removals in 6 runs). 2. With `XCL_CS_PSO_WAIT_MS=50`, `Chain::whole` cold stalls dropped dramatically once the initial driver blobs were cached, reaching world rendering at `t ≈ 99–138 s` (`31–44 s` startup prep + menu transition). 3. `#2816` + `#2817` cut peak commit by **2.61 GB** and peak local VRAM by **1.34 GB** (bringing local VRAM down to `8.43 GB` against the `7.26 GB` budget) while eliminating all `42,663` skipped two-pass draws. 4. Remaining VRAM pressure on 8 GB is dominated by **target pages** (`~4.1–4.4 GB`) and **sparse pools** (`~2.5–4.7 GB`).
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#2656
No description provided.