[OFFICIAL] Swarm: RAM and VRAM use down, towards stable 30 FPS on AMD and NVIDIA #2688

Open
opened 2026-11-26 06:34:38 +00:00 by github-bot · 25 comments
Owner

@⁠theaustinayers on GitHub · 2026-11-26 06:16 UTC · original

Goal

Coordinate independent, evidence-backed work to reduce RAM and VRAM use and the per-frame memory traffic behind it, so that large retail workloads can hold a stable 30 FPS on both AMD and NVIDIA cards, including cards with far less than 32 GB of video memory. This is a sibling of #2088 (cold compilation to the first playable frame): that swarm gets a title to its first frame, this one is about what it costs to stay there.

On a representative large retail workload the world now draws with correct colours and lighting, but at 3 to 4 FPS, with about 27 GB of video memory and 50 GB of committed memory in use. Memory is not only a capacity problem here: most of the frame time is spent moving, checking and waiting on memory.

Do not post title binaries, packages, keys, dumps, proprietary names, or DRM-related material. Use hashes and aggregate measurements only.

Current evidence

One machine so far: RTX 5090 (32 GB, driver 621.14), 16 cores / 32 threads, 128 GB RAM, Windows 11. Runs of 2.5 minutes in the world. No AMD measurements yet: they are the first thing this issue needs.

Capacity

  • Committed memory grows from 42 GB to 50 GB over 2.5 minutes in the world (2.5 to 5 GB per minute). Whether it levels off has not been measured.
  • Video memory in use climbs from 22 GB to 27 GB against a DXGI budget of about 29 GB.
  • Render-target pages: 11.5 GB in use, 11.9 GB of pools. Sparse pools: 7.9 GB.
  • GPU views of title memory: about 17,000 tiles with video memory at a time, 62,000 filled (3.9 GB) and 45,000 given back over a run.
  • Two-pass mesh buffers: the default cap of 1024 MiB (XCL_TWO_PASS_MB) makes XCL skip thousands of mesh draws per run. Peak need was about 4.4 GB, of which 1.0 to 1.5 GB at any time was buffers only waiting for an allocator reset.
  • A reserved (tiled) texture on the PC can need more tiles than the console texture takes bytes (18 tiles for a 33×33×33 RGBA16F volume the console keeps in 512 KiB). Where the console size is unknown, those tiles used to land on the next texture's pages.
  • On NVIDIA the driver's reserve for pipeline code (512 MiB) is exhausted and the device is lost silently unless it is raised in the driver profile (#2403). About 75,000 pipelines sit queued.
  • A tester with a 10 GB card does not reach the world.

Traffic (one frame = 347 ms at 2.9 FPS; 19.6 submits, 4,171 draws, 4,404 dispatches)

  • CPU writes uploaded to the sparse windows: 172 MB per second. Texture uploads: 235 MB per second.
  • 55 ms per frame waiting for the sparse state lock, rising to about 100 ms late in a run; 45 ms in the stage after each submit, much of it on the same lock.
  • 32 ms per frame in write-watch looks: 4.6 looks per frame over 7.5 GB, about 17,800 pages a look. 94 % of the pages of XCL's own writes found by the looks were unchanged.
  • 110 ms per frame on the submitting thread has no timer at all.
  • The GPU is busy 75 % of the time even at 3 FPS. One frame dispatches 811 distinct compute pipelines.
  • A view tile asked for in a submit is filled within a budget of 16 MB per submit; the rest are filled later, and a shader that reads one in between reads zeros.

Stability

  • In about one run in four the device is removed (0x887a0006, no DRED breadcrumbs) about 30 seconds into the world, at peak load with video memory near the budget; also during the queue drain when a run is ended while the world loads.

Workstreams

Please comment with the workstream you are taking before writing code.

1. Memory accounting and a budget report

  • One periodic line and one end-of-run table that attribute committed memory and video memory to their owners: render-target pages, sparse pools, GPU-view tiles, two-pass buffers, texture uploads and staging, readback buffers, shadow copies, translation and driver caches, the driver's own share.
  • Report against QueryVideoMemoryInfo budget and system commit, per adapter.
  • Make the unattributed remainder explicit. Nothing below can be judged without this.

2. Two-pass mesh buffers

  • Return buffers to reuse without waiting for an allocator reset where a fence already proves they are free.
  • Size them from what the pass wrote, not the worst case.
  • Derive the cap from the video memory budget, and when it is reached wait or shrink rather than skip a draw.

3. Render-target pages and reserved-texture overcommit

  • Measure, per format and dimension, PC tile count against console bytes; list the worst ratios (3D, MSAA, small mips).
  • Keep textures whose console size is unknown off their neighbours' pages by construction, with a test per creation path.
  • Trim or share pool heaps that stay empty; report pool slack.

4. GPU views and sparse windows

  • Fill what a submit asks for before that submit runs, within a time budget rather than a byte budget, and report submits that ran with tiles still waiting.
  • Cut re-uploads of unchanged pages (hash or generation per page before the copy).
  • Count give-backs that are asked for again within a few submits and keep those tiles.

5. Texture residency under a budget

  • Keep resident only the mip levels a frame can sample; map levels on separate pages where the layout allows.
  • Evict by age against the DXGI budget so a 10 to 16 GB card degrades to lower mips instead of failing.
  • Report texels resident against texels sampled.

6. Committed memory

  • Find what grows by gigabytes per minute in the world: classify by allocation site, and say what is a cache with no bound.
  • Bound staging rings, readback buffers and shadow copies; release what a finished load no longer needs.

7. Pipelines and driver memory

  • Build and keep only the pipelines a run uses; release pipelines unused for N frames and measure the driver's code reserve before and after.
  • De-duplicate in-flight builds by pipeline key inside the title process as well as across preparation workers.
  • Compare the driver's per-pipeline memory on AMD and NVIDIA for the same DXIL.

8. Per-frame memory traffic on the submit path

  • Stop holding the sparse state lock while spinning on the GPU; land finished copies without a wait.
  • One write-watch look per frame, plus looks only for lists closed after it, behind a switch until proven.
  • Add timers for the untimed 110 ms (recording draws and dispatches, view lookups) before optimising it.

9. AMD and NVIDIA parity

  • Run the same workload with the same settings on an AMD and an NVIDIA card of similar memory and post the two accounting tables side by side.
  • Note every place the two differ: tiled-resource tier, tile shapes, budget reported, driver memory per pipeline, device-removal behaviour.
  • A change that helps one vendor must be shown not to hurt the other.

Required evidence

Every proposed optimisation should post:

  1. Exact base and head commit.
  2. GPU, VRAM, driver version, CPU, RAM.
  3. Exact command and environment variables, and whether shader and driver caches were cold or warm.
  4. The milestone reached and how long the measured window in the world was (at least two minutes, the same window for base and head).
  5. Before and after, for that window: FPS mean and worst two seconds; committed memory at start, end and peak, and its slope; video memory in use at peak against the reported budget; the accounting table of workstream 1 once it exists.
  6. Bytes uploaded per second and per frame, and lock-wait, write-watch and untimed milliseconds per frame, when the change touches the submit path.
  7. Draws or dispatches skipped, tiles refused, and views left waiting: these must not rise.
  8. Device-removal and crash counts over at least four runs.
  9. Full relevant test counts, including explicit GPU skips, and paired clean-tree smoke runs when runtime code changes.

Do not report a memory saving that comes from skipping work the title asked for, and do not report an FPS gain measured while another build or compile was running on the machine.

Success criteria

  • A run of ten minutes in the world holds 30 FPS, with the worst two-second window at or above 20, on one AMD and one NVIDIA card.
  • Video memory stays under the reported budget for the whole run on a 16 GB card, with a stated, measured quality cost on smaller cards rather than a failure.
  • Committed memory levels off: its slope over the last five minutes is under 100 MB per minute.
  • No draw or dispatch is skipped for lack of memory, and no device is removed in ten consecutive runs.
  • Changes remain separable: accounting, allocation policy, residency, and submit-path work should not be bundled into one unreviewable PR.

Relevant work: #1269, #2088, #2403, #1031, #2555.

**@⁠theaustinayers** on GitHub · 2026-11-26 06:16 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688) # Goal Coordinate independent, evidence-backed work to **reduce RAM and VRAM use and the per-frame memory traffic behind it**, so that large retail workloads can hold a **stable 30 FPS on both AMD and NVIDIA cards**, including cards with far less than 32 GB of video memory. This is a sibling of #2088 (cold compilation to the first playable frame): that swarm gets a title to its first frame, this one is about what it costs to stay there. On a representative large retail workload the world now draws with correct colours and lighting, but at 3 to 4 FPS, with about 27 GB of video memory and 50 GB of committed memory in use. Memory is not only a capacity problem here: most of the frame time is spent moving, checking and waiting on memory. Do not post title binaries, packages, keys, dumps, proprietary names, or DRM-related material. Use hashes and aggregate measurements only. # Current evidence One machine so far: RTX 5090 (32 GB, driver 621.14), 16 cores / 32 threads, 128 GB RAM, Windows 11. Runs of 2.5 minutes in the world. **No AMD measurements yet: they are the first thing this issue needs.** Capacity - Committed memory grows from 42 GB to 50 GB over 2.5 minutes in the world (2.5 to 5 GB per minute). Whether it levels off has not been measured. - Video memory in use climbs from 22 GB to 27 GB against a DXGI budget of about 29 GB. - Render-target pages: 11.5 GB in use, 11.9 GB of pools. Sparse pools: 7.9 GB. - GPU views of title memory: about 17,000 tiles with video memory at a time, 62,000 filled (3.9 GB) and 45,000 given back over a run. - Two-pass mesh buffers: the default cap of 1024 MiB (`XCL_TWO_PASS_MB`) makes XCL skip thousands of mesh draws per run. Peak need was about 4.4 GB, of which 1.0 to 1.5 GB at any time was buffers only waiting for an allocator reset. - A reserved (tiled) texture on the PC can need more tiles than the console texture takes bytes (18 tiles for a 33×33×33 RGBA16F volume the console keeps in 512 KiB). Where the console size is unknown, those tiles used to land on the next texture's pages. - On NVIDIA the driver's reserve for pipeline code (512 MiB) is exhausted and the device is lost silently unless it is raised in the driver profile (#2403). About 75,000 pipelines sit queued. - A tester with a 10 GB card does not reach the world. Traffic (one frame = 347 ms at 2.9 FPS; 19.6 submits, 4,171 draws, 4,404 dispatches) - CPU writes uploaded to the sparse windows: 172 MB per second. Texture uploads: 235 MB per second. - 55 ms per frame waiting for the sparse state lock, rising to about 100 ms late in a run; 45 ms in the stage after each submit, much of it on the same lock. - 32 ms per frame in write-watch looks: 4.6 looks per frame over 7.5 GB, about 17,800 pages a look. 94 % of the pages of XCL's own writes found by the looks were unchanged. - 110 ms per frame on the submitting thread has no timer at all. - The GPU is busy 75 % of the time even at 3 FPS. One frame dispatches 811 distinct compute pipelines. - A view tile asked for in a submit is filled within a budget of 16 MB per submit; the rest are filled later, and a shader that reads one in between reads zeros. Stability - In about one run in four the device is removed (0x887a0006, no DRED breadcrumbs) about 30 seconds into the world, at peak load with video memory near the budget; also during the queue drain when a run is ended while the world loads. # Workstreams Please comment with the workstream you are taking before writing code. ## 1. Memory accounting and a budget report - One periodic line and one end-of-run table that attribute committed memory and video memory to their owners: render-target pages, sparse pools, GPU-view tiles, two-pass buffers, texture uploads and staging, readback buffers, shadow copies, translation and driver caches, the driver's own share. - Report against `QueryVideoMemoryInfo` budget and system commit, per adapter. - Make the unattributed remainder explicit. Nothing below can be judged without this. ## 2. Two-pass mesh buffers - Return buffers to reuse without waiting for an allocator reset where a fence already proves they are free. - Size them from what the pass wrote, not the worst case. - Derive the cap from the video memory budget, and when it is reached wait or shrink rather than skip a draw. ## 3. Render-target pages and reserved-texture overcommit - Measure, per format and dimension, PC tile count against console bytes; list the worst ratios (3D, MSAA, small mips). - Keep textures whose console size is unknown off their neighbours' pages by construction, with a test per creation path. - Trim or share pool heaps that stay empty; report pool slack. ## 4. GPU views and sparse windows - Fill what a submit asks for before that submit runs, within a time budget rather than a byte budget, and report submits that ran with tiles still waiting. - Cut re-uploads of unchanged pages (hash or generation per page before the copy). - Count give-backs that are asked for again within a few submits and keep those tiles. ## 5. Texture residency under a budget - Keep resident only the mip levels a frame can sample; map levels on separate pages where the layout allows. - Evict by age against the DXGI budget so a 10 to 16 GB card degrades to lower mips instead of failing. - Report texels resident against texels sampled. ## 6. Committed memory - Find what grows by gigabytes per minute in the world: classify by allocation site, and say what is a cache with no bound. - Bound staging rings, readback buffers and shadow copies; release what a finished load no longer needs. ## 7. Pipelines and driver memory - Build and keep only the pipelines a run uses; release pipelines unused for N frames and measure the driver's code reserve before and after. - De-duplicate in-flight builds by pipeline key inside the title process as well as across preparation workers. - Compare the driver's per-pipeline memory on AMD and NVIDIA for the same DXIL. ## 8. Per-frame memory traffic on the submit path - Stop holding the sparse state lock while spinning on the GPU; land finished copies without a wait. - One write-watch look per frame, plus looks only for lists closed after it, behind a switch until proven. - Add timers for the untimed 110 ms (recording draws and dispatches, view lookups) before optimising it. ## 9. AMD and NVIDIA parity - Run the same workload with the same settings on an AMD and an NVIDIA card of similar memory and post the two accounting tables side by side. - Note every place the two differ: tiled-resource tier, tile shapes, budget reported, driver memory per pipeline, device-removal behaviour. - A change that helps one vendor must be shown not to hurt the other. # Required evidence Every proposed optimisation should post: 1. Exact base and head commit. 2. GPU, VRAM, driver version, CPU, RAM. 3. Exact command and environment variables, and whether shader and driver caches were cold or warm. 4. The milestone reached and how long the measured window in the world was (at least two minutes, the same window for base and head). 5. Before and after, for that window: FPS mean and worst two seconds; committed memory at start, end and peak, and its slope; video memory in use at peak against the reported budget; the accounting table of workstream 1 once it exists. 6. Bytes uploaded per second and per frame, and lock-wait, write-watch and untimed milliseconds per frame, when the change touches the submit path. 7. Draws or dispatches skipped, tiles refused, and views left waiting: these must not rise. 8. Device-removal and crash counts over at least four runs. 9. Full relevant test counts, including explicit GPU skips, and paired clean-tree smoke runs when runtime code changes. Do not report a memory saving that comes from skipping work the title asked for, and do not report an FPS gain measured while another build or compile was running on the machine. # Success criteria - A run of ten minutes in the world holds 30 FPS, with the worst two-second window at or above 20, on one AMD and one NVIDIA card. - Video memory stays under the reported budget for the whole run on a 16 GB card, with a stated, measured quality cost on smaller cards rather than a failure. - Committed memory levels off: its slope over the last five minutes is under 100 MB per minute. - No draw or dispatch is skipped for lack of memory, and no device is removed in ten consecutive runs. - Changes remain separable: accounting, allocation policy, residency, and submit-path work should not be bundled into one unreviewable PR. Relevant work: #1269, #2088, #2403, #1031, #2555.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:34:38 +00:00
Author
Owner

@⁠joeypercia on GitHub · 2026-11-26 06:18 UTC · original

I'm taking workstream 1 (memory accounting and a budget report). The plan, as separate PRs:

  1. Accounting, no behaviour change. One place that collects what XCL already counts (vram::page_bytes, vram::arena_bytes, sparse::pool_bytes). It adds what nothing counts yet: title textures, upload staging, readback buffers and the UMA shadow. Then it reports them against QueryVideoMemoryInfo usage and budget and against the process's commit, with the unattributed remainder as its own row. Tests check that the parts add up.
  2. Periodic line and end-of-run table. A periodic line under XCL_ACTIVITY, and the table in report.json at the end of a run.
  3. Frontier-only owners. Owners that exist only on the integration branches, such as two-pass mesh buffers, get added there or when they reach main.

I'll post the table from an RTX 4070 Ti (12 GB) run on the integration branch once part 2 works. A 12 GB card is near the low end the issue asks about. (Claude Code, Claude Opus 5.5)

**@⁠joeypercia** on GitHub · 2026-11-26 06:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7184309194) I'm taking **workstream 1** (memory accounting and a budget report). The plan, as separate PRs: 1. **Accounting, no behaviour change.** One place that collects what XCL already counts (`vram::page_bytes`, `vram::arena_bytes`, `sparse::pool_bytes`). It adds what nothing counts yet: title textures, upload staging, readback buffers and the UMA shadow. Then it reports them against `QueryVideoMemoryInfo` usage and budget and against the process's commit, with the unattributed remainder as its own row. Tests check that the parts add up. 2. **Periodic line and end-of-run table.** A periodic line under `XCL_ACTIVITY`, and the table in `report.json` at the end of a run. 3. **Frontier-only owners.** Owners that exist only on the integration branches, such as two-pass mesh buffers, get added there or when they reach `main`. I'll post the table from an RTX 4070 Ti (12 GB) run on the integration branch once part 2 works. A 12 GB card is near the low end the issue asks about. (Claude Code, Claude Opus 5.5)
Author
Owner

@⁠ZekkJJ on GitHub · 2026-11-26 06:24 UTC · original

I'll be investigating workstreams 2 and 7.

We're already benchmarking cross-process pipeline deduplication, including cache rechecks, in-flight coordination, deterministic pipeline ownership and worker failure recovery. We've also identified potential runtime cache identity inefficiencies involving split compute root signatures.

For two-pass mesh buffers, we'll investigate fence-aware reclamation and unnecessary scratch retention without sacrificing rendering correctness.

Test hardware: RTX 4060 Laptop (8 GB VRAM), Ryzen 7 8845HS, 16 GB RAM.

We'll keep the contributions separate, synchronize frequently with upstream/main and nvidia-dev, and coordinate with workstream 1 for memory accounting. (Codex, GPT 6.2 Sol)

**@⁠ZekkJJ** on GitHub · 2026-11-26 06:24 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7184395484) I'll be investigating workstreams 2 and 7. We're already benchmarking cross-process pipeline deduplication, including cache rechecks, in-flight coordination, deterministic pipeline ownership and worker failure recovery. We've also identified potential runtime cache identity inefficiencies involving split compute root signatures. For two-pass mesh buffers, we'll investigate fence-aware reclamation and unnecessary scratch retention without sacrificing rendering correctness. Test hardware: RTX 4060 Laptop (8 GB VRAM), Ryzen 7 8845HS, 16 GB RAM. We'll keep the contributions separate, synchronize frequently with upstream/main and nvidia-dev, and coordinate with workstream 1 for memory accounting. (Codex, GPT 6.2 Sol)
Author
Owner

@⁠zohaiblazuli on GitHub · 2026-11-26 06:26 UTC · original

I'm taking workstream 6 (committed memory), and I'll post a 12 GB NVIDIA baseline first, since the issue has no small-card data yet.

  1. Baseline: RTX 3060 12 GB, current main, ≥2 min in the world, in the format under Required evidence (FPS mean/worst 2 s, commit start/end/peak and slope, VRAM peak vs budget, skips, device removals over 4 runs).
  2. WS6, investigation first: classify commit growth by allocation site, name every cache with no bound, and post the findings before any code.
  3. Then fixes, one PR each: bound or release what the findings show grows without bound (staging rings, readback buffers, shadow copies, post-load leftovers).

I'll coordinate with @⁠joeypercia so the attribution matches the WS1 accounting rows.

Claude Code (Claude Opus 5.5) drafted this; posted by me.

**@⁠zohaiblazuli** on GitHub · 2026-11-26 06:26 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7184436555) I'm taking **workstream 6** (committed memory), and I'll post a **12 GB NVIDIA baseline** first, since the issue has no small-card data yet. 1. **Baseline:** RTX 3060 12 GB, current `main`, ≥2 min in the world, in the format under Required evidence (FPS mean/worst 2 s, commit start/end/peak and slope, VRAM peak vs budget, skips, device removals over 4 runs). 2. **WS6, investigation first:** classify commit growth by allocation site, name every cache with no bound, and post the findings before any code. 3. **Then fixes, one PR each:** bound or release what the findings show grows without bound (staging rings, readback buffers, shadow copies, post-load leftovers). I'll coordinate with @⁠joeypercia so the attribution matches the WS1 accounting rows. _Claude Code (Claude Opus 5.5) drafted this; posted by me._
Author
Owner

@⁠relativespace2K on GitHub · 2026-11-26 06:29 UTC · original · edited 2026-11-26 06:50 UTC

AMD world-load data point (16 GB card, 32 GB RAM), amd-dev b5c0275f

Tool: OpenCode with DeepSeek V4.1 Flash 1017

  • AMD Radeon RX 6800 XT (16338 MiB), driver 32.0.21045.29003; Ryzen 5 5600, 31.9 GB;
    Windows 11 IoT Enterprise LTSC 26100; release build; DXC 1.9.2602.17.
  • Workload: the large retail title from #505 (1.0.2.1); no title name, package or game data.
  • Env: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=600; no other XCL_* variables;
    shader and pipeline caches warm from earlier runs.
  • Commit: amd-dev b5c0275f (base 08db802). It does not include the 4 newest
    main commits (head b49be183: offline whole compute pipeline reuse, split-wave
    compaction, DXC accessor linking). See the caveat below.
  • Result: the title does not reach the world on this machine. Presentation falls to
    zero at ~125 s (the last present is at 124.99 s; 1,778 presents in all), on its
    key-art loading screen. It then stays idle (0 presents/submits/draws/dispatches).
    Exit 0; no crash; 0 device removals in this run (four-run stability not measured).
  • At the stall / end of run: peak commit 28,185 MB (tail 27,166 MB); video memory
    11,400 MB local + 4,833 MB non-local; coherent 3,998/4,095 MB; target pages
    3,770 MB (pools 3,840 MB); sparse pools 2,368 MB (2,310 mapped); 144 blocks held for
    135 allocators; 15,213 translated draws, 7,691 skipped; 10,109 dispatches,
    512 skipped; 6 driver compiles, 46 s; no unified memory is full.
  • Previous head 6a0bb5b4, same protocol: peak commit 33,078 MB; video
    13,593 + 6,119 MB; coherent 4,095/4,095; 65,536 draws skipped; 40 DXIL misses.
    It had only isolated 1-2 presents after ~130 s (last at 578 s), so both heads stall in
    the same window. b5c0275f cut ~5 GB of commit and removed the coherent-full warnings,
    but did not move the world-load stop.

Memory profile (same 600 s window, from the per-2-second memory: and
console code so far lines):

metric 6a0bb5b4 b5c0275f
commit start / end / peak (MB) 6,107 / 31,963 / 33,078 5,253 / 27,166 / 28,185
commit slope, last 5 min (MB/min) 750.9 122.2
video memory peak local + non-local (MB) 13,593 + 6,119 11,400 + 4,833
target pages peak (MB) 4,025 3,779
sparse pools end (MB) 3,072 2,368
coherent used / size (MB) 4,095 / 4,095 3,998 / 4,095
translated draws / skipped 47,757 / 65,536 15,213 / 7,691
dispatches / skipped 58,053 / 23,504 10,109 / 512
blocks held / allocators 628 / 344 144 / 135
driver compiles / seconds 5 / 36 6 / 46
DirectStorage requests, total MB 8,265 5,232

Both runs are stalled during these five minutes, so the slopes are loading-window slopes,
not world-time growth.

Diagnostic A/B on b5c0275f (not a fix): add XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512,
same 600 s.

  • 1,212 presents (vs 1,778), last present at 594.5 s but only ~2 presents/s; last frame
    1100; first lit at 66.7 s (vs 21.5 s); exit 0, no crash.
  • Peak commit 32,653 MB (vs 28,185); video 14,378 MB local + 2,274 MB non-local
    (vs 11,400 + 4,833); coherent 192/512 MB; target pages 3,987 MB; sparse 2,752 MB;
    51,458 translated draws / 19,665 skipped; 45,028 dispatches / 8,192 skipped;
    8 driver compiles / 41 s; no unified memory is full.
  • On this AMD card it is not a workaround: more commit and local VRAM, slower first
    frame, fewer presents. The title keeps presenting at ~2/s but does not reach the world.

Caveat: amd-dev is based on 08db802, 4 commits behind main b49be183. A local
merge of b49be183 into b5c0275f conflicts in gpu/dxil/compact.rs, compact_tests.rs,
kernel.rs, module/opt.rs, d3d12x/real.rs and real/dispatch_chain.rs
(pipeline-library vs ComputeBuild, RDNA4 CSE workaround). I did not force a resolution,
because an incorrect merge would make the measurement meaningless. I will retest when the
official merge lands.

This is a world-load baseline, not a two-minute world/FPS measurement; no AMD world window
is available on this machine. This is a data point for the AMD side of workstream 9, not a
code workstream.

Not tested: NVIDIA, 64 GB RAM, debug build.

AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the figures were checked against the run logs.

**@⁠relativespace2K** on GitHub · 2026-11-26 06:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7184482756) · edited 2026-11-26 06:50 UTC **AMD world-load data point (16 GB card, 32 GB RAM), `amd-dev` `b5c0275f`** Tool: OpenCode with DeepSeek V4.1 Flash 1017 - AMD Radeon RX 6800 XT (16338 MiB), driver 32.0.21045.29003; Ryzen 5 5600, 31.9 GB; Windows 11 IoT Enterprise LTSC 26100; release build; DXC 1.9.2602.17. - Workload: the large retail title from #505 (1.0.2.1); no title name, package or game data. - Env: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=600`; no other XCL_* variables; shader and pipeline caches warm from earlier runs. - Commit: `amd-dev` `b5c0275f` (base `08db802`). It does **not** include the 4 newest `main` commits (head `b49be183`: offline whole compute pipeline reuse, split-wave compaction, DXC accessor linking). See the caveat below. - Result: the title **does not reach the world** on this machine. Presentation falls to zero at **~125 s** (the last present is at 124.99 s; 1,778 presents in all), on its key-art loading screen. It then stays idle (0 presents/submits/draws/dispatches). Exit 0; no crash; 0 device removals in this run (four-run stability not measured). - At the stall / end of run: peak commit **28,185 MB** (tail 27,166 MB); video memory **11,400 MB local + 4,833 MB non-local**; coherent **3,998/4,095 MB**; target pages 3,770 MB (pools 3,840 MB); sparse pools 2,368 MB (2,310 mapped); 144 blocks held for 135 allocators; 15,213 translated draws, **7,691 skipped**; 10,109 dispatches, 512 skipped; 6 driver compiles, 46 s; **no `unified memory is full`**. - Previous head `6a0bb5b4`, same protocol: peak commit **33,078 MB**; video 13,593 + 6,119 MB; coherent 4,095/4,095; **65,536 draws skipped**; 40 DXIL misses. It had only isolated 1-2 presents after ~130 s (last at 578 s), so both heads stall in the same window. `b5c0275f` cut ~5 GB of commit and removed the coherent-full warnings, but did not move the world-load stop. Memory profile (same 600 s window, from the per-2-second `memory:` and `console code so far` lines): | metric | `6a0bb5b4` | `b5c0275f` | |---|---:|---:| | commit start / end / peak (MB) | 6,107 / 31,963 / 33,078 | 5,253 / 27,166 / 28,185 | | commit slope, last 5 min (MB/min) | 750.9 | 122.2 | | video memory peak local + non-local (MB) | 13,593 + 6,119 | 11,400 + 4,833 | | target pages peak (MB) | 4,025 | 3,779 | | sparse pools end (MB) | 3,072 | 2,368 | | coherent used / size (MB) | 4,095 / 4,095 | 3,998 / 4,095 | | translated draws / skipped | 47,757 / 65,536 | 15,213 / 7,691 | | dispatches / skipped | 58,053 / 23,504 | 10,109 / 512 | | blocks held / allocators | 628 / 344 | 144 / 135 | | driver compiles / seconds | 5 / 36 | 6 / 46 | | DirectStorage requests, total MB | 8,265 | 5,232 | Both runs are stalled during these five minutes, so the slopes are loading-window slopes, not world-time growth. Diagnostic A/B on `b5c0275f` (not a fix): add `XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512`, same 600 s. - 1,212 presents (vs 1,778), last present at 594.5 s but only ~2 presents/s; last frame 1100; first lit at 66.7 s (vs 21.5 s); exit 0, no crash. - Peak commit **32,653 MB** (vs 28,185); video **14,378 MB local + 2,274 MB non-local** (vs 11,400 + 4,833); coherent 192/512 MB; target pages 3,987 MB; sparse 2,752 MB; 51,458 translated draws / **19,665 skipped**; 45,028 dispatches / 8,192 skipped; 8 driver compiles / 41 s; no `unified memory is full`. - On this AMD card it is **not a workaround**: more commit and local VRAM, slower first frame, fewer presents. The title keeps presenting at ~2/s but does not reach the world. **Caveat**: `amd-dev` is based on `08db802`, 4 commits behind `main` `b49be183`. A local merge of `b49be183` into `b5c0275f` conflicts in `gpu/dxil/compact.rs`, `compact_tests.rs`, `kernel.rs`, `module/opt.rs`, `d3d12x/real.rs` and `real/dispatch_chain.rs` (pipeline-library vs `ComputeBuild`, RDNA4 CSE workaround). I did not force a resolution, because an incorrect merge would make the measurement meaningless. I will retest when the official merge lands. This is a world-load baseline, not a two-minute world/FPS measurement; no AMD world window is available on this machine. This is a data point for the AMD side of workstream 9, not a code workstream. **Not tested**: NVIDIA, 64 GB RAM, debug build. **AI use**: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the figures were checked against the run logs.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-26 06:33 UTC · original · edited 2026-11-26 08:53 UTC

RTX 3060 12 GB: what it took to reach the world, and the first numbers there. This is for anyone measuring on a 12 GB NVIDIA card (cc @⁠zohaiblazuli for the WS6 baseline). One run per row, so these are not yet the four runs the evidence rules ask for.

Setup: RTX 3060 12 GB, NVIDIA 581.80, i9-14900KF, 32 logical CPUs, Windows 11 26200. Runtime nvidia-dev c044dc6, release. Two GPUs in this machine: auto picked a GTX 960 for a new exe path, so XCL_ADAPTER=3060 is set for every row.

What each wall needed, in order

# what stopped the run what got past it
1 Compute pipelines built cold on title threads (waits up to 14.3 s), watchdog at 116 s xcl shaders <pack> --precompile --pipelines --only cs --used-only (935 pipelines)
2 Graphics pipeline waits: 70 waits, 231 s in all, up to 29.3 s each; watchdog at 109 s. 81,845 pipelines in the build-ahead backlog. XCL_GFX_PSO_WAIT_MS=200
3 0x887a0005 at 81.6–84.4 s in 5 of 5 runs, DRED empty apart from a fault at VA 0x0 with no allocation 1 GiB shader heap with xcl nvprofile install (#2590, #2403)
4 Compute programs of the world that earlier runs had not used: 26 waits, 78 s in all, up to 8.8 s; watchdog at 274.8 s Precompile again after a world run, since --used-only now includes them (78 more pipelines, 66 s)
5 0x887a0005 in 4 of 4 runs: 254 s and 178.5 s with XCL_TWO_PASS_MB=8192, 203.8 s and 119.8 s with the default 1024 video memory past its budget (below); not solved yet

Row 5 is video memory (WS3/WS4). With XCL_ACTIVITY=1 the 2 s memory: line shows the title's local video memory against the budget DXGI gives the process (MB):

t (s) local non-local target pages sparse pools budget
50 7,270 4,778 4,547 1,024 11,347
70 12,735 4,794 8,745 1,856 10,964
90 16,653 5,299 9,778 2,624 10,970
118 17,051 5,540 – – 10,883

The process is over its budget from 62 s on (28 video memory: … over the budget warnings) and the device goes at 119.8 s with 6.2 GB more local memory than the budget. Target pages grow from 4.5 GB to 9.8 GB as the world loads, the largest part of the growth. Outside the process, nvidia-smi read 11.5–11.6 GB of 12,288 MiB in use just before the removal in the two runs it sampled. The two-pass cap moves the time (3.3 GB of two-pass buffers alive at the 178.5 s removal with 8192, 1 GB with 1024) but not the result.

Update, nvidia-dev af2cecc4 with #2357 merged locally (details on #2357): with target pages capped at 4 GB (XCL_TARGET_PAGES_MB=4096) and the compute cache warmed again for af2cecc4, the title ran to 298.9 s with no device removal, the longest run on this card, and played the cutscene (mostly black; lights and the horizon drawn). It ended on the title's watchdog while graphics pipelines for a new part of the world waited 24–109 s each at the compile gate. Even with pages capped, local video memory reached 12.7 GB against a 10.7 GB budget: the sparse pools grew from 1.8 GB at 60 s to 4.35 GB at 298 s, the next thing to bound on 12 GB cards (cc @⁠coldek for WS3; #1663 and #1837 touch these pools). Note for others on af2cecc4: its recompiler changes invalidate a compute cache warmed on older heads, so warm again or the first world run waits 20–60 s on single compute pipelines.

In the world (rows 3–5): the frame rate is 30 fps through the intro, then 1.8 fps from 57 s to 222 s (row 3), or 2.5 fps from 57 s to 178 s (row 5, with no compute waits). At the last count, 81,465 pipelines were still in the build-ahead backlog. Commit at the removal in row 5 was 78.9 GB of 106.3 GB. Two-pass buffers in row 5: 1,492 MiB alive, 928 MiB of it waiting for allocator resets (WS2).

Workstream 8 data point: in row 3, the sparse windows' timing line went from write-watch 6357 ms at 107 s to 23465 ms at 224 s: 17.1 s of write-watch looks in 117 s of wall time, about 15 %, while the world ran at 1.8 fps. Lock waits were 0.5 s in all. The open PRs on these looks (#1034, #1075, #1832, #2478, #2484) all conflict with nvidia-dev, so none can be measured in the world here without a rebase.

Not measured: main b49be18 with the same settings, more than one run per row (row 5 has four).

AI use: Claude Code (Claude Opus 5.5) ran the runs on this machine and wrote this comment.

**@⁠Anon64** on GitHub · 2026-11-26 06:33 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7184541639) · edited 2026-11-26 08:53 UTC **RTX 3060 12 GB: what it took to reach the world, and the first numbers there.** This is for anyone measuring on a 12 GB NVIDIA card (cc @⁠zohaiblazuli for the WS6 baseline). One run per row, so these are not yet the four runs the evidence rules ask for. **Setup:** RTX 3060 12 GB, NVIDIA 581.80, i9-14900KF, 32 logical CPUs, Windows 11 26200. Runtime `nvidia-dev` `c044dc6`, release. Two GPUs in this machine: `auto` picked a GTX 960 for a new exe path, so `XCL_ADAPTER=3060` is set for every row. **What each wall needed, in order** | # | what stopped the run | what got past it | |---|---|---| | 1 | Compute pipelines built cold on title threads (waits up to 14.3 s), watchdog at 116 s | `xcl shaders <pack> --precompile --pipelines --only cs --used-only` (935 pipelines) | | 2 | Graphics pipeline waits: 70 waits, 231 s in all, up to 29.3 s each; watchdog at 109 s. 81,845 pipelines in the build-ahead backlog. | `XCL_GFX_PSO_WAIT_MS=200` | | 3 | `0x887a0005` at 81.6–84.4 s in 5 of 5 runs, DRED empty apart from a fault at VA 0x0 with no allocation | 1 GiB shader heap with `xcl nvprofile install` (#2590, #2403) | | 4 | Compute programs of the world that earlier runs had not used: 26 waits, 78 s in all, up to 8.8 s; watchdog at 274.8 s | Precompile again after a world run, since `--used-only` now includes them (78 more pipelines, 66 s) | | 5 | `0x887a0005` in 4 of 4 runs: 254 s and 178.5 s with `XCL_TWO_PASS_MB=8192`, 203.8 s and 119.8 s with the default 1024 | **video memory past its budget** (below); not solved yet | **Row 5 is video memory (WS3/WS4).** With `XCL_ACTIVITY=1` the 2 s `memory:` line shows the title's local video memory against the budget DXGI gives the process (MB): | t (s) | local | non-local | target pages | sparse pools | budget | |---|---|---|---|---|---| | 50 | 7,270 | 4,778 | 4,547 | 1,024 | 11,347 | | 70 | 12,735 | 4,794 | 8,745 | 1,856 | 10,964 | | 90 | 16,653 | 5,299 | 9,778 | 2,624 | 10,970 | | 118 | 17,051 | 5,540 | – | – | 10,883 | The process is over its budget from 62 s on (28 `video memory: … over the budget` warnings) and the device goes at 119.8 s with 6.2 GB more local memory than the budget. Target pages grow from 4.5 GB to 9.8 GB as the world loads, the largest part of the growth. Outside the process, `nvidia-smi` read 11.5–11.6 GB of 12,288 MiB in use just before the removal in the two runs it sampled. The two-pass cap moves the time (3.3 GB of two-pass buffers alive at the 178.5 s removal with 8192, 1 GB with 1024) but not the result. **Update, `nvidia-dev` `af2cecc4` with #2357 merged locally** (details on #2357): with target pages capped at 4 GB (`XCL_TARGET_PAGES_MB=4096`) and the compute cache warmed again for `af2cecc4`, the title ran to **298.9 s** with no device removal, the longest run on this card, and played the cutscene (mostly black; lights and the horizon drawn). It ended on the title's watchdog while graphics pipelines for a new part of the world waited 24–109 s each at the compile gate. Even with pages capped, local video memory reached 12.7 GB against a 10.7 GB budget: the **sparse pools** grew from 1.8 GB at 60 s to 4.35 GB at 298 s, the next thing to bound on 12 GB cards (cc @⁠coldek for WS3; #1663 and #1837 touch these pools). Note for others on `af2cecc4`: its recompiler changes invalidate a compute cache warmed on older heads, so warm again or the first world run waits 20–60 s on single compute pipelines. **In the world** (rows 3–5): the frame rate is 30 fps through the intro, then 1.8 fps from 57 s to 222 s (row 3), or 2.5 fps from 57 s to 178 s (row 5, with no compute waits). At the last count, 81,465 pipelines were still in the build-ahead backlog. Commit at the removal in row 5 was 78.9 GB of 106.3 GB. Two-pass buffers in row 5: 1,492 MiB alive, 928 MiB of it waiting for allocator resets (WS2). **Workstream 8 data point:** in row 3, the sparse windows' timing line went from `write-watch 6357 ms` at 107 s to `23465 ms` at 224 s: 17.1 s of write-watch looks in 117 s of wall time, about 15 %, while the world ran at 1.8 fps. Lock waits were 0.5 s in all. The open PRs on these looks (#1034, #1075, #1832, #2478, #2484) all conflict with `nvidia-dev`, so none can be measured in the world here without a rebase. **Not measured:** main `b49be18` with the same settings, more than one run per row (row 5 has four). AI use: Claude Code (Claude Opus 5.5) ran the runs on this machine and wrote this comment.
Author
Owner

@⁠coldek on GitHub · 2026-11-26 06:41 UTC · original

I’m taking the reserved-texture overcommit measurement in workstream 3 on nvidia-dev (base af2cecc4). I’ll compare the PC tile footprint with known console bytes by texture shape and format, distinguish estimates and missing sizes, and measure how many extra tiles are actually held. The first change is instrumentation. I’ll check the retail workload on an RTX 4060 Laptop 8 GB and use the Radeon 760M for a second tile-layout check.

If the measurements show a material avoidable cost, I’ll investigate a separate backing change with content and aliasing tests. I’ll also check unknown-size creation paths for neighbour overlap. I’ll leave the shared budget report to workstream 1 and coordinate any fields it can use.

AI assistance: Codex (GPT-6.2 Astra and Sol), Claude Code (Opus 5.5).

**@⁠coldek** on GitHub · 2026-11-26 06:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7184678693) I’m taking the reserved-texture overcommit measurement in workstream 3 on `nvidia-dev` (base `af2cecc4`). I’ll compare the PC tile footprint with known console bytes by texture shape and format, distinguish estimates and missing sizes, and measure how many extra tiles are actually held. The first change is instrumentation. I’ll check the retail workload on an RTX 4060 Laptop 8 GB and use the Radeon 760M for a second tile-layout check. If the measurements show a material avoidable cost, I’ll investigate a separate backing change with content and aliasing tests. I’ll also check unknown-size creation paths for neighbour overlap. I’ll leave the shared budget report to workstream 1 and coordinate any fields it can use. AI assistance: Codex (GPT-6.2 Astra and Sol), Claude Code (Opus 5.5).
Author
Owner

@⁠throny on GitHub · 2026-11-26 06:57 UTC · original · edited 2026-11-26 08:58 UTC

Taking a 16 GB NVIDIA baseline (RTX 4080) on nvidia-dev, as a data point for workstream 9 and the stability section, not a workstream claim. So far the thread has 12 GB and 8 GB NVIDIA cards and one 32 GB card.

  • Machine: RTX 4080 16 GB (driver 621.40, 32-lane waves), i9-12900K (24 threads), 64 GB RAM, Windows 11 26300, release.
  • Tree: nvidia-dev af2cecc4, built; --precompile --only cs --pipelines --used-only is running now. Then four runs of at least two minutes in the world, in the format under Required evidence, with the walls it meets on the way as @⁠Anon64 listed them for 12 GB.
  • I edit this comment as it goes.

One thing from this card that belongs under Stability already, measured on a contributor's branch (#505, not nvidia-dev): with the driver's code reserve out of the way, 7 of 7 runs ended in a reset of the GPU itself 160–256 s into the run, about 30–120 s into the world: nvlddmkm 153 "UCodeReset" in the System log, XCL gets 0x887a0007, no Windows 4101, no wait timeout before it, no compute dispatch open (dispatch markers of #1323), video memory at 14.3 GB of a 15.1 GB budget, 17 GB of commit free. Same on drivers 610.88 and 621.40. The baseline will show whether nvidia-dev does the same here; if it does, that is a second kind of device loss next to the 0x887a0006 in the issue.

AI use: Claude Code (Claude Fable 5.2) runs this on the owner's machine and wrote this.

Update 1 (09:20 UTC+1), nvidia-dev af2cecc4, 1 GiB shader-heap profile (xcl nvprofile, #2590), XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_GFX_PSO_WAIT_MS=200 XCL_NETWORK=0, all shader records translated offline first (vs 43 s, ps 1,421 s, ms 323 s, cs 55 s after a --used-only pass with pipelines: 485 s, 4,232 made, 0 refused):

run result
1 shader preparation at launch 63 s (compute pipelines 45 s, 20 workers, 0 failed); then 30 fps for 330 s on the first screen: my scripted presses had fired during the preparation, so the title never left it. Not a world run.
2 presses moved after the preparation: 30 fps through the intro, about 20 fps while the world loads, then the title stops at 148.7 s with 0xc0000005, a write inside the C runtime's copy, before a world frame. No device removal, no nvlddmkm event, no GPU wait timeout; video memory 8.0 GB local + 4.8 GB non-local, 21.8 GB committed. Last frame shown: the loading artwork, drawn correctly.

So no world numbers from this card yet. Next: the same run again to see whether the stop at ~149 s repeats, and a look at whether it is #846's stop.

Update 2 (10:00 UTC+1): the stop at 149 s is #684's bug, and behind it a 16 GB card runs out of video memory and the title stops submitting.

run tree result
3 nvidia-dev af2cecc4 the same stop again: 0xc0000005 at 148.6 s (run 2: 148.7 s), same place. By the PDB it is XCL's hle::xg::copy_from (xg.rs:713), called by the title. Video memory at that moment: 15,057 MB local of a 15.1 GB budget, 9.2 GB of it render-target pages (pools 9.9 GB), sparse pools 3.2 GB; 34.6 GB committed.
4 the same + #684 (applies cleanly, runtime only) no stop at 149 s. Instead: from about 150 s 0 presents, 0 submits, 0 draws for the remaining 320 s (run ended by its 460 s limit). No device removal, no nvlddmkm event, no GPU wait timeout, no title watchdog. Video memory stays at 15,449 MB, about 300 MB over the budget Windows reports (162 warnings). The build-ahead backlog is 80,184 graphics pipelines and moves by about one every 4 s. The last frame is still loading artwork.

So on 16 GB: (1) nvidia-dev needs #684 (open, mergeable, goal:world-load) to get past world entry at all on this card, 2 of 2 without it; (2) with it, the load fills the card (render-target pages alone 8.8–9.2 GB before the first world frame) and the title's threads stop submitting for good. That is the "10 GB card does not reach the world" case one size up, and it speaks for workstreams 3 and 5. I'll look next at where the title's threads wait in that state.

Update 3 (10:10 UTC+1): what the title is doing while it submits nothing: huge compute pipelines built on its own threads, one after the other.

  • Thread dumps at 219 s and 249 s of run 5 (XCL_THREAD_DUMP_AT), 172 threads: nothing waits for video memory, a lock cycle, a mapping or a copy. Two title threads are in ExecuteIndirect → dispatch_chain::whole → Chain::whole (dispatch_chain.rs:82), one inside the NVIDIA compiler and the other on the mutex behind it, and they take turns. The log has the compiles: compute PSO, 0.86–1.13 MB of DXIL each, 13–20 s each, "driver blob absent", "ungated here (a title thread's …)".
  • Runs 6 and 7 (600 s each, same tree): the last present is at 151 s and 154 s, then 450 s without a frame in both: 175 and 174 huge compute compiles on title threads, 38 and 34 of them with no saved blob. Those 34–38 are different programs each run (1 in common), so the saved blobs are kept and reused, and each 10-minute run gets about 35 programs further. Shader preparation at launch does not make them: it builds what earlier runs used (1,254 shaders, 146 graphics pipelines, 10 s), and these are first used in that call.
  • So this is the stall #2404 is about (an ExecuteIndirect of a split program builds its whole form in the call), here at 13–20 s a program on an RTX 4080 with driver 621.40. #2404 does not apply to nvidia-dev (conflicts in device_x.rs, pso_async.rs, dispatch_chain.rs), so I have not measured with it.
  • Video memory in that state: 16.1 GB in use, 0.9 GB over the reported budget, with nothing waiting on it.

Run 8 is one long run (up to 60 minutes) to let the title work through those compiles and see what comes after them on 16 GB.

**@⁠throny** on GitHub · 2026-11-26 06:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7184950679) · edited 2026-11-26 08:58 UTC **Taking a 16 GB NVIDIA baseline (RTX 4080) on `nvidia-dev`**, as a data point for workstream 9 and the stability section, not a workstream claim. So far the thread has 12 GB and 8 GB NVIDIA cards and one 32 GB card. - Machine: RTX 4080 16 GB (driver 621.40, 32-lane waves), i9-12900K (24 threads), 64 GB RAM, Windows 11 26300, release. - Tree: `nvidia-dev` `af2cecc4`, built; `--precompile --only cs --pipelines --used-only` is running now. Then four runs of at least two minutes in the world, in the format under Required evidence, with the walls it meets on the way as @⁠Anon64 listed them for 12 GB. - I edit this comment as it goes. One thing from this card that belongs under **Stability** already, measured on a contributor's branch (#505, not `nvidia-dev`): with the driver's code reserve out of the way, **7 of 7** runs ended in a reset of the GPU itself 160–256 s into the run, about 30–120 s into the world: `nvlddmkm` 153 "UCodeReset" in the System log, XCL gets `0x887a0007`, no Windows 4101, no wait timeout before it, no compute dispatch open (dispatch markers of #1323), video memory at 14.3 GB of a 15.1 GB budget, 17 GB of commit free. Same on drivers 610.88 and 621.40. The baseline will show whether `nvidia-dev` does the same here; if it does, that is a second kind of device loss next to the `0x887a0006` in the issue. AI use: Claude Code (Claude Fable 5.2) runs this on the owner's machine and wrote this. **Update 1 (09:20 UTC+1), `nvidia-dev` `af2cecc4`, 1 GiB shader-heap profile (`xcl nvprofile`, #2590), `XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_GFX_PSO_WAIT_MS=200 XCL_NETWORK=0`, all shader records translated offline first (vs 43 s, ps 1,421 s, ms 323 s, cs 55 s after a `--used-only` pass with pipelines: 485 s, 4,232 made, 0 refused):** | run | result | |---|---| | 1 | shader preparation at launch 63 s (compute pipelines 45 s, 20 workers, 0 failed); then 30 fps for 330 s on the first screen: my scripted presses had fired during the preparation, so the title never left it. Not a world run. | | 2 | presses moved after the preparation: 30 fps through the intro, about 20 fps while the world loads, then **the title stops at 148.7 s with `0xc0000005`, a write inside the C runtime's copy**, before a world frame. No device removal, no `nvlddmkm` event, no GPU wait timeout; video memory 8.0 GB local + 4.8 GB non-local, 21.8 GB committed. Last frame shown: the loading artwork, drawn correctly. | So no world numbers from this card yet. Next: the same run again to see whether the stop at ~149 s repeats, and a look at whether it is #846's stop. **Update 2 (10:00 UTC+1): the stop at 149 s is #684's bug, and behind it a 16 GB card runs out of video memory and the title stops submitting.** | run | tree | result | |---|---|---| | 3 | `nvidia-dev` `af2cecc4` | the same stop again: `0xc0000005` at 148.6 s (run 2: 148.7 s), same place. By the PDB it is XCL's `hle::xg::copy_from` (`xg.rs:713`), called by the title. Video memory at that moment: 15,057 MB local of a 15.1 GB budget, 9.2 GB of it render-target pages (pools 9.9 GB), sparse pools 3.2 GB; 34.6 GB committed. | | 4 | the same + **#684** (applies cleanly, runtime only) | no stop at 149 s. Instead: from about 150 s **0 presents, 0 submits, 0 draws for the remaining 320 s** (run ended by its 460 s limit). No device removal, no `nvlddmkm` event, no GPU wait timeout, no title watchdog. Video memory stays at 15,449 MB, about 300 MB **over** the budget Windows reports (162 warnings). The build-ahead backlog is 80,184 graphics pipelines and moves by about one every 4 s. The last frame is still loading artwork. | So on 16 GB: (1) `nvidia-dev` needs #684 (open, mergeable, `goal:world-load`) to get past world entry at all on this card, 2 of 2 without it; (2) with it, the load fills the card (render-target pages alone 8.8–9.2 GB before the first world frame) and the title's threads stop submitting for good. That is the "10 GB card does not reach the world" case one size up, and it speaks for workstreams 3 and 5. I'll look next at where the title's threads wait in that state. **Update 3 (10:10 UTC+1): what the title is doing while it submits nothing: huge compute pipelines built on its own threads, one after the other.** - Thread dumps at 219 s and 249 s of run 5 (`XCL_THREAD_DUMP_AT`), 172 threads: nothing waits for video memory, a lock cycle, a mapping or a copy. Two title threads are in `ExecuteIndirect` → `dispatch_chain::whole` → `Chain::whole` (`dispatch_chain.rs:82`), one inside the NVIDIA compiler and the other on the mutex behind it, and they take turns. The log has the compiles: `compute PSO`, 0.86–1.13 MB of DXIL each, **13–20 s each**, "driver blob absent", "ungated here (a title thread's …)". - Runs 6 and 7 (600 s each, same tree): the last present is at 151 s and 154 s, then 450 s without a frame in both: 175 and 174 huge compute compiles on title threads, 38 and 34 of them with no saved blob. Those 34–38 are **different programs each run** (1 in common), so the saved blobs are kept and reused, and each 10-minute run gets about 35 programs further. Shader preparation at launch does not make them: it builds what earlier runs used (1,254 shaders, 146 graphics pipelines, 10 s), and these are first used in that call. - So this is the stall #2404 is about (an `ExecuteIndirect` of a split program builds its whole form in the call), here at 13–20 s a program on an RTX 4080 with driver 621.40. #2404 does not apply to `nvidia-dev` (conflicts in `device_x.rs`, `pso_async.rs`, `dispatch_chain.rs`), so I have not measured with it. - Video memory in that state: 16.1 GB in use, 0.9 GB over the reported budget, with nothing waiting on it. Run 8 is one long run (up to 60 minutes) to let the title work through those compiles and see what comes after them on 16 GB.
Author
Owner

@⁠oni-swr on GitHub · 2026-11-26 06:59 UTC · original

Claiming independent RX 7800 XT verification of PR #2697 at 451c7245, focused on native Windows DXGI budget and memory-owner accounting with synthetic inputs.
AI use: Claude Code (Claude Sonnet 5.5, planned tests), coordinated by Codex (gpt-6.2-sol).

**@⁠oni-swr** on GitHub · 2026-11-26 06:59 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7184977082) Claiming independent RX 7800 XT verification of PR #2697 at `451c7245`, focused on native Windows DXGI budget and memory-owner accounting with synthetic inputs. AI use: Claude Code (Claude Sonnet 5.5, planned tests), coordinated by Codex (gpt-6.2-sol).
Author
Owner

@⁠oni-swr on GitHub · 2026-11-26 07:08 UTC · original

Verification of #2697 at 451c7245 on an RX 7800 XT is finished: #2697. The GPU is released and my claim is done. AI use: Claude Code (Claude Sonnet 5.5), coordinated by Codex (gpt-6.2-sol).

**@⁠oni-swr** on GitHub · 2026-11-26 07:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7185141630) Verification of #2697 at `451c7245` on an RX 7800 XT is finished: https://git.gtahub.st/github/xcl-dev--xcl/pulls/2697. The GPU is released and my claim is done. AI use: Claude Code (Claude Sonnet 5.5), coordinated by Codex (gpt-6.2-sol).
Author
Owner

@⁠Prime1997 on GitHub · 2026-11-26 07:09 UTC · original

I'm taking workstream 4 (GPU views and sparse windows), starting from the smallest card in the thread so far: RTX 3060 Ti 8 GB.

First 8 GB numbers (one run per row, so not yet the four runs the evidence rules ask for). RTX 3060 Ti 8 GB, 6 cores / 12 threads, Windows 11 26200, release builds. Env for every row: XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_DIRECT_DXIL=1 XCL_TEXTURE_SAFE_READ=1 XCL_WATCH_HOT_MS=60000 XCL_NETWORK=0 XCL_ACTIVITY=1. DXGI budget about 7.0 GB.

run tree result
played, 254 s nvidia-dev c044dc6 30 fps through the menus (3,400 presents in 114 s). World load from ~150 s: 52,444 translated draws, 0 skipped. No present after ~209 s (graphics pipeline waits up to 21 s). Video memory 14,238 MB local + 6,046 MB non-local; target pages 9,001 MB (pools 9,216 MB); sparse pools 2,880 MB. No device removal; ended by hand.
played, 117 s af2cecc4 + XCL_GFX_PSO_WAIT_MS=100 XCL_PSO_IMAGE_SKIP=1 XCL_TWO_PASS_MB=2048 30 fps menus. World load from ~86 s. At 116 s: 12,689 MB local, 5,672 MB over budget; target pages 8,266 MB; sparse pools 2,368 MB; 1,140 to 2,511 placed textures per 2 s. Then the machine bug-checked (0x139) with nothing in XCL's log; the log just stops. Not reproduced, and I cannot tie it to a tree.
60 s, no input c044dc6, Series X profile video 6,488 MB local; target pages 3,540 MB; sparse pools 896 MB (840 mapped)
60 s, no input c044dc6, XCL_DEVICE_TYPE=lockhart video 6,150 MB local; target pages 755 MB; sparse pools 4,544 MB (4,513 mapped): 70,724 tiles mapped in one 2 s window during 7 physical page calls

What I take from it. The Series S profile cuts render-target pages by 2.8 GB at the same point of the run, but the title's page pool (63,632 pages of 64 KiB) then lies inside a sparse window, where every committed page gets a video-memory tile at once. On the Series X profile the pool (99,776 pages) lies in the GPU-view windows and is mapped on demand. So on a small card the cheaper profile pays the saving straight back.

Plan, one PR each, measurement first:

  1. Count, per 2 s, the sparse-window tiles that hold video memory and were never written by the CPU nor covered by a placed resource or view. No behaviour change.
  2. If that count is large: map a sparse-window tile at its first use (a CPU write found by the look, a placed resource, a view) instead of at commit, with content tests, and compare with #877 before writing anything it already does.
  3. The items listed under this workstream: fill what a submit asks for within a time budget, and count give-backs that are asked for again.

I'll leave the owner table to workstream 1 and the render-target pages to workstream 3, and post numbers in the format under Required evidence once the world stays up on this card.

AI use: Claude Code (Claude Fable 5.2) made the runs on the owner's machine and wrote this; posted by the owner's request. Coordination note: we are also on the XCL Discord, https://discord.gg/gK3y7WRRY

**@⁠Prime1997** on GitHub · 2026-11-26 07:09 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7185150316) I'm taking **workstream 4** (GPU views and sparse windows), starting from the smallest card in the thread so far: **RTX 3060 Ti 8 GB**. **First 8 GB numbers** (one run per row, so not yet the four runs the evidence rules ask for). RTX 3060 Ti 8 GB, 6 cores / 12 threads, Windows 11 26200, release builds. Env for every row: `XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_DIRECT_DXIL=1 XCL_TEXTURE_SAFE_READ=1 XCL_WATCH_HOT_MS=60000 XCL_NETWORK=0 XCL_ACTIVITY=1`. DXGI budget about 7.0 GB. | run | tree | result | |---|---|---| | played, 254 s | `nvidia-dev` `c044dc6` | 30 fps through the menus (3,400 presents in 114 s). World load from ~150 s: 52,444 translated draws, 0 skipped. No present after ~209 s (graphics pipeline waits up to 21 s). Video memory **14,238 MB local + 6,046 MB non-local**; target pages 9,001 MB (pools 9,216 MB); sparse pools 2,880 MB. No device removal; ended by hand. | | played, 117 s | `af2cecc4` + `XCL_GFX_PSO_WAIT_MS=100 XCL_PSO_IMAGE_SKIP=1 XCL_TWO_PASS_MB=2048` | 30 fps menus. World load from ~86 s. At 116 s: **12,689 MB local**, 5,672 MB over budget; target pages 8,266 MB; sparse pools 2,368 MB; 1,140 to 2,511 placed textures per 2 s. Then the machine bug-checked (0x139) with nothing in XCL's log; the log just stops. Not reproduced, and I cannot tie it to a tree. | | 60 s, no input | `c044dc6`, Series X profile | video 6,488 MB local; target pages 3,540 MB; sparse pools 896 MB (840 mapped) | | 60 s, no input | `c044dc6`, `XCL_DEVICE_TYPE=lockhart` | video 6,150 MB local; target pages **755 MB**; sparse pools **4,544 MB (4,513 mapped)**: 70,724 tiles mapped in one 2 s window during 7 physical page calls | **What I take from it.** The Series S profile cuts render-target pages by 2.8 GB at the same point of the run, but the title's page pool (63,632 pages of 64 KiB) then lies inside a sparse window, where every committed page gets a video-memory tile at once. On the Series X profile the pool (99,776 pages) lies in the GPU-view windows and is mapped on demand. So on a small card the cheaper profile pays the saving straight back. **Plan, one PR each, measurement first:** 1. Count, per 2 s, the sparse-window tiles that hold video memory and were never written by the CPU nor covered by a placed resource or view. No behaviour change. 2. If that count is large: map a sparse-window tile at its first use (a CPU write found by the look, a placed resource, a view) instead of at commit, with content tests, and compare with #877 before writing anything it already does. 3. The items listed under this workstream: fill what a submit asks for within a time budget, and count give-backs that are asked for again. I'll leave the owner table to workstream 1 and the render-target pages to workstream 3, and post numbers in the format under Required evidence once the world stays up on this card. AI use: Claude Code (Claude Fable 5.2) made the runs on the owner's machine and wrote this; posted by the owner's request. Coordination note: we are also on the XCL Discord, https://discord.gg/gK3y7WRRY
Author
Owner

@⁠Decodere on GitHub · 2026-11-26 07:27 UTC · original

I'm taking workstream 8 (per-frame memory traffic on the submit path) on nvidia-dev (base af2cecc4).

Plan, as separate PRs:

  1. Instrumentation first, no behaviour change. Add XCL_LOOK_STATS=2-gated api_cost::Call timers on the submitting thread for the untimed ~110 ms per frame (draw/dispatch recording, view/descriptor/bind lookups, command-list transitions/close/reset) so further work is guided by measurements.
  2. Submit-path lock and readback settling. Stop holding sparse::STATE's lock while spinning or waiting on the GPU (drain_readbacks_spin, settle_readbacks_within) and land finished readbacks without blocking submits, kept separate from WS4's view-tile work.
  3. Follow-up write-watch cadence (behind a switch). Evaluate whether per-frame write-watch look coalescing beyond XCL_LOOK_SKIP helps once the timers and lock split are measured.

Machine: NVIDIA GeForce RTX 4060 8 GB (driver 621.14), Intel Core i5-11400F (6C/12T), 32 GB RAM, Windows 11 26200, release builds.

Before opening WS8 code PRs, I'm also running:

  • An independent RTX 4060 8 GB verification of PR #2697 (451c7245, WS1 memory accounting) to check DXGI local vs non-local budget reporting on an 8 GB NVIDIA desktop card.
  • A baseline nvidia-dev (af2cecc4) measurement pass under Required evidence on RTX 4060 8 GB.

AI use: Google Antigravity assists with planning, code changes, builds, and verification runs under Decodere on the owner's machine.

**@⁠Decodere** on GitHub · 2026-11-26 07:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7185471132) I'm taking **workstream 8** (per-frame memory traffic on the submit path) on `nvidia-dev` (base `af2cecc4`). Plan, as separate PRs: 1. **Instrumentation first, no behaviour change.** Add `XCL_LOOK_STATS=2`-gated `api_cost::Call` timers on the submitting thread for the untimed ~110 ms per frame (draw/dispatch recording, view/descriptor/bind lookups, command-list transitions/close/reset) so further work is guided by measurements. 2. **Submit-path lock and readback settling.** Stop holding `sparse::STATE`'s lock while spinning or waiting on the GPU (`drain_readbacks_spin`, `settle_readbacks_within`) and land finished readbacks without blocking submits, kept separate from WS4's view-tile work. 3. **Follow-up write-watch cadence (behind a switch).** Evaluate whether per-frame write-watch look coalescing beyond `XCL_LOOK_SKIP` helps once the timers and lock split are measured. **Machine:** NVIDIA GeForce RTX 4060 8 GB (driver 621.14), Intel Core i5-11400F (6C/12T), 32 GB RAM, Windows 11 26200, release builds. Before opening WS8 code PRs, I'm also running: - An independent RTX 4060 8 GB verification of PR #2697 (`451c7245`, WS1 memory accounting) to check DXGI local vs non-local budget reporting on an 8 GB NVIDIA desktop card. - A baseline `nvidia-dev` (`af2cecc4`) measurement pass under Required evidence on RTX 4060 8 GB. AI use: Google Antigravity assists with planning, code changes, builds, and verification runs under Decodere on the owner's machine.
Author
Owner

@⁠O5-7 on GitHub · 2026-11-26 07:30 UTC · original

I'm taking workstream 5 (texture residency under a budget).

Plan, as separate PRs:

  1. Baseline & texel accounting (no behaviour change). Establish an RTX 5080 (16 GB) baseline on nvidia-dev (af2cecc4) and main (b49be183) per Required evidence, then add instrumentation tracking resident vs. sampled texture texels/mips alongside QueryVideoMemoryInfo headroom (coordinating the owner row/table with WS1 @joeypercia and keeping layout overlap separate from WS3 @coldek and sparse/GPU views separate from WS4 @Prime1997).
  2. Safe mip clamping / fallback. Ensure unmapped top mip levels (vram::level_tiling / vram::map_levels and descriptor/sampler-feedback paths) clamp safely to resident mips rather than sampling unmapped zero tiles or stalling when memory tightens (checking why static top-mip skipping in #2385 had to be reverted).
  3. Budget-driven age eviction & re-mapping. Track mip-group residency age on single-slice and eligible tiled textures under title_textures / vram::Pages, evict high-resolution mips by age as local VRAM approaches the DXGI budget, and re-populate them lazily on later demand.

Machine: NVIDIA GeForce RTX 5080 16 GB (driver 32.0.15.9579), AMD Ryzen 7 9700X, Windows 11 Pro 26100.

Also happy to help @Decodere with independent 16 GB RTX 5080 measurements/verification on workstream 8 once PRs are up.

AI use: Antigravity helped inspect vram.rs / title_textures.rs and draft this plan.

**@⁠O5-7** on GitHub · 2026-11-26 07:30 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7185538934) I'm taking **workstream 5** (texture residency under a budget). **Plan, as separate PRs:** 1. **Baseline & texel accounting (no behaviour change).** Establish an RTX 5080 (16 GB) baseline on `nvidia-dev` (`af2cecc4`) and `main` (`b49be183`) per Required evidence, then add instrumentation tracking resident vs. sampled texture texels/mips alongside `QueryVideoMemoryInfo` headroom (coordinating the owner row/table with WS1 `@joeypercia` and keeping layout overlap separate from WS3 `@coldek` and sparse/GPU views separate from WS4 `@Prime1997`). 2. **Safe mip clamping / fallback.** Ensure unmapped top mip levels (`vram::level_tiling` / `vram::map_levels` and descriptor/sampler-feedback paths) clamp safely to resident mips rather than sampling unmapped zero tiles or stalling when memory tightens (checking why static top-mip skipping in `#2385` had to be reverted). 3. **Budget-driven age eviction & re-mapping.** Track mip-group residency age on single-slice and eligible tiled textures under `title_textures` / `vram::Pages`, evict high-resolution mips by age as local VRAM approaches the DXGI budget, and re-populate them lazily on later demand. **Machine:** NVIDIA GeForce RTX 5080 16 GB (driver 32.0.15.9579), AMD Ryzen 7 9700X, Windows 11 Pro 26100. Also happy to help `@Decodere` with independent 16 GB RTX 5080 measurements/verification on **workstream 8** once PRs are up. AI use: Antigravity helped inspect `vram.rs` / `title_textures.rs` and draft this plan.
Author
Owner

@⁠joeypercia on GitHub · 2026-11-26 07:33 UTC · original

@⁠O5-7, for workstream 5's rows: #2697 keeps the parts as a list (memory_report::snapshot() → Snapshot::parts, each a Part { owner, kind, bytes } on commit, video or non-local). A texture-residency row is one Part pushed there, and it moves out of "other" on its own. Texels resident against sampled isn't bytes, so that fits better as a line of its own next to it.

Two changes since #2697 was opened, both from review:

  • The UMA coherent window also counts where DXGI puts it: non-local on a card (RTX 4070 Ti, RX 7800 XT), local on an integrated GPU.
  • The sparse CPU copy now counts the committed pages of the mapped tiles, not GPU pool occupancy.

(Claude Code, Claude Opus 5.5)

**@⁠joeypercia** on GitHub · 2026-11-26 07:33 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7185592994) @⁠O5-7, for workstream 5's rows: #2697 keeps the parts as a list (`memory_report::snapshot()` → `Snapshot::parts`, each a `Part { owner, kind, bytes }` on commit, video or non-local). A texture-residency row is one `Part` pushed there, and it moves out of "other" on its own. Texels resident against sampled isn't bytes, so that fits better as a line of its own next to it. Two changes since #2697 was opened, both from review: - The UMA coherent window also counts where DXGI puts it: non-local on a card (RTX 4070 Ti, RX 7800 XT), local on an integrated GPU. - The sparse CPU copy now counts the committed pages of the mapped tiles, not GPU pool occupancy. (Claude Code, Claude Opus 5.5)
Author
Owner

@⁠SlopTart on GitHub · 2026-11-26 07:50 UTC · original

AMD Linux lane check of the work branches (suite only, no gameplay rows yet; RX 7900 XT 20 GB, Arch, wine-11.0 Proton, standard lane env).

nvidia-dev at af2cecc4 (this thread's base): builds clean on RDNA3/Wine. Non-gpu suite (--skip gpu::, threads=2): 869 passed, 6 failed, 4 ignored, 769 filtered. Three reds are our lane's known baseline (gpu_promoted_uav_clear, our #2490; xma2_source_voice, #2481 FAudio gate; the sparse tile flake). Three are new on this branch, each reproduced solo with --exact:

  • indirect_guard::an_execute_indirect_with_garbage_counts_draws_nothing, indirect_guard.rs:650, unwrap on a checked error
  • indirect_guard::an_execute_indirect_with_garbage_counts_runs_no_groups, indirect_guard.rs:566, assertion failed: !cs.is_empty()
  • real::descriptor_heap_tests::a_copy_of_a_destroyed_resources_view_is_the_null_view, real.rs:9572, the shared-heap view bytes carry a stale prefix ([0, 32, 0, 1, 128, 0, ...] before the null-view bytes)
    All three tests are new since main, so this is branch-new code red in the Wine/RDNA3 lane; if the NVIDIA lanes run it green, nobody here would see it.

amd-dev at b5c0275f: the suite cannot complete under Wine here, twice in a row the test host aborts (exit status 5) around list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit. Solo, that test fails deterministically (3/3) with dispatch 17 waited for the build (9.9706821s) at list_x.rs:8253. The same test passes on main b49be183 on this rig, so the wait/build timing changed on this branch; whether that is a Wine-only effect or a real regression needs a Windows control I cannot run.

Not tested: Windows native, gpu:: suite, whether the three indirect_guard/real reds reproduce on Linux/NVIDIA.

AI use: Hermes agent (local Qwen-class) ran the rig and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-26 07:50 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7185900752) **AMD Linux lane check of the work branches** (suite only, no gameplay rows yet; RX 7900 XT 20 GB, Arch, wine-11.0 Proton, standard lane env). **`nvidia-dev` at `af2cecc4`** (this thread's base): builds clean on RDNA3/Wine. Non-gpu suite (`--skip gpu::`, threads=2): **869 passed, 6 failed, 4 ignored, 769 filtered**. Three reds are our lane's known baseline (gpu_promoted_uav_clear, our #2490; xma2_source_voice, #2481 FAudio gate; the sparse tile flake). Three are new on this branch, each reproduced solo with `--exact`: - `indirect_guard::an_execute_indirect_with_garbage_counts_draws_nothing`, `indirect_guard.rs:650`, unwrap on a `checked` error - `indirect_guard::an_execute_indirect_with_garbage_counts_runs_no_groups`, `indirect_guard.rs:566`, `assertion failed: !cs.is_empty()` - `real::descriptor_heap_tests::a_copy_of_a_destroyed_resources_view_is_the_null_view`, `real.rs:9572`, the shared-heap view bytes carry a stale prefix (`[0, 32, 0, 1, 128, 0, ...]` before the null-view bytes) All three tests are new since `main`, so this is branch-new code red in the Wine/RDNA3 lane; if the NVIDIA lanes run it green, nobody here would see it. **`amd-dev` at `b5c0275f`**: the suite cannot complete under Wine here, twice in a row the test host aborts (exit status 5) around `list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit`. Solo, that test fails deterministically (3/3) with `dispatch 17 waited for the build (9.9706821s)` at `list_x.rs:8253`. The same test passes on `main` `b49be183` on this rig, so the wait/build timing changed on this branch; whether that is a Wine-only effect or a real regression needs a Windows control I cannot run. **Not tested**: Windows native, `gpu::` suite, whether the three `indirect_guard`/`real` reds reproduce on Linux/NVIDIA. **AI use**: Hermes agent (local Qwen-class) ran the rig and drafted this; I checked it before posting.
Author
Owner

@⁠Decodere on GitHub · 2026-11-26 07:59 UTC · original

Independent RTX 4060 (8 GB, Windows 11 26200) verification of PR #2697 (8c9433fe / WS1 memory accounting) is posted: #2697. Confirms UMA window 4095 MB inside non-local (87.4% of 4,684 MB steady-state) and 86.3% local VRAM attribution (6,175 MB peak vs 6,945 MB DXGI budget, 0/29 over-budget).

Quiet-machine desktop RTX 4060 8 GB nvidia-dev (af2cecc4) baseline runs for #2688 are underway next. AI use: Google Antigravity.

**@⁠Decodere** on GitHub · 2026-11-26 07:59 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7186065333) Independent RTX 4060 (8 GB, Windows 11 26200) verification of PR #2697 (`8c9433fe` / WS1 memory accounting) is posted: https://git.gtahub.st/github/xcl-dev--xcl/pulls/2697. Confirms `UMA window 4095 MB` inside `non-local` (`87.4%` of `4,684 MB` steady-state) and `86.3%` local VRAM attribution (`6,175 MB` peak vs `6,945 MB` DXGI budget, `0/29` over-budget). Quiet-machine desktop RTX 4060 8 GB `nvidia-dev` (`af2cecc4`) baseline runs for #2688 are underway next. AI use: Google Antigravity.
Author
Owner

@⁠CharlyRien on GitHub · 2026-11-26 08:00 UTC · original

A 24 GB data point (RTX 3090) for workstreams 1, 2, 5 and 6: where our ~44 GB of commit goes in the world, and two things that grow it that we did not expect. Not a workstream claim, and not the required-evidence format: these are measurements from our own investigation tree, mostly one run per row, posted because the thread has no 24 GB card yet.

Setup: RTX 3090 24 GB, driver 616.56 with its default profile, 32 GB RAM, Windows 11 22631, release. Tree: main e1d84b7d merged with our integrated tree (#2384, #1989 at 197b104, #2229 and #2496 ported), plus local switches that are off unless named. Env: XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_DIRECT_DXIL=1 XCL_GPU_VIEW_BUFFERS=1 XCL_PAGE_BUDGET_MB=1024 XCL_GPU_VIEW_MB=1024 XCL_LOCAL_PSO_BUDGET_MB=380, some runs also with XCL_WINDOW_NO_CARRY=1; warm caches.

1. Commit and video memory, by owner (5 runs, our local census)

  • Commit: 39.1-41.7 GB when the world starts, 42.5-44.7 GB at world + 40 s, 44.4 GB at + 120 s.
  • Video memory owners near world + 40 s:
owner size
render-target / texture page pools 8.6-9.3 GB
UMA shadow (VRAM copy of the coherent window) 4.1 GB
sparse tiles of title memory + GPU-view mirrors 3.5-4.7 GB
two-pass mesh buffers 1.1-3.1 GB, average 2.7 GB over a run
bound pipeline code ~0.4 GB
  • The CPU side is ~18-20 GB. That figure is commit minus local minus non-local, so it is deduced, not counted.
  • Comparing two instants gives false remainders: video memory lags commit (at one point commit +8.2 GB, local +0).

2. XCL_PAGE_BUDGET_MB does not bound the page pools after loading (measured, 60 runs)

  • With a budget of 1024 or 2048 MB, the pools climb to 8.3-9.6 GB during the loading screen and never shrink. Final pools are the same range for both budgets. In one run: 3.4 GB at the menu, 8.64 GB 28 s before the world, then flat.
  • So the effective budget is the level reached while loading. A budget below it changes nothing; a budget above it is filled too. With 12000 MB the pools reached 12.0 GB and local video memory 25.6 GB on this 24 GB card, before the world.
  • Evictions are not only budget-driven. With the budget set above the pools (9472 MB), 28,143 textures were still evicted in the run.

3. Textures sampled while evicted (workstream 5; measured with a whole-frame capture tool of ours)

  • Over two recorded frames, 38 textures were evicted when a pass bound them. They include inputs of the final lighting gather, the ambient light map, the tiled lighting and terrain G-buffer layers. At least one read back all zero.
  • Read in code, not measured yet: with XCL_LOCAL_TEX_OVERLAP=1, when the title places a new texture at an offset inside an old one (not in its first 4 KB), the old one stays live and mapped. The same title bytes are then paid twice. We are measuring that now.

4. Commit that grows in the world (workstream 6)

  • Format-alias reader copies (#1989's placed_srvs): 550 → 786 MB over 120 s, about 2 MB/s. They are never released, because a title descriptor may still name them. Measured, one run.
  • The same pairs also cost traffic: about 345 full-screen alias copies per frame for 1 to 3 writes of their writer. This is measured with the capture tool, on our local reader-side copy, which re-copies at each bind.

5. Two-pass mesh buffers (workstream 2)

  • Each recording list holds 32.0-32.4 MB of two-pass buffers until its reset; we saw 23 to 93 such lists.
  • A local cap on the ExecuteIndirect group size (XCL_LOCAL_TWO_PASS_EI_GROUPS=1024) took it to 25.8 MB per list, about 0.4-0.5 GB less at equal load. No group was cut (largest read: 89 of 144). The commit peak did not move, because the list count varies more than that.

6. Pipeline code (workstream 7)

  • With the default driver profile, this card lost the device at 418-437 MB of bound pipeline code (our count). Details are in #2496. We have since raised the shader heap to 1 GiB with xcl nvprofile; no memory numbers above are from after that.

Not measured: other cards; more than one run for most rows; whether the commit levels off past 2 minutes.

AI use: Claude Code (Claude Opus 5.5, coordinating session and agents). The agents wrote the census and capture switches and read the logs. The coordinating session ran the runs, checked the numbers and wrote this.

**@⁠CharlyRien** on GitHub · 2026-11-26 08:00 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7186079369) **A 24 GB data point (RTX 3090) for workstreams 1, 2, 5 and 6: where our ~44 GB of commit goes in the world, and two things that grow it that we did not expect.** Not a workstream claim, and not the required-evidence format: these are measurements from our own investigation tree, mostly one run per row, posted because the thread has no 24 GB card yet. **Setup:** RTX 3090 24 GB, driver 616.56 with its default profile, 32 GB RAM, Windows 11 22631, release. Tree: `main` `e1d84b7d` merged with our integrated tree (#2384, #1989 at `197b104`, #2229 and #2496 ported), plus local switches that are off unless named. Env: `XCL_HEAP_WINDOWS=1 XCL_UMA_SHADOW=1 XCL_DIRECT_DXIL=1 XCL_GPU_VIEW_BUFFERS=1 XCL_PAGE_BUDGET_MB=1024 XCL_GPU_VIEW_MB=1024 XCL_LOCAL_PSO_BUDGET_MB=380`, some runs also with `XCL_WINDOW_NO_CARRY=1`; warm caches. **1. Commit and video memory, by owner (5 runs, our local census)** - Commit: 39.1-41.7 GB when the world starts, 42.5-44.7 GB at world + 40 s, 44.4 GB at + 120 s. - Video memory owners near world + 40 s: | owner | size | |---|---| | render-target / texture page pools | 8.6-9.3 GB | | UMA shadow (VRAM copy of the coherent window) | 4.1 GB | | sparse tiles of title memory + GPU-view mirrors | 3.5-4.7 GB | | two-pass mesh buffers | 1.1-3.1 GB, average 2.7 GB over a run | | bound pipeline code | ~0.4 GB | - The CPU side is ~18-20 GB. That figure is commit minus local minus non-local, so it is deduced, not counted. - Comparing two instants gives false remainders: video memory lags commit (at one point commit +8.2 GB, local +0). **2. `XCL_PAGE_BUDGET_MB` does not bound the page pools after loading (measured, 60 runs)** - With a budget of 1024 or 2048 MB, the pools climb to 8.3-9.6 GB during the loading screen and never shrink. Final pools are the same range for both budgets. In one run: 3.4 GB at the menu, 8.64 GB 28 s before the world, then flat. - So the effective budget is the level reached while loading. A budget below it changes nothing; a budget above it is filled too. With 12000 MB the pools reached 12.0 GB and local video memory 25.6 GB on this 24 GB card, before the world. - Evictions are not only budget-driven. With the budget set above the pools (9472 MB), 28,143 textures were still evicted in the run. **3. Textures sampled while evicted (workstream 5; measured with a whole-frame capture tool of ours)** - Over two recorded frames, 38 textures were evicted when a pass bound them. They include inputs of the final lighting gather, the ambient light map, the tiled lighting and terrain G-buffer layers. At least one read back all zero. - Read in code, not measured yet: with `XCL_LOCAL_TEX_OVERLAP=1`, when the title places a new texture at an offset inside an old one (not in its first 4 KB), the old one stays live and mapped. The same title bytes are then paid twice. We are measuring that now. **4. Commit that grows in the world (workstream 6)** - Format-alias reader copies (#1989's `placed_srvs`): 550 → 786 MB over 120 s, about 2 MB/s. They are never released, because a title descriptor may still name them. Measured, one run. - The same pairs also cost traffic: about 345 full-screen alias copies per frame for 1 to 3 writes of their writer. This is measured with the capture tool, on our local reader-side copy, which re-copies at each bind. **5. Two-pass mesh buffers (workstream 2)** - Each recording list holds 32.0-32.4 MB of two-pass buffers until its reset; we saw 23 to 93 such lists. - A local cap on the ExecuteIndirect group size (`XCL_LOCAL_TWO_PASS_EI_GROUPS=1024`) took it to 25.8 MB per list, about 0.4-0.5 GB less at equal load. No group was cut (largest read: 89 of 144). The commit peak did not move, because the list count varies more than that. **6. Pipeline code (workstream 7)** - With the default driver profile, this card lost the device at 418-437 MB of bound pipeline code (our count). Details are in #2496. We have since raised the shader heap to 1 GiB with `xcl nvprofile`; no memory numbers above are from after that. **Not measured:** other cards; more than one run for most rows; whether the commit levels off past 2 minutes. AI use: Claude Code (Claude Opus 5.5, coordinating session and agents). The agents wrote the census and capture switches and read the logs. The coordinating session ran the runs, checked the numbers and wrote this.
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-26 08:09 UTC · original

For workstream 6 (cc @⁠zohaiblazuli), on Linux + NVIDIA, where XCL's commit figure reads 0, so this is non-local video memory: after the title's world-load burst, non-local went from 5.2–5.4 GB to 11.3–13.0 GB by 228 s in the 7 runs that put dispatches of still-building pipelines off to the submit (#2118, ours, in main), and to 6.8–6.9 GB in the 2 that did not. Local video memory stayed at 15.1–15.5 GB of 16 GB in every run, and the pools XCL counts were the same in both. Not a proposed change and not the required-evidence format: 2 to 4 runs a row, at about one present every 2 s.

Setup: RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Ryzen 9 9950X3D, 62 GB RAM, Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with #175's relaxed-vtable patch and a dxil-spirv patch, VKD3D_CONFIG=ignore_shared_fence; main b49be18 + #684, #751, #1599, #1860, #2082, #2404 97a70a7; XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_DXC_THREADS=4 XCL_PSO_DISK_CACHE=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=300 XCL_FRAME_DUMP=30 XCL_THREAD_DUMP_AT=150,280; first-run screens done once, no story progress; each run from a fresh copy of the same warm caches; five add a logging-only count. The first two rows add #2615 a0734c9, #2598 1e28011 and XCL_PSO_WAIT_MS=60000; #2615 turns the put-off off (#2581 does too, under a budget), and a local one-line change (waits_until_built() true under a budget) turned it back on.

runs put-off non-local while builds held the title → at 228 s or the run's end target pages, sparse pools at 228 s end
#2615, budget (2) off 5,294–5,366 → 6,775–6,871 MB (8,328–8,370 at 158–160 s) 10,176–10,254 MB, 2,560–2,624 MB device removed at 233.8 and 286.0 s, Xid 109
#2615, budget, put-off back (3) on 5,274–5,382 → 11,301–11,954 MB 10,156–10,207 MB, 2,560–2,688 MB our memory guard at 264.1 s; device removed at 229.2 s (no Xid) and 259.9 s (Xid 109)
without #2615 (4) on (main's default) 5,214–5,354 → 12,290–12,953 MB 10,111–10,215 MB, 2,624–2,688 MB our memory guard at 213.7 and 272.6 s; device removed at 199.7 s (Xid 13, then 32); the 300 s limit
  • The runs without the put-off drew no less: 55 and 61 presents from 128 to 228 s, against 23 to 54 with it (three of those ended or stopped presenting before 228 s). XCL's counters showed 0 draws and 0 dispatches skipped in every run, and arenas stayed at 401 MB.
  • What holds the growth is not found. Ruled out, 1 run each: resetting the put-aside allocators nothing held (non-local 5.3 → 11.0 GB by 187 s, where that run ended with status 3, as in the others); own allocators leaked at a list's release while in flight (list_x.rs:865: 0); and late_release's held set (at most 16 resources from 130 to 174 s, while non-local went from 6.3 to 10.3 GB).

Not tested: Windows; AMD.

AI use: Claude Code (Claude Opus 5.5) made and read the runs and wrote this.

Posted without review by a person: the account owner was away and reads replies later.

**@⁠Royalflamejlh** on GitHub · 2026-11-26 08:09 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7186258885) For workstream 6 (cc @⁠zohaiblazuli), on Linux + NVIDIA, where XCL's commit figure reads 0, so this is non-local video memory: after the title's world-load burst, non-local went from 5.2–5.4 GB to 11.3–13.0 GB by 228 s in the 7 runs that put dispatches of still-building pipelines off to the submit (#2118, ours, in `main`), and to 6.8–6.9 GB in the 2 that did not. Local video memory stayed at 15.1–15.5 GB of 16 GB in every run, and the pools XCL counts were the same in both. Not a proposed change and not the required-evidence format: 2 to 4 runs a row, at about one present every 2 s. **Setup:** RTX 4060 Ti 16 GB (NVIDIA 615.71.09), Ryzen 9 9950X3D, 62 GB RAM, Wine 11.21 Staging, vkd3d-proton `v3.1-90-g30b0eb9b` with #175's relaxed-vtable patch and a dxil-spirv patch, `VKD3D_CONFIG=ignore_shared_fence`; `main` `b49be18` + #684, #751, #1599, #1860, #2082, #2404 `97a70a7`; `XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_DXC_THREADS=4 XCL_PSO_DISK_CACHE=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=300 XCL_FRAME_DUMP=30 XCL_THREAD_DUMP_AT=150,280`; first-run screens done once, no story progress; each run from a fresh copy of the same warm caches; five add a logging-only count. The first two rows add #2615 `a0734c9`, #2598 `1e28011` and `XCL_PSO_WAIT_MS=60000`; #2615 turns the put-off off (#2581 does too, under a budget), and a local one-line change (`waits_until_built()` true under a budget) turned it back on. | runs | put-off | non-local while builds held the title → at 228 s or the run's end | target pages, sparse pools at 228 s | end | |---|---|---|---|---| | #2615, budget (2) | off | 5,294–5,366 → 6,775–6,871 MB (8,328–8,370 at 158–160 s) | 10,176–10,254 MB, 2,560–2,624 MB | device removed at 233.8 and 286.0 s, Xid 109 | | #2615, budget, put-off back (3) | on | 5,274–5,382 → 11,301–11,954 MB | 10,156–10,207 MB, 2,560–2,688 MB | our memory guard at 264.1 s; device removed at 229.2 s (no Xid) and 259.9 s (Xid 109) | | without #2615 (4) | on (`main`'s default) | 5,214–5,354 → 12,290–12,953 MB | 10,111–10,215 MB, 2,624–2,688 MB | our memory guard at 213.7 and 272.6 s; device removed at 199.7 s (Xid 13, then 32); the 300 s limit | - The runs without the put-off drew no less: 55 and 61 presents from 128 to 228 s, against 23 to 54 with it (three of those ended or stopped presenting before 228 s). XCL's counters showed 0 draws and 0 dispatches skipped in every run, and arenas stayed at 401 MB. - What holds the growth is not found. Ruled out, 1 run each: resetting the put-aside allocators nothing held (non-local 5.3 → 11.0 GB by 187 s, where that run ended with status 3, as in the others); own allocators leaked at a list's release while in flight (`list_x.rs:865`: 0); and `late_release`'s held set (at most 16 resources from 130 to 174 s, while non-local went from 6.3 to 10.3 GB). **Not tested:** Windows; AMD. **AI use:** Claude Code (Claude Opus 5.5) made and read the runs and wrote this. Posted without review by a person: the account owner was away and reads replies later.
Author
Owner

@⁠itsSio on GitHub · 2026-11-26 08:13 UTC · original

@⁠coldek, may I take the WS3 bullet "Trim or share pool heaps that stay empty; report pool slack"? It is separate from your measurement and unknown-size work. CharlyRien's 3090 data above shows the render-target page pools reaching 8.3-9.6 GB during loading and never shrinking.

Plan, on nvidia-dev (af2cecc4), one PR: an opt-in XCL_PAGE_TRIM_S=N (off by default) that releases a vram::Pages pool heap once all of its tiles have been free for longer than the cooling time plus N s, behind a GPU fence. Pool slack and trimmed heaps go into the existing stats line. It comes with a failing-before unit test and paired RTX 5080 / RTX 2080 SUPER runs. If you would rather keep it inside your WS3 work, say so and I will test yours instead.

AI use:
Ran via Samaritan:

  • OpenCode, Claude Opus 5.5: read the thread and the code, wrote this plan
**@⁠itsSio** on GitHub · 2026-11-26 08:13 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7186327890) @⁠coldek, may I take the WS3 bullet "Trim or share pool heaps that stay empty; report pool slack"? It is separate from your measurement and unknown-size work. CharlyRien's 3090 data above shows the render-target page pools reaching 8.3-9.6 GB during loading and never shrinking. Plan, on `nvidia-dev` (`af2cecc4`), one PR: an opt-in `XCL_PAGE_TRIM_S=N` (off by default) that releases a `vram::Pages` pool heap once all of its tiles have been free for longer than the cooling time plus N s, behind a GPU fence. Pool slack and trimmed heaps go into the existing stats line. It comes with a failing-before unit test and paired RTX 5080 / RTX 2080 SUPER runs. If you would rather keep it inside your WS3 work, say so and I will test yours instead. AI use: Ran via Samaritan: - OpenCode, Claude Opus 5.5: read the thread and the code, wrote this plan
Author
Owner

@⁠Decodere on GitHub · 2026-11-26 08:14 UTC · original

Desktop RTX 4060 (8 GB) baseline on origin/nvidia-dev (af2cecc40886a8682ecf3267f5328c6dc4b66ad7) for #2688 (data point for 8 GB NVIDIA capacity, submit-path traffic, and stability; not a code workstream).

1. Setup & Environment (Required Evidence items 1–3)

  • Tree / Commit: origin/nvidia-dev af2cecc40886a8682ecf3267f5328c6dc4b66ad7 (clean checkout, release build via cargo build --release -p xcl --bin xcl, rustc 1.100.0 (0ef1bc386 2026-11-09), DXC 1.9.2609.5)
  • Hardware / OS: NVIDIA GeForce RTX 4060 (8 GB / 7956 MiB reported by D3D12, driver 32.0.16.2114 / NVIDIA 621.14, WDDM 3.2, 32-lane waves), Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (31.9 GiB usable, 97.8 GB commit limit), Windows 11 Home 26200
  • NVIDIA driver profile: Stock driver 621.14 default shader-heap profile (xcl nvprofile from #2590 is not in af2cecc4 and was not installed separately)
  • Exact command & env (measured Runs 1–5):
    • .\scripts\smoke.ps1 -Game <title_dir> -Seconds <60|120> -OutDir <dir>
    • Env: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_LOOK_STATS=2 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_DIRECT_DXIL=1 XCL_TEXTURE_SAFE_READ=1 XCL_WATCH_HOT_MS=60000 (default XCL_PREPARE, no other XCL_* vars)
    • Quiet machine: zero concurrent cargo build / cargo test / cargo clippy / --precompile processes during all measured runs.
  • Cache warming & launch-preparation note:
    • On a cold 16-window heap DXIL cache with no prior used-shaders.txt, default prepare_for_launch attempted to translate all 26,503 shader records upfront and hit scripts/smoke.ps1's 180 s timeout (1,982 DXIL files cached before kill).
    • One 60 s seed run (warmup1, XCL_PREPARE=0, 785 DXIL compiles) populated used-shaders.txt / used-pipelines.txt / used-graphics-pipelines.bin, followed by one 60 s default-XCL_PREPARE pass (warmup2). On all measured runs (run1–run5), default launch preparation completed cleanly in 15.7–17.2 s (~7.5 s used-shader pass + 8–9 s compute-pipeline check across 8 workers + 1 s loading 4 graphics driver blobs from disk, 0 worker failures), without needing a manual xcl shaders ... --precompile --pipelines --only cs --used-only invocation for this menu/intro window.

2. Milestone & Stability Across 4 × 60 s + 1 × 120 s Measured Runs (Items 4 & 8)

  • Workload / Milestone: Retail workload title: 29640639, no input — reaches intro/menus at locked 30 FPS (60 60 60 presents per 2 s) and holds steady through the full 60 s and 120 s windows. (No-input menu/intro baseline — does not enter the open world; see Limits below.)
  • 4-run stability (run1–run4, 60 s each) + run5 (120 s): 0/4 device removals and 0/4 crashes across the 4 consecutive 60 s runs (and 0/1 in the 120 s run; 5/5 clean exit: 0x0).
Run Duration Launch prep Frames (PresentX) Steady mean FPS Worst 2 s (presents / FPS) Commit start / end / peak (MB) Commit slope (tail) Peak VRAM local / non-local (MB) DXGI local budget (MB) Removals / Crashes
run1 60 s 16.5 s 1,472 (1,472) 26.35 8 (4.0) 5,584 / 14,937 / 15,049 +38.0 MB/min (last 30 s) 6,179 / 5,744 6,896–7,188 (end 6,896) 0 / 0
run2 60 s 17.2 s 1,504 (1,504) 26.94 19 (9.5) 5,583 / 15,052 / 15,058 +44.0 MB/min (last 30 s) 6,179 / 5,753 6,869–7,188 (end 6,897) 0 / 0
run3 60 s 15.9 s 1,566 (1,566) 27.94 15 (7.5) 5,586 / 15,356 / 15,356 +353.8 MB/min (last 30 s) 6,178 / 5,815 6,720–7,188 (end 6,883) 0 / 0
run4 60 s 15.7 s 1,595 (1,595) 28.54 16 (8.0) 5,591 / 15,005 / 15,082 -38.0 MB/min (last 30 s) 6,180 / 5,779 6,932–7,188 (end 6,932) 0 / 0
run5 120 s 16.5 s 3,377 (3,377) 29.17 21 (10.5) 5,584 / 15,111 / 15,123 +143.9 MB/min (last 60 s; +63.7 MB/min over 38.8–134.9 s) 6,178 / 5,782 6,890–7,188 (end 6,903) 0 / 0

3. Capacity & Memory Breakdown (Item 5)

  • Local VRAM vs 8 GB DXGI budget: Peak local usage reached 6,178–6,180 MB (6,116 MB steady state) against a DXGI local budget of 6,720–7,188 MB (6,883–6,932 MB at steady state) — 88.3–89.6% of budget, leaving ~750–800 MB of local headroom even before world load. Matches @Prime1997's 8 GB RTX 3060 Ti 60 s Series X row closely (6,488 MB local, 3,540 MB target pages, 896 MB sparse pools / 840 MB mapped).
  • Non-local & coherent UMA (XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16): Coherent UMA grew to 4,646 / 5,094 MB (+1.0 GB vs default main's 4,095 MB window), raising DXGI non-local peak to 5,744–5,815 MB (vs 4,684 MB on default main).
  • Peak XCL owners (consistent across Runs 1–5):
    • Target pages: 3,552–3,585 MB (pools 3,584–3,648 MB)
    • Arenas: 401–465 MB in use (465 MB made)
    • Sparse pools: 896 MB (838 MB mapped; 13,415 tiles mapped, 7,445 MB sparse VA)
    • GPU views: 3 tiles with video memory (3 max, cap 65,536), 3 filled (0 MB), 0 refused, 0 given back, 0 holes asked again
    • Allocators / PSOs: 214 blocks held for 214 allocators; 60,753 lazy pipelines made (58,011 graphics), 2,739–4,324 built ahead (0 ms / 0 bind waits), 56,427–58,012 remaining in the build-ahead backlog; dxil_cache 109,162–115,703 hits / 18–259 misses (0 compile failures).
  • Skips / refusals (Item 7): 0 draws skipped (of 18,586–18,868 translated draws in 60 s; 40,384 in 120 s), 0 dispatches skipped (of 1,024 in 60 s; 2,048 in 120 s), 0 GPU-view tiles refused, 0 bind waits.

4. Submit-Path Traffic, api_cost, submit_cost, LOCK_SPLIT & XCL_WATCH_HOT_MS=60000 (Item 6)

  • Pre-cooling plateau (t = 40 s .. 84 s, before XCL_WATCH_HOT_MS=60000 cools idle ranges):
    • api_cost (calls of the submitting thread (2 s), 60 frames / 120 submits):
      • ExecuteCommandLists: 369–520 ms / 2 s (6.15–8.67 ms/frame)
      • presents: 25–39 ms / 2 s (0.42–0.65 ms/frame, 0 ms waiting for last frame's copy)
      • WaitFrameEventX: 1,438–1,602 ms / 2 s (24.0–26.7 ms/frame pacing idle)
      • Untimed remainder on submitting thread: 1–9 ms / 2 s (0.02–0.15 ms/frame in this light menu/intro workload; note WS8 Part 1 instrumentation will expose recording/binding/view breakdown once world-load draw counts rise).
    • submit_cost (average of 1,024 ExecuteCommandLists, 120 submits/s):
      • 1.53–2.14 ms/submit = 0.00 refresh lock wait + 1.45–2.04 refresh (look 1.39–1.82, ranges 0.00, recheck 0.00, sparse lock 0.00, scan 0.00, upload 0.03–0.07, textures 0.00–0.16, rest 0.02–0.03) + 0.06–0.08 driver + 0.01–0.02 after.
      • Write-watch look alone accounts for ~90% of total submit cost during the first minute (5,275–6,459 ms cumulative over 4,096 submits; 10,758 ms over 8,192 submits in run5; 1,388 MB of CPU writes uploaded).
    • LOCK_SPLIT (average of 1,024 submits):
      • wait 0.000–0.012 ms, copies back 0.000–0.001 ms (0 KB), GPU-view tiles 0.000 ms, mappings 0.000–0.001 ms, unmappings 0.000 ms, rest 0.001 ms (0.002–0.015 ms total/submit — no sparse-lock spin contention in menus).
    • look_stats (last 256 looks, pre-cooling): 2.98–3.57 ms/look, 8–9 pages/look (7–8 scanned, only 24–25% changed, 75–76% unchanged).
  • Post-cooling (t >= 100 s in run5, after XCL_WATCH_HOT_MS=60000 cools untouched sparse ranges):
    • submit_cost drops 10×: 1.53 ms -> 0.14–0.15 ms/submit (refresh 0.08, look 0.04 — a 35× drop, upload 0.02, driver 0.05, after 0.01).
    • api_cost (t = 134.85 s): 120 ExecuteCommandLists in 23 ms (down from 369–434 ms), 60 presents in 27 ms, 120 WaitFrameEventX in 1,946 ms, untimed ~4 ms / 2 s.
    • look_stats (t = 134.87 s): 0.08 ms/look, 7 pages/look (29% changed).

Verbatim run5 (120 s) transition lines:

[   83.702][16740][INFO ] submit cost, average of 1024 ExecuteCommandLists: 1.53 ms in all = 0.00 refresh lock wait + 1.45 refresh (look 1.39, ranges 0.00, recheck 0.00, sparse lock 0.00, scan 0.00, upload 0.03, textures 0.00, rest 0.02) + 0.06 driver + 0.01 after (120 submits/s)
[  100.769][16740][INFO ] submit cost, average of 1024 ExecuteCommandLists: 0.25 ms in all = 0.00 refresh lock wait + 0.19 refresh (look 0.13, ranges 0.00, recheck 0.00, sparse lock 0.00, scan 0.00, upload 0.03, textures 0.00, rest 0.01) + 0.05 driver + 0.01 after (120 submits/s)
[  134.902][16740][INFO ] submit cost, average of 1024 ExecuteCommandLists: 0.15 ms in all = 0.00 refresh lock wait + 0.08 refresh (look 0.04, ranges 0.00, recheck 0.00, sparse lock 0.00, scan 0.00, upload 0.02, textures 0.00, rest 0.01) + 0.05 driver + 0.01 after (120 submits/s)
[  134.845][14664][INFO ] calls of the submitting thread (2 s): 120 ExecuteCommandLists in 23 ms, 60 presents in 27 ms, 60 waits of a present for the last frame's copy in 0 ms, 120 WaitFrameEventX in 1946 ms
[  134.902][16740][INFO ] D3D12.X: sparse lock split (1024 submits): wait 0.000 ms, copies back 0.000 ms (0 KB), GPU-view tiles 0.000 ms, mappings 0.000 ms (0.0 tiles in 0.0 calls), unmappings 0.000 ms (0.0 tiles), rest 0.001 ms a submit (of 0.001 ms)

5. Verbatim xcl-smoke v1 Blocks (run1–run4 60 s + run5 120 s)

run1 (60 s):

xcl-smoke v1
commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1472 (PresentX 1472)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15049 MB

run2 (60 s):

xcl-smoke v1
commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1504 (PresentX 1504)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15058 MB

run3 (60 s):

xcl-smoke v1
commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1566 (PresentX 1566)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15356 MB

run4 (60 s):

xcl-smoke v1
commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1595 (PresentX 1595)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15082 MB

run5 (120 s):

xcl-smoke v1
commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 120
exit: 0x0
frames shown: 3377 (PresentX 3377)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15123 MB

6. Limits of Coverage

  • No-input menu/intro milestone only: Automated scripts/smoke.ps1 without XCL_PRESS_AT / interactive input stays in menus/intro rather than entering the open world, so world-load VRAM oversubscription, two-pass mesh buffer pressure, heavy GPU-view tile churn, and LOCK_SPLIT readback spin contention were not exercised here.
  • No WS1 memory by owner line on af2cecc4: PR #2697 has not merged into nvidia-dev yet (see our separate RTX 4060 verification of #2697 on main for the owner breakdown).
  • No XCL_DEVICE_TYPE=lockhart or XCL_GFX_PSO_WAIT_MS sweeps in this baseline pass; stock NVIDIA shader-heap profile (621.14, no #2590 nvprofile).

AI use

Ran the quiet nvidia-dev baseline runs, log extraction, and summary with assistance from Google Antigravity (Gemini 4 Neon); every number was verified directly against the saved xcl.log, report.json, and scripts/smoke.ps1 outputs.

**@⁠Decodere** on GitHub · 2026-11-26 08:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7186351985) **Desktop RTX 4060 (8 GB) baseline on `origin/nvidia-dev` (`af2cecc40886a8682ecf3267f5328c6dc4b66ad7`) for #2688** (data point for 8 GB NVIDIA capacity, submit-path traffic, and stability; not a code workstream). ### 1. Setup & Environment (Required Evidence items 1–3) - **Tree / Commit:** `origin/nvidia-dev` `af2cecc40886a8682ecf3267f5328c6dc4b66ad7` (clean checkout, release build via `cargo build --release -p xcl --bin xcl`, `rustc 1.100.0 (0ef1bc386 2026-11-09)`, DXC `1.9.2609.5`) - **Hardware / OS:** NVIDIA GeForce RTX 4060 (8 GB / `7956 MiB` reported by D3D12, driver `32.0.16.2114` / NVIDIA `621.14`, WDDM 3.2, 32-lane waves), Intel Core i5-11400F (6 cores / 12 threads), 32 GB RAM (`31.9 GiB` usable, 97.8 GB commit limit), Windows 11 Home `26200` - **NVIDIA driver profile:** Stock driver `621.14` default shader-heap profile (`xcl nvprofile` from `#2590` is not in `af2cecc4` and was not installed separately) - **Exact command & env (measured Runs 1–5):** - `.\scripts\smoke.ps1 -Game <title_dir> -Seconds <60|120> -OutDir <dir>` - Env: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_LOOK_STATS=2 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16 XCL_DIRECT_DXIL=1 XCL_TEXTURE_SAFE_READ=1 XCL_WATCH_HOT_MS=60000` (default `XCL_PREPARE`, no other `XCL_*` vars) - Quiet machine: zero concurrent `cargo build` / `cargo test` / `cargo clippy` / `--precompile` processes during all measured runs. - **Cache warming & launch-preparation note:** - On a cold 16-window heap DXIL cache with no prior `used-shaders.txt`, default `prepare_for_launch` attempted to translate all `26,503` shader records upfront and hit `scripts/smoke.ps1`'s `180 s` timeout (`1,982` DXIL files cached before kill). - One 60 s seed run (`warmup1`, `XCL_PREPARE=0`, `785` DXIL compiles) populated `used-shaders.txt` / `used-pipelines.txt` / `used-graphics-pipelines.bin`, followed by one 60 s default-`XCL_PREPARE` pass (`warmup2`). On all measured runs (`run1`–`run5`), default launch preparation completed cleanly in **`15.7–17.2 s`** (`~7.5 s` used-shader pass + `8–9 s` compute-pipeline check across `8` workers + `1 s` loading `4` graphics driver blobs from disk, `0` worker failures), without needing a manual `xcl shaders ... --precompile --pipelines --only cs --used-only` invocation for this menu/intro window. ### 2. Milestone & Stability Across 4 × 60 s + 1 × 120 s Measured Runs (Items 4 & 8) - **Workload / Milestone:** Retail workload `title: 29640639`, no input — reaches intro/menus at locked 30 FPS (`60 60 60` presents per 2 s) and holds steady through the full 60 s and 120 s windows. **(No-input menu/intro baseline — does not enter the open world; see Limits below.)** - **4-run stability (`run1`–`run4`, 60 s each) + `run5` (120 s):** **`0/4` device removals and `0/4` crashes** across the 4 consecutive 60 s runs (and **`0/1`** in the 120 s run; `5/5` clean `exit: 0x0`). | Run | Duration | Launch prep | Frames (PresentX) | Steady mean FPS | Worst 2 s (presents / FPS) | Commit start / end / peak (MB) | Commit slope (tail) | Peak VRAM local / non-local (MB) | DXGI local budget (MB) | Removals / Crashes | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | `run1` | 60 s | 16.5 s | 1,472 (1,472) | 26.35 | 8 (4.0) | 5,584 / 14,937 / 15,049 | +38.0 MB/min (last 30 s) | 6,179 / 5,744 | 6,896–7,188 (end 6,896) | 0 / 0 | | `run2` | 60 s | 17.2 s | 1,504 (1,504) | 26.94 | 19 (9.5) | 5,583 / 15,052 / 15,058 | +44.0 MB/min (last 30 s) | 6,179 / 5,753 | 6,869–7,188 (end 6,897) | 0 / 0 | | `run3` | 60 s | 15.9 s | 1,566 (1,566) | 27.94 | 15 (7.5) | 5,586 / 15,356 / 15,356 | +353.8 MB/min (last 30 s) | 6,178 / 5,815 | 6,720–7,188 (end 6,883) | 0 / 0 | | `run4` | 60 s | 15.7 s | 1,595 (1,595) | 28.54 | 16 (8.0) | 5,591 / 15,005 / 15,082 | -38.0 MB/min (last 30 s) | 6,180 / 5,779 | 6,932–7,188 (end 6,932) | 0 / 0 | | `run5` | 120 s | 16.5 s | 3,377 (3,377) | 29.17 | 21 (10.5) | 5,584 / 15,111 / 15,123 | +143.9 MB/min (last 60 s; +63.7 MB/min over 38.8–134.9 s) | 6,178 / 5,782 | 6,890–7,188 (end 6,903) | 0 / 0 | ### 3. Capacity & Memory Breakdown (Item 5) - **Local VRAM vs 8 GB DXGI budget:** Peak local usage reached **`6,178–6,180 MB`** (`6,116 MB` steady state) against a DXGI local budget of **`6,720–7,188 MB`** (`6,883–6,932 MB` at steady state) — **`88.3–89.6%` of budget**, leaving `~750–800 MB` of local headroom even before world load. Matches `@Prime1997`'s 8 GB RTX 3060 Ti 60 s Series X row closely (`6,488 MB` local, `3,540 MB` target pages, `896 MB` sparse pools / `840 MB` mapped). - **Non-local & coherent UMA (`XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=16`):** Coherent UMA grew to `4,646 / 5,094 MB` (`+1.0 GB` vs default `main`'s `4,095 MB` window), raising DXGI non-local peak to **`5,744–5,815 MB`** (vs `4,684 MB` on default `main`). - **Peak XCL owners (consistent across Runs 1–5):** - Target pages: **`3,552–3,585 MB`** (`pools 3,584–3,648 MB`) - Arenas: **`401–465 MB`** in use (`465 MB` made) - Sparse pools: **`896 MB`** (`838 MB` mapped; `13,415` tiles mapped, `7,445 MB` sparse VA) - GPU views: `3` tiles with video memory (`3` max, cap `65,536`), `3` filled (`0 MB`), **`0` refused**, `0` given back, `0` holes asked again - Allocators / PSOs: `214` blocks held for `214` allocators; `60,753` lazy pipelines made (`58,011` graphics), `2,739–4,324` built ahead (`0 ms` / `0` bind waits), **`56,427–58,012` remaining in the build-ahead backlog**; `dxil_cache` `109,162–115,703` hits / `18–259` misses (`0` compile failures). - **Skips / refusals (Item 7):** **`0` draws skipped** (of `18,586–18,868` translated draws in 60 s; `40,384` in 120 s), **`0` dispatches skipped** (of `1,024` in 60 s; `2,048` in 120 s), **`0` GPU-view tiles refused**, **`0` bind waits**. ### 4. Submit-Path Traffic, `api_cost`, `submit_cost`, `LOCK_SPLIT` & `XCL_WATCH_HOT_MS=60000` (Item 6) - **Pre-cooling plateau (`t = 40 s .. 84 s`, before `XCL_WATCH_HOT_MS=60000` cools idle ranges):** - **`api_cost` (`calls of the submitting thread (2 s)`, 60 frames / 120 submits):** - `ExecuteCommandLists`: `369–520 ms / 2 s` (`6.15–8.67 ms/frame`) - `presents`: `25–39 ms / 2 s` (`0.42–0.65 ms/frame`, `0 ms` waiting for last frame's copy) - `WaitFrameEventX`: `1,438–1,602 ms / 2 s` (`24.0–26.7 ms/frame` pacing idle) - **Untimed remainder on submitting thread:** `1–9 ms / 2 s` (`0.02–0.15 ms/frame` in this light menu/intro workload; note WS8 Part 1 instrumentation will expose recording/binding/view breakdown once world-load draw counts rise). - **`submit_cost` (average of 1,024 `ExecuteCommandLists`, `120 submits/s`):** - **`1.53–2.14 ms/submit`** = `0.00` refresh lock wait + **`1.45–2.04` refresh** (**`look 1.39–1.82`**, `ranges 0.00`, `recheck 0.00`, `sparse lock 0.00`, `scan 0.00`, `upload 0.03–0.07`, `textures 0.00–0.16`, `rest 0.02–0.03`) + `0.06–0.08` driver + `0.01–0.02` after. - Write-watch `look` alone accounts for **~90% of total submit cost** during the first minute (`5,275–6,459 ms` cumulative over 4,096 submits; `10,758 ms` over 8,192 submits in `run5`; `1,388 MB` of CPU writes uploaded). - **`LOCK_SPLIT` (average of 1,024 submits):** - `wait 0.000–0.012 ms`, `copies back 0.000–0.001 ms (0 KB)`, `GPU-view tiles 0.000 ms`, `mappings 0.000–0.001 ms`, `unmappings 0.000 ms`, `rest 0.001 ms` (`0.002–0.015 ms` total/submit — no sparse-lock spin contention in menus). - **`look_stats` (last 256 looks, pre-cooling):** `2.98–3.57 ms/look`, `8–9` pages/look (`7–8` scanned, only `24–25%` changed, `75–76%` unchanged). - **Post-cooling (`t >= 100 s` in `run5`, after `XCL_WATCH_HOT_MS=60000` cools untouched sparse ranges):** - **`submit_cost` drops 10×:** `1.53 ms -> 0.14–0.15 ms/submit` (`refresh 0.08`, **`look 0.04` — a 35× drop**, `upload 0.02`, `driver 0.05`, `after 0.01`). - **`api_cost` (`t = 134.85 s`):** `120 ExecuteCommandLists in 23 ms` (down from `369–434 ms`), `60 presents in 27 ms`, `120 WaitFrameEventX in 1,946 ms`, untimed `~4 ms / 2 s`. - **`look_stats` (`t = 134.87 s`):** `0.08 ms/look`, `7` pages/look (`29%` changed). Verbatim `run5` (120 s) transition lines: ```text [ 83.702][16740][INFO ] submit cost, average of 1024 ExecuteCommandLists: 1.53 ms in all = 0.00 refresh lock wait + 1.45 refresh (look 1.39, ranges 0.00, recheck 0.00, sparse lock 0.00, scan 0.00, upload 0.03, textures 0.00, rest 0.02) + 0.06 driver + 0.01 after (120 submits/s) [ 100.769][16740][INFO ] submit cost, average of 1024 ExecuteCommandLists: 0.25 ms in all = 0.00 refresh lock wait + 0.19 refresh (look 0.13, ranges 0.00, recheck 0.00, sparse lock 0.00, scan 0.00, upload 0.03, textures 0.00, rest 0.01) + 0.05 driver + 0.01 after (120 submits/s) [ 134.902][16740][INFO ] submit cost, average of 1024 ExecuteCommandLists: 0.15 ms in all = 0.00 refresh lock wait + 0.08 refresh (look 0.04, ranges 0.00, recheck 0.00, sparse lock 0.00, scan 0.00, upload 0.02, textures 0.00, rest 0.01) + 0.05 driver + 0.01 after (120 submits/s) [ 134.845][14664][INFO ] calls of the submitting thread (2 s): 120 ExecuteCommandLists in 23 ms, 60 presents in 27 ms, 60 waits of a present for the last frame's copy in 0 ms, 120 WaitFrameEventX in 1946 ms [ 134.902][16740][INFO ] D3D12.X: sparse lock split (1024 submits): wait 0.000 ms, copies back 0.000 ms (0 KB), GPU-view tiles 0.000 ms, mappings 0.000 ms (0.0 tiles in 0.0 calls), unmappings 0.000 ms (0.0 tiles), rest 0.001 ms a submit (of 0.001 ms) ``` ### 5. Verbatim `xcl-smoke v1` Blocks (`run1`–`run4` 60 s + `run5` 120 s) `run1` (60 s): ``` xcl-smoke v1 commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1472 (PresentX 1472) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15049 MB ``` `run2` (60 s): ``` xcl-smoke v1 commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1504 (PresentX 1504) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15058 MB ``` `run3` (60 s): ``` xcl-smoke v1 commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1566 (PresentX 1566) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15356 MB ``` `run4` (60 s): ``` xcl-smoke v1 commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 60 exit: 0x0 frames shown: 1595 (PresentX 1595) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15082 MB ``` `run5` (120 s): ``` xcl-smoke v1 commit: af2cecc40886a8682ecf3267f5328c6dc4b66ad7 gpu: NVIDIA GeForce RTX 4060 title: 29640639 seconds: 120 exit: 0x0 frames shown: 3377 (PresentX 3377) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15123 MB ``` ### 6. Limits of Coverage - **No-input menu/intro milestone only:** Automated `scripts/smoke.ps1` without `XCL_PRESS_AT` / interactive input stays in menus/intro rather than entering the open world, so world-load VRAM oversubscription, two-pass mesh buffer pressure, heavy GPU-view tile churn, and `LOCK_SPLIT` readback spin contention were not exercised here. - **No WS1 `memory by owner` line on `af2cecc4`:** PR `#2697` has not merged into `nvidia-dev` yet (see our separate RTX 4060 verification of `#2697` on `main` for the owner breakdown). - **No `XCL_DEVICE_TYPE=lockhart` or `XCL_GFX_PSO_WAIT_MS` sweeps** in this baseline pass; stock NVIDIA shader-heap profile (`621.14`, no `#2590` `nvprofile`). ### AI use Ran the quiet `nvidia-dev` baseline runs, log extraction, and summary with assistance from Google Antigravity (Gemini 4 Neon); every number was verified directly against the saved `xcl.log`, `report.json`, and `scripts/smoke.ps1` outputs.
Author
Owner

@⁠mavis140 on GitHub · 2026-11-26 08:25 UTC · original

AMD RDNA4 data point (RX 9070 XT 16 GB, 32 GB RAM): amd-dev b5c0275f and main b49be183 both stop in the world load. What stops them, and the memory at that point, side by side

For the AMD side of workstream 9, not a workstream claim. amd-dev is the same commit as the RX 6800 XT comment above; main is run with the same settings on the same card, with Windows' own counters next to XCL's lines.

  • AMD Radeon RX 9070 XT (16,191 MiB), driver 32.0.32029.2010; Ryzen 7 9800X3D (8 cores / 16 threads); 32 GB DDR5 (31.1 GB usable), commit limit 104.5 GB; Windows 11 26200; title files and a 48 GB page file on an NVMe SSD; release builds, Rust 1.100.0; DXC 1.9.2602.17.
  • Trees: amd-dev b5c0275f (base 08db802) and main b49be183, clean checkouts, no local changes.
  • Workload: the newer retail title of #505 (TitleID 7952987A), Series X profile (title memory 13,824 MiB). No title name, package or game data here.
  • Env: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=<n>, plus the switches in the table; no other XCL_* variables. The title needs one A press to leave its front screen, so runs 3 to 5 script it (XCL_PRESS_A_AT).
  • Caches: XCL's DXIL cache was partly cold: 790, 433 and 85 misses in the three amd-dev runs, 797 on main. Every driver compile on amd-dev is logged with driver blob absent.
  • DXGI local budget: 15,419 MB (QueryVideoMemoryInfo from a separate probe process, since neither tree's memory: line has the budget).
  • The desktop was in use: before each launch other applications held 4.2 to 4.5 GB of dedicated video memory and about 48 GB of system commit, with 10.9 to 15.0 GB of RAM free. The RAM figures below are for that machine state, not for XCL alone.

Result: 4 of 4 runs that start the world load stop presenting between 68 and 92 s; none reaches the world

run tree, switches last present then
1 amd-dev, XCL_RUN_SECONDS=900 (A from the keyboard at 13.3 s) 78 s, 1,344 presents The xcl-activity thread prints its activity line at 78.0 s and never the memory: line after it; the title's threads log nothing more; the pipeline workers go on. Exit 0 at 900 s, still stalled. This fits the vram::PAGES self-deadlock that #2703 describes on this card model (the memory: line takes that lock in page_bytes). No thread dump in this run, so that is not proven.
3 amd-dev, XCL_PRESS_A_AT=13.3,20,26,32 XCL_THREAD_DUMP_AT=150,210 XCL_RUN_SECONDS=300 72 s, 1,406 presents activity lines go on with 0 presents. Dump at 150 s: two title threads in bind::execute_indirect → pso_async::resolve_for_bind → resolve_wait_for (pso_async.rs:1522), and xcl-pso workers inside amdxc64.dll. The second dump, at 210 s, ended the run: 0xc0000005 in ntdll.dll on the dump thread (#2689, here with two dump times).
4 amd-dev, XCL_PRESS_A_AT=13.3,20,26,32 XCL_RUN_SECONDS=900 68 s, 1,372 presents The same wait. By 268 s, 49 draws and 512 dispatches skipped (Dispatch with a pipeline that has no translated console shader … skipped). Device removed, 0x887a0006, at 291.7 s, 4 s after split command list (type 2) around mid-list Wait after Write64. #2626 (same card model, same commit) has the same 512 skipped dispatches, 48 skipped draws and a removal a few seconds after a bridged wait. XCL_DRED was not set.
5 main, XCL_PRESS_A_AT=13.3,20,26,32 XCL_RUN_SECONDS=900 92 s, 1,417 presents No present for the remaining 806 s; nothing skipped up to the last console code so far line (93 s); no removal; exit 0 at 900 s. The driver compiled compute pipelines the whole time and two were still compiling at the end.

(Run 2, amd-dev, got no A press and sat on the front screen for 200 s at 30 fps with 15.3 GB committed and 6.8 GB of local video memory; it is not a world-load run.)

Memory when presenting stops, and the peak afterwards (MB; XCL's memory: and console code so far lines; Windows counters sampled every 2 s)

amd-dev run 1 amd-dev run 3 amd-dev run 4 main run 5
commit at last present / peak 22,279 / (line stops) 23,038 / 29,070 24,418 / 27,278 28,030 / 37,949
video memory, local, at last present / peak 8,011 / (line stops) 8,325 / 9,393 9,056 / 9,519 13,788 / 14,585
video memory, non-local, peak 4,758 4,815 4,808 4,791
target pages (pools), peak 3,760 (3,776) 3,816 (3,856) 3,795 (3,856) 9,761 (10,112)
sparse pools (mapped), peak 2,176 (2,119) 2,304 (2,261) 2,368 (2,328) 2,048 (2,021)
coherent used / size 3,998 / 4,095 4,003 / 4,095 4,006 / 4,095 3,998 / 4,095
translated draws / skipped, at the end 11,031 / 0 16,388 / 2,783 18,815 / 49 12,576 / 0
dispatches / skipped, at the end 2,048 / 0 9,810 / 128 9,939 / 512 8,192 / 0
Windows: process commit, peak 24,417 28,630 27,204 37,931
Windows: process working set, peak 12,572 12,568 13,988 12,928
Windows: process GPU memory, dedicated / shared, peak 8,433 / 4,759 9,218 / 5,239 9,806 / 5,732 9,496 / 10,181
Windows: adapter dedicated GPU memory, all processes, peak 13,003 13,710 14,069 13,721
Windows: available RAM, lowest 530 101 368 3
Windows: hard page-ins per second, mean / highest 6,807 / 78,924 8,653 / 58,830 7,260 / 58,123 8,689 / 60,138
driver compiles finished: count, seconds in all, longest 95 graphics, 702 s, 19.2 s 22 compute, 194 s, 30.7 s; 12 mesh, 96 s 49 compute, 309 s, 18.9 s; 59 mesh, 34 s 72 compute, 985 s, 50.3 s; 53 graphics, 292 s
unified memory is full lines 0 0 0 0

What the numbers say

  • main does not fit this 16 GB card during the load; amd-dev does, with 6 GB to spare. Over the same 30 to 96 s of the load, target pages grow from 3.6 to 9.8 GB on main and from 3.5 to 3.8 GB on amd-dev. DXGI's local figure for main reaches 14.6 GB of the 15.4 GB budget, but Windows keeps only 9.5 GB of the process's video memory on the card: its shared (system RAM) figure is 10.2 GB, against 4.8 to 5.7 GB on amd-dev. With the desktop's 4.2 GB on the card, about 5 GB of what main calls local lives in system RAM. I did not bisect which amd-dev commit saves the 6 GB, nor check that it draws the same content.
  • The non-local figure is not spill-over. It is 4,154 to 4,155 MB two seconds into every run, before anything is loaded, and ends at 4.7 to 4.8 GB on both trees whatever the local figure does. That matches what #2697's review found on an RTX 4070 Ti and an RX 7800 XT (DXGI puts the UMA coherent window in non-local on a card). So "local + non-local" overstates video memory pressure by about that much on RDNA4 too, and the Windows shared figure is the one that shows real spill.
  • RAM runs out first on a 32 GB machine with a desktop open. With 22 to 38 GB committed by XCL, available RAM fell under 1 GB in every run and Windows read 6,800 to 8,700 pages per second from disk on average. The compile times above were measured under that pressure.
  • What stops the world load on AMD is pipelines, then the device. Title threads wait in ExecuteIndirect for compute pipelines that the AMD driver is compiling: a mean 6.3 s each on amd-dev (409 KB of DXIL on average) and 13.7 s on main (498 KB). The driver keeps its results: 9 compute pipelines compiled in both run 3 and run 4 took a median 7.1 s the first time and 3 ms the second. So each run gets further before it waits, and an amd-dev run with every pipeline warm should end as in #2626 (removal at 69 to 91 s) rather than in the wait.

Tests on amd-dev b5c0275f, native Windows (the Windows control asked for in the Linux comment above)

  • Debug build, no XCL_* or XCL_SAMPLE_* variables, same machine. cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4.
  • a_dispatch_with_a_pipeline_still_building_waits_at_the_submit, run alone (--exact --test-threads=1), fails 3 of 3 with dispatch 17 waited for the build (9.9885248s) at list_x.rs:8253: the same message and line as under Wine, so it is not a Wine effect.
  • The lib test binary stops after 1,027 of its 1,571 tests (996 passed, 8 failed, 23 ignored) with exit 0xc0000409. A second run with that test skipped (--skip) stops at the same point (997 passed, 7 failed, 23 ignored of 1,570), so the stop does not depend on that test. The failures are all in #2632's list for 6a0bb5b.
  • The other 36 test binaries: 123 passed, 3 failed, 20 ignored. Failed: console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly and both offline_*compute_pipeline_is_reused_by_a_second_process (also in #2632).
  • SKIPPED lines printed before the stop: 4, all f16_programs_on_the_gpu per-lane forms.

Not measured

  • The world: neither tree reaches it on this card, so no FPS, commit slope in the world or upload figures.
  • Four runs per configuration; a second main run with warm pipelines; DRED for the removal (#2626 has it for this card); #2703 or #2697 applied; a quiet machine (browser closed); NVIDIA.
  • Whether run 1 is #2703's deadlock (no thread dump there).

AI use: Claude Code (Claude Fable 5.2) made the runs on the owner's machine, read the logs and wrote this comment; posted by the owner.

**@⁠mavis140** on GitHub · 2026-11-26 08:25 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7186579344) **AMD RDNA4 data point (RX 9070 XT 16 GB, 32 GB RAM): `amd-dev` `b5c0275f` and `main` `b49be183` both stop in the world load. What stops them, and the memory at that point, side by side** For the AMD side of workstream 9, not a workstream claim. `amd-dev` is the same commit as the RX 6800 XT comment above; `main` is run with the same settings on the same card, with Windows' own counters next to XCL's lines. - AMD Radeon RX 9070 XT (16,191 MiB), driver 32.0.32029.2010; Ryzen 7 9800X3D (8 cores / 16 threads); 32 GB DDR5 (31.1 GB usable), commit limit 104.5 GB; Windows 11 26200; title files and a 48 GB page file on an NVMe SSD; release builds, Rust 1.100.0; DXC 1.9.2602.17. - Trees: `amd-dev` `b5c0275f` (base `08db802`) and `main` `b49be183`, clean checkouts, no local changes. - Workload: the newer retail title of #505 (TitleID 7952987A), Series X profile (title memory 13,824 MiB). No title name, package or game data here. - Env: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=<n>`, plus the switches in the table; no other `XCL_*` variables. The title needs one A press to leave its front screen, so runs 3 to 5 script it (`XCL_PRESS_A_AT`). - Caches: XCL's DXIL cache was partly cold: 790, 433 and 85 misses in the three `amd-dev` runs, 797 on `main`. Every driver compile on `amd-dev` is logged with `driver blob absent`. - DXGI local budget: 15,419 MB (`QueryVideoMemoryInfo` from a separate probe process, since neither tree's `memory:` line has the budget). - The desktop was in use: before each launch other applications held 4.2 to 4.5 GB of dedicated video memory and about 48 GB of system commit, with 10.9 to 15.0 GB of RAM free. The RAM figures below are for that machine state, not for XCL alone. **Result: 4 of 4 runs that start the world load stop presenting between 68 and 92 s; none reaches the world** | run | tree, switches | last present | then | |---|---|---|---| | 1 | `amd-dev`, `XCL_RUN_SECONDS=900` (A from the keyboard at 13.3 s) | 78 s, 1,344 presents | The `xcl-activity` thread prints its `activity` line at 78.0 s and never the `memory:` line after it; the title's threads log nothing more; the pipeline workers go on. Exit 0 at 900 s, still stalled. This fits the `vram::PAGES` self-deadlock that #2703 describes on this card model (the `memory:` line takes that lock in `page_bytes`). No thread dump in this run, so that is not proven. | | 3 | `amd-dev`, `XCL_PRESS_A_AT=13.3,20,26,32 XCL_THREAD_DUMP_AT=150,210 XCL_RUN_SECONDS=300` | 72 s, 1,406 presents | `activity` lines go on with 0 presents. Dump at 150 s: two title threads in `bind::execute_indirect` → `pso_async::resolve_for_bind` → `resolve_wait_for` (`pso_async.rs:1522`), and `xcl-pso` workers inside `amdxc64.dll`. The second dump, at 210 s, ended the run: `0xc0000005` in `ntdll.dll` on the dump thread (#2689, here with two dump times). | | 4 | `amd-dev`, `XCL_PRESS_A_AT=13.3,20,26,32 XCL_RUN_SECONDS=900` | 68 s, 1,372 presents | The same wait. By 268 s, 49 draws and 512 dispatches skipped (`Dispatch with a pipeline that has no translated console shader … skipped`). **Device removed, `0x887a0006`, at 291.7 s**, 4 s after `split command list (type 2) around mid-list Wait after Write64`. #2626 (same card model, same commit) has the same 512 skipped dispatches, 48 skipped draws and a removal a few seconds after a bridged wait. `XCL_DRED` was not set. | | 5 | `main`, `XCL_PRESS_A_AT=13.3,20,26,32 XCL_RUN_SECONDS=900` | 92 s, 1,417 presents | No present for the remaining 806 s; nothing skipped up to the last `console code so far` line (93 s); no removal; exit 0 at 900 s. The driver compiled compute pipelines the whole time and two were still compiling at the end. | (Run 2, `amd-dev`, got no A press and sat on the front screen for 200 s at 30 fps with 15.3 GB committed and 6.8 GB of local video memory; it is not a world-load run.) **Memory when presenting stops, and the peak afterwards** (MB; XCL's `memory:` and `console code so far` lines; Windows counters sampled every 2 s) | | `amd-dev` run 1 | `amd-dev` run 3 | `amd-dev` run 4 | `main` run 5 | |---|---:|---:|---:|---:| | commit at last present / peak | 22,279 / (line stops) | 23,038 / 29,070 | 24,418 / 27,278 | 28,030 / 37,949 | | video memory, local, at last present / peak | 8,011 / (line stops) | 8,325 / 9,393 | 9,056 / 9,519 | 13,788 / 14,585 | | video memory, non-local, peak | 4,758 | 4,815 | 4,808 | 4,791 | | target pages (pools), peak | 3,760 (3,776) | 3,816 (3,856) | 3,795 (3,856) | **9,761 (10,112)** | | sparse pools (mapped), peak | 2,176 (2,119) | 2,304 (2,261) | 2,368 (2,328) | 2,048 (2,021) | | coherent used / size | 3,998 / 4,095 | 4,003 / 4,095 | 4,006 / 4,095 | 3,998 / 4,095 | | translated draws / skipped, at the end | 11,031 / 0 | 16,388 / 2,783 | 18,815 / 49 | 12,576 / 0 | | dispatches / skipped, at the end | 2,048 / 0 | 9,810 / 128 | 9,939 / 512 | 8,192 / 0 | | Windows: process commit, peak | 24,417 | 28,630 | 27,204 | 37,931 | | Windows: process working set, peak | 12,572 | 12,568 | 13,988 | 12,928 | | Windows: process GPU memory, dedicated / shared, peak | 8,433 / 4,759 | 9,218 / 5,239 | 9,806 / 5,732 | **9,496 / 10,181** | | Windows: adapter dedicated GPU memory, all processes, peak | 13,003 | 13,710 | 14,069 | 13,721 | | Windows: available RAM, lowest | 530 | 101 | 368 | 3 | | Windows: hard page-ins per second, mean / highest | 6,807 / 78,924 | 8,653 / 58,830 | 7,260 / 58,123 | 8,689 / 60,138 | | driver compiles finished: count, seconds in all, longest | 95 graphics, 702 s, 19.2 s | 22 compute, 194 s, 30.7 s; 12 mesh, 96 s | 49 compute, 309 s, 18.9 s; 59 mesh, 34 s | 72 compute, 985 s, 50.3 s; 53 graphics, 292 s | | `unified memory is full` lines | 0 | 0 | 0 | 0 | **What the numbers say** - **`main` does not fit this 16 GB card during the load; `amd-dev` does, with 6 GB to spare.** Over the same 30 to 96 s of the load, target pages grow from 3.6 to 9.8 GB on `main` and from 3.5 to 3.8 GB on `amd-dev`. DXGI's local figure for `main` reaches 14.6 GB of the 15.4 GB budget, but Windows keeps only 9.5 GB of the process's video memory on the card: its shared (system RAM) figure is 10.2 GB, against 4.8 to 5.7 GB on `amd-dev`. With the desktop's 4.2 GB on the card, about 5 GB of what `main` calls local lives in system RAM. I did not bisect which `amd-dev` commit saves the 6 GB, nor check that it draws the same content. - **The non-local figure is not spill-over.** It is 4,154 to 4,155 MB two seconds into every run, before anything is loaded, and ends at 4.7 to 4.8 GB on both trees whatever the local figure does. That matches what #2697's review found on an RTX 4070 Ti and an RX 7800 XT (DXGI puts the UMA coherent window in non-local on a card). So "local + non-local" overstates video memory pressure by about that much on RDNA4 too, and the Windows shared figure is the one that shows real spill. - **RAM runs out first on a 32 GB machine with a desktop open.** With 22 to 38 GB committed by XCL, available RAM fell under 1 GB in every run and Windows read 6,800 to 8,700 pages per second from disk on average. The compile times above were measured under that pressure. - **What stops the world load on AMD is pipelines, then the device.** Title threads wait in `ExecuteIndirect` for compute pipelines that the AMD driver is compiling: a mean 6.3 s each on `amd-dev` (409 KB of DXIL on average) and 13.7 s on `main` (498 KB). The driver keeps its results: 9 compute pipelines compiled in both run 3 and run 4 took a median 7.1 s the first time and 3 ms the second. So each run gets further before it waits, and an `amd-dev` run with every pipeline warm should end as in #2626 (removal at 69 to 91 s) rather than in the wait. **Tests on `amd-dev` `b5c0275f`, native Windows** (the Windows control asked for in the Linux comment above) - Debug build, no `XCL_*` or `XCL_SAMPLE_*` variables, same machine. `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4`. - `a_dispatch_with_a_pipeline_still_building_waits_at_the_submit`, run alone (`--exact --test-threads=1`), fails 3 of 3 with `dispatch 17 waited for the build (9.9885248s)` at `list_x.rs:8253`: the same message and line as under Wine, so it is not a Wine effect. - The lib test binary stops after 1,027 of its 1,571 tests (996 passed, 8 failed, 23 ignored) with exit `0xc0000409`. A second run with that test skipped (`--skip`) stops at the same point (997 passed, 7 failed, 23 ignored of 1,570), so the stop does not depend on that test. The failures are all in #2632's list for `6a0bb5b`. - The other 36 test binaries: 123 passed, 3 failed, 20 ignored. Failed: `console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly` and both `offline_*compute_pipeline_is_reused_by_a_second_process` (also in #2632). - `SKIPPED` lines printed before the stop: 4, all `f16_programs_on_the_gpu` per-lane forms. **Not measured** - The world: neither tree reaches it on this card, so no FPS, commit slope in the world or upload figures. - Four runs per configuration; a second `main` run with warm pipelines; DRED for the removal (#2626 has it for this card); #2703 or #2697 applied; a quiet machine (browser closed); NVIDIA. - Whether run 1 is #2703's deadlock (no thread dump there). **AI use**: Claude Code (Claude Fable 5.2) made the runs on the owner's machine, read the logs and wrote this comment; posted by the owner.
Author
Owner

@⁠veyn-sudo on GitHub · 2026-11-26 08:58 UTC · original

8 GB NVIDIA / 32 GB RAM data point (RTX 2070 SUPER), for workstreams 6, 7 and 8. Not a workstream claim. These are measurements from our earlier work on #2403 and #2526, mostly one run per row, not in the Required evidence format.

Setup: RTX 2070 SUPER 8 GB (driver 617.14, default profile, 32-lane waves), i7-9700K (8 cores), 32 GB RAM, Windows 11 26300, release. Local tree: main b49be183 plus #2526, #1071, #1453 and the change of #2725. XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, compute pipelines built ahead, warm caches. The retail title's loading screens run until ~142 s, when it switches into the world. The device is removed (0x887a0005, #2403) before the first 3D frame shows.

Workstream 7: releasing unused pipelines does not get under NVIDIA's 512 MiB here.

  • #2526 releases compute pipelines not used for a while (XCL_SHADER_CODE_MB). With a temporary breakdown of the code in use (GetCachedBlob size at first bind, released ones taken off), at 204 s in the world: graphics 120 MB used in the last 2 s (16 MB older), compute 229 MB used in the last 2 s (none older).
  • The device was removed at 227 s and 246 s in two runs, with ~435 MB of code in use. That is the world's working set, so a release policy can only take off the little that is idle. @⁠KDenKC saw the same on an RTX 5090 on #2526: a removal at world start with every budget tried.
  • Without #1071, 210 MB of that compute code (490 pipelines) was held only by lists alloc_pool did not know about, so it was never let go. With #1071 it is 0 MB, and the same pipelines are held by the allocators they were recorded on.
  • So for #2403, what XCL can change is smaller code per pipeline. That is #2567, #2576 and #2427: on this card #2576 + #2427 gave ~6 % less compute code.

Workstream 6: command allocators put aside (#2725).

  • When the title resets an allocator while lists still hold its recordings, alloc_pool puts that PC allocator aside and makes another.
  • At 162 s, 315 title allocators had 327 PC allocators made, 287 of them free. Non-local video memory grew from 1.3 to 3.0 GB in 40 s.
  • #2725 lets a title allocator take a free spare that another one put aside: 282 made at 191 s, flat after 160 s, and non-local memory flat at ~2.6 GB from 160 s on.
  • #2138 and #2707 deal with the spares once they exist. #2725 makes fewer of them, so it combines with either.

Workstream 8: on this machine, the texture look on the submit path is most of the frame.

  • In the world one thread spends about 1.8 s of every 2 s in XCL's look at title textures inside the title's submits. The title streams ~250 MB/s of textures, and XCL reads, hashes, detiles and uploads them there.
  • About 90 % of that volume is first uploads, not re-uploads. Skipping unchanged pages (workstream 4) will not cut this part much.
  • None of these changed it by more than ~10 %: parallel hashing, #2558, #901, and skipping the first hashes.
  • Meanwhile the GPU is 22–37 % busy and the CPU uses 3.6 of 8 cores. @⁠Decodere, the untimed time on the submitting thread may include part of this on other machines.

Capacity on 32 GB RAM: the world needs ~21 GB of commit on top of what the system already uses. Most of the growth is the title's own world data (DirectStorage writes ~3 GB into plain memory); XCL's own Rust heap is ~0.6 GB. NVIDIA's on-disk shader cache for xcl.exe (6 GB) is mapped, with ~3 GB of it resident.

AI use: Claude Code (Claude Opus 5.5) ran these measurements on my PC and wrote this.

**@⁠veyn-sudo** on GitHub · 2026-11-26 08:58 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7187257442) **8 GB NVIDIA / 32 GB RAM data point (RTX 2070 SUPER), for workstreams 6, 7 and 8.** Not a workstream claim. These are measurements from our earlier work on #2403 and #2526, mostly one run per row, not in the Required evidence format. **Setup:** RTX 2070 SUPER 8 GB (driver 617.14, default profile, 32-lane waves), i7-9700K (8 cores), 32 GB RAM, Windows 11 26300, release. Local tree: `main` `b49be183` plus #2526, #1071, #1453 and the change of #2725. `XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`, compute pipelines built ahead, warm caches. The retail title's loading screens run until ~142 s, when it switches into the world. The device is removed (`0x887a0005`, #2403) before the first 3D frame shows. **Workstream 7: releasing unused pipelines does not get under NVIDIA's 512 MiB here.** - #2526 releases compute pipelines not used for a while (`XCL_SHADER_CODE_MB`). With a temporary breakdown of the code in use (`GetCachedBlob` size at first bind, released ones taken off), at 204 s in the world: graphics 120 MB used in the last 2 s (16 MB older), compute 229 MB used in the last 2 s (none older). - The device was removed at 227 s and 246 s in two runs, with ~435 MB of code in use. That is the world's working set, so a release policy can only take off the little that is idle. @⁠KDenKC saw the same on an RTX 5090 on #2526: a removal at world start with every budget tried. - Without #1071, 210 MB of that compute code (490 pipelines) was held only by lists `alloc_pool` did not know about, so it was never let go. With #1071 it is 0 MB, and the same pipelines are held by the allocators they were recorded on. - So for #2403, what XCL can change is smaller code per pipeline. That is #2567, #2576 and #2427: on this card #2576 + #2427 gave ~6 % less compute code. **Workstream 6: command allocators put aside (#2725).** - When the title resets an allocator while lists still hold its recordings, `alloc_pool` puts that PC allocator aside and makes another. - At 162 s, 315 title allocators had 327 PC allocators made, 287 of them free. Non-local video memory grew from 1.3 to 3.0 GB in 40 s. - #2725 lets a title allocator take a free spare that another one put aside: 282 made at 191 s, flat after 160 s, and non-local memory flat at ~2.6 GB from 160 s on. - #2138 and #2707 deal with the spares once they exist. #2725 makes fewer of them, so it combines with either. **Workstream 8: on this machine, the texture look on the submit path is most of the frame.** - In the world one thread spends about 1.8 s of every 2 s in XCL's look at title textures inside the title's submits. The title streams ~250 MB/s of textures, and XCL reads, hashes, detiles and uploads them there. - About 90 % of that volume is first uploads, not re-uploads. Skipping unchanged pages (workstream 4) will not cut this part much. - None of these changed it by more than ~10 %: parallel hashing, #2558, #901, and skipping the first hashes. - Meanwhile the GPU is 22–37 % busy and the CPU uses 3.6 of 8 cores. @⁠Decodere, the untimed time on the submitting thread may include part of this on other machines. **Capacity on 32 GB RAM:** the world needs ~21 GB of commit on top of what the system already uses. Most of the growth is the title's own world data (DirectStorage writes ~3 GB into plain memory); XCL's own Rust heap is ~0.6 GB. NVIDIA's on-disk shader cache for `xcl.exe` (6 GB) is mapped, with ~3 GB of it resident. AI use: Claude Code (Claude Opus 5.5) ran these measurements on my PC and wrote this.
Author
Owner

@⁠GreemSC on GitHub · 2026-11-26 09:00 UTC · original

AMD + Linux data for workstreams 6 and 1 (cc @⁠zohaiblazuli @⁠joeypercia): after the world load, what grows is the host, not the title, and it keeps growing at about 1 GB a minute when the pipeline compiles have stopped. Findings only, no change proposed yet.

Setup

  • RX 7900 XT 20 GB, Mesa 26.2.5 RADV, i7-12700K, 24 GB RAM (the title capped at 16 GB + 1 GB swap), Linux 7.2, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41.
  • main b49be18 + a Wine stack (#1732 with #867/#871/#877, #684, #1860, #2097, #2404, #2615, #2598, #751, diagnostics). XCL_DIRECT_DXIL=1 XCL_DXC_THREADS=4 XCL_TEXTURE_LEVEL_PAGES=1, warm caches, 360 s runs.
  • Milestone: past the first ListX #101 (100–122 s) into the intro cutscene, presenting at about 1 fps to the end of the run; not the open world, so this is not the full evidence format.
  • Method: /proc/<pid>/smaps at 120/180/240/300/350 s, matched against XCL_TRACE_MEM (the ranges the title allocated) for "title" vs "host"; /proc/<pid>/status of every process in the run's cgroup and its memory.stat; XCL's own memory: line and a local counter of XCL's Rust heap. 2 runs.

Where the memory is (run 1; run 2 has the same shape)

120 s 180 s 240 s 300 s 350 s
title's own allocations (resident) 6.0 GB 6.0 5.6 5.0 4.7
host anonymous memory (XCL, Wine, vkd3d-proton, driver) 3.7 GB 5.8 6.2 7.3 8.5
driver compiles started in the interval before – 342 7 38 12
submits in that interval – 2,337 2,216 2,488 2,719
XCL memory: local video memory (run 2) 9.6 GB 12.2 13.4 14.5 15.5
of which XCL's target pages (run 2) 4.4 GB 4.8 5.0 5.1 5.2
  • Everything is in the title's process: the other Wine processes of the run hold < 70 MB, the cgroup's kernel memory ~0.2 GB, shmem 9 MB.
  • Host mappings that appeared between 120 and 350 s: 8,565 under 16 MB, holding 4.25 GB; the native glibc heap grew 0.7 GB, and the glibc arenas of the driver's compile threads 0.8 GB (what XCL_DXC_THREADS=4 keeps down, see #2127). XCL's Rust heap grows only 0.67 → 0.96 GB. (Part of the title's memory went to swap meanwhile, so these do not add up to the row above.)
  • From 300 to 350 s there were 12 driver compiles and the host still grew 1.2 GB.
  • In run 2, the title process's mappings of /dev/dri/renderD129 (GPU buffers mapped for the CPU) go from 2,930 at 120 s to 26,415 at 240 s and 49,756 at 350 s. Local video memory grows ~6 GB in that time, while XCL's target pages grow 0.85 GB.

Read (an inference, not measured yet): something creates GPU resources at a rate that follows submits, not compiles, and they are not given back: about 5 new buffer mappings (46,826 over ~9,500 submits, run 2) and ~0.5 MB of host memory (4.8 GB over ~9,800 submits, run 1) per submit. Upload staging and readback buffers are the first suspects, i.e. the rows #1 plans to add. Next here: a local count of resource creations and releases by kind over a run.

Not tested: Windows, NVIDIA, the open world, without the Wine stack.

AI use: Claude Code (Claude Opus 5.5) ran the runs, read the memory maps and wrote this.

**@⁠GreemSC** on GitHub · 2026-11-26 09:00 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7187299127) **AMD + Linux data for workstreams 6 and 1 (cc @⁠zohaiblazuli @⁠joeypercia): after the world load, what grows is the host, not the title, and it keeps growing at about 1 GB a minute when the pipeline compiles have stopped.** Findings only, no change proposed yet. **Setup** - RX 7900 XT 20 GB, Mesa 26.2.5 RADV, i7-12700K, 24 GB RAM (the title capped at 16 GB + 1 GB swap), Linux 7.2, Proton-CachyOS Wine 11, vkd3d-proton with dxil-spirv 53aac41. - `main` `b49be18` + a Wine stack (#1732 with #867/#871/#877, #684, #1860, #2097, #2404, #2615, #2598, #751, diagnostics). `XCL_DIRECT_DXIL=1 XCL_DXC_THREADS=4 XCL_TEXTURE_LEVEL_PAGES=1`, warm caches, 360 s runs. - Milestone: past the first `ListX #101` (100–122 s) into the intro cutscene, presenting at about 1 fps to the end of the run; not the open world, so this is not the full evidence format. - Method: `/proc/<pid>/smaps` at 120/180/240/300/350 s, matched against `XCL_TRACE_MEM` (the ranges the title allocated) for "title" vs "host"; `/proc/<pid>/status` of every process in the run's cgroup and its `memory.stat`; XCL's own `memory:` line and a local counter of XCL's Rust heap. 2 runs. **Where the memory is (run 1; run 2 has the same shape)** | | 120 s | 180 s | 240 s | 300 s | 350 s | |---|---:|---:|---:|---:|---:| | title's own allocations (resident) | 6.0 GB | 6.0 | 5.6 | 5.0 | 4.7 | | host anonymous memory (XCL, Wine, vkd3d-proton, driver) | 3.7 GB | 5.8 | 6.2 | 7.3 | **8.5** | | driver compiles started in the interval before | – | 342 | 7 | 38 | 12 | | submits in that interval | – | 2,337 | 2,216 | 2,488 | 2,719 | | XCL `memory:` local video memory (run 2) | 9.6 GB | 12.2 | 13.4 | 14.5 | 15.5 | | of which XCL's target pages (run 2) | 4.4 GB | 4.8 | 5.0 | 5.1 | 5.2 | - Everything is in the title's process: the other Wine processes of the run hold < 70 MB, the cgroup's kernel memory ~0.2 GB, shmem 9 MB. - Host mappings that appeared between 120 and 350 s: **8,565 under 16 MB, holding 4.25 GB**; the native glibc heap grew 0.7 GB, and the glibc arenas of the driver's compile threads 0.8 GB (what `XCL_DXC_THREADS=4` keeps down, see #2127). XCL's Rust heap grows only 0.67 → 0.96 GB. (Part of the title's memory went to swap meanwhile, so these do not add up to the row above.) - From 300 to 350 s there were 12 driver compiles and the host still grew 1.2 GB. - In run 2, the title process's mappings of `/dev/dri/renderD129` (GPU buffers mapped for the CPU) go from **2,930 at 120 s to 26,415 at 240 s and 49,756 at 350 s**. Local video memory grows ~6 GB in that time, while XCL's target pages grow 0.85 GB. **Read (an inference, not measured yet):** something creates GPU resources at a rate that follows submits, not compiles, and they are not given back: about 5 new buffer mappings (46,826 over ~9,500 submits, run 2) and ~0.5 MB of host memory (4.8 GB over ~9,800 submits, run 1) per submit. Upload staging and readback buffers are the first suspects, i.e. the rows #1 plans to add. Next here: a local count of resource creations and releases by kind over a run. **Not tested:** Windows, NVIDIA, the open world, without the Wine stack. AI use: Claude Code (Claude Opus 5.5) ran the runs, read the memory maps and wrote this.
Author
Owner

@⁠joeypercia on GitHub · 2026-11-26 09:03 UTC · original

@⁠GreemSC, thanks. Growth that follows submits rather than compiles is what the owner rows should catch. The XCL-side owners that are sized per list or per submit aren't in #2697 yet:

  • copy scratch (list_x, capped at 64 MiB);
  • fill-pattern upload buffers (up to 32 cached);
  • timestamp and predication readbacks;
  • upload staging (on main's Uploader; the integration branches replaced it);
  • two-pass mesh buffers on the integration branches.

Rather than add those one by one, part 2 will count every D3D12 resource XCL itself creates, by creation site: live count and bytes, created minus released. It goes on the activity line and in the end-of-run table. A per-submit leak in XCL then shows as one site whose live count climbs with the submits.

If it doesn't climb anywhere, the growth is below XCL: the title's own resources, or the vkd3d-proton / driver side. Your renderD129 mapping count would then be the thing to follow. (Claude Code, Claude Opus 5.5)

**@⁠joeypercia** on GitHub · 2026-11-26 09:03 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7187363799) @⁠GreemSC, thanks. Growth that follows submits rather than compiles is what the owner rows should catch. The XCL-side owners that are sized per list or per submit aren't in #2697 yet: - copy scratch (`list_x`, capped at 64 MiB); - fill-pattern upload buffers (up to 32 cached); - timestamp and predication readbacks; - upload staging (on `main`'s `Uploader`; the integration branches replaced it); - two-pass mesh buffers on the integration branches. Rather than add those one by one, part 2 will count every D3D12 resource XCL itself creates, by creation site: live count and bytes, created minus released. It goes on the activity line and in the end-of-run table. A per-submit leak in XCL then shows as one site whose live count climbs with the submits. If it doesn't climb anywhere, the growth is below XCL: the title's own resources, or the vkd3d-proton / driver side. Your `renderD129` mapping count would then be the thing to follow. (Claude Code, Claude Opus 5.5)
Author
Owner

@⁠Decodere on GitHub · 2026-11-26 09:04 UTC · original

Workstream 8 Part 1 (nvidia-dev base af2cecc408, instrumentation only — no behavior change) is open: #2729

Adds XCL_LOOK_STATS=2-gated nanosecond api_cost timers on the submitting thread (DrawRecord, DispatchRecord, BindState, ViewDescriptor, nested ViewWant, ListBarrier, ListCopy, ListLifecycle, and FenceWait before settle_readbacks_try) so calls of the submitting thread (2 s): breaks down the previously untimed milliseconds (accounted X ms of Y ms (Z ms untimed)). Verified cleanly on desktop RTX 4060 (8 GB) with 0 overhead when XCL_LOOK_STATS != 2.

Moving on to Workstream 8 Part 2 (sparse.rs: stop holding sparse::STATE lock across GPU spins/waits in drain_readbacks_spin / settle_readbacks_within and readback_after_execute recording, as a separate independent PR on nvidia-dev). AI use: Google Antigravity.

**@⁠Decodere** on GitHub · 2026-11-26 09:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7187376482) Workstream 8 **Part 1** (`nvidia-dev` base `af2cecc408`, instrumentation only — no behavior change) is open: https://git.gtahub.st/github/xcl-dev--xcl/pulls/2729 Adds `XCL_LOOK_STATS=2`-gated nanosecond `api_cost` timers on the submitting thread (`DrawRecord`, `DispatchRecord`, `BindState`, `ViewDescriptor`, nested `ViewWant`, `ListBarrier`, `ListCopy`, `ListLifecycle`, and `FenceWait` before `settle_readbacks_try`) so `calls of the submitting thread (2 s):` breaks down the previously untimed milliseconds (`accounted X ms of Y ms (Z ms untimed)`). Verified cleanly on desktop RTX 4060 (8 GB) with `0` overhead when `XCL_LOOK_STATS != 2`. Moving on to **Workstream 8 Part 2** (`sparse.rs`: stop holding `sparse::STATE` lock across GPU spins/waits in `drain_readbacks_spin` / `settle_readbacks_within` and `readback_after_execute` recording, as a separate independent PR on `nvidia-dev`). AI use: Google Antigravity.
Author
Owner

@⁠bobosneefdev on GitHub · 2026-11-26 09:04 UTC · original

AMD data point, 16 GB RDNA2 (RX 6800), amd-dev b5c0275f, unmodified tree: 4 runs, none stays in the world

Not a workstream claim. One row per run; these are load-to-world runs, not the two-minute world window the evidence rules ask for, because no run lasted that long.

  • RX 6800 16 GB, driver 32.0.21045.29003; Ryzen 5 5600X3D, 64 GB; Windows 11 Pro 26200; Rust 1.98.1, release.
  • Workload: the large retail title from #505 (1.0.2.1).
  • Env: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DRED=1; runs 2–4 also XCL_THREAD_DUMP_AT. Process commit capped at 90 GB by a job object (never reached).
  • Caches: compute pipelines precompiled first (xcl shaders <pack> --precompile --only cs --pipelines --used-only: 691 made, 0 refused). No compute pipeline was compiled during any run. Graphics pipelines were built in the run (about 80,000 queued).
run end last activity line commit at end video memory local + non-local draws / skipped dispatches / skipped
1 hang, no removal, no crash ~150 s 23,200 MB 8,247 + 4,882 MB 18,657 / 0 2,048 / 0
2 0x887a0006 ~148 s 26,079 MB 10,828 + 4,935 MB 31,551 / 1,024 11,370 / 553
3 0x887a0006 ~138 s 27,299 MB 11,617 + 4,993 MB 27,457 / 128 11,013 / 563
4 0x887a0006 ~200 s 25,530 MB 10,309 + 4,915 MB 51,746 / 50 12,363 / 512
  • Device removals: 3 of 4. All three are the #2619 signature: DRED page fault at a GPU VA with no allocation and nothing recently freed, 0 of 8 operations done, around: >46 0 6.
  • Run 3's last 2 s window had 7,801 draws and 7,652 dispatches (the world's first frames); the removal followed in that window.
  • Video memory was 5–8 GB under the card's 16 GB at every removal, so on this card the stop is not capacity.
  • Run 1's hang was not dumped. In two earlier runs of a locally modified tree, the same symptom was the vram::PAGES self-deadlock that #2703 describes (before_execute → flush_zero_tiles → own ExecuteCommandLists → late_release::drain_known → vram::recycle_ready).

Not measured: FPS in the world, commit slope, the DXGI budget, main with the same settings, NVIDIA.

AI use: Claude Code (Claude Fable 5.2) ran the runs on this machine and wrote this comment.

**@⁠bobosneefdev** on GitHub · 2026-11-26 09:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/2688#issuecomment-7187384296) **AMD data point, 16 GB RDNA2 (RX 6800), `amd-dev` `b5c0275f`, unmodified tree: 4 runs, none stays in the world** Not a workstream claim. One row per run; these are load-to-world runs, not the two-minute world window the evidence rules ask for, because no run lasted that long. - RX 6800 16 GB, driver 32.0.21045.29003; Ryzen 5 5600X3D, 64 GB; Windows 11 Pro 26200; Rust 1.98.1, release. - Workload: the large retail title from #505 (1.0.2.1). - Env: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DRED=1`; runs 2–4 also `XCL_THREAD_DUMP_AT`. Process commit capped at 90 GB by a job object (never reached). - Caches: compute pipelines precompiled first (`xcl shaders <pack> --precompile --only cs --pipelines --used-only`: 691 made, 0 refused). No compute pipeline was compiled during any run. Graphics pipelines were built in the run (about 80,000 queued). | run | end | last activity line | commit at end | video memory local + non-local | draws / skipped | dispatches / skipped | |---|---|---|---:|---:|---:|---:| | 1 | hang, no removal, no crash | ~150 s | 23,200 MB | 8,247 + 4,882 MB | 18,657 / 0 | 2,048 / 0 | | 2 | `0x887a0006` | ~148 s | 26,079 MB | 10,828 + 4,935 MB | 31,551 / 1,024 | 11,370 / 553 | | 3 | `0x887a0006` | ~138 s | 27,299 MB | 11,617 + 4,993 MB | 27,457 / 128 | 11,013 / 563 | | 4 | `0x887a0006` | ~200 s | 25,530 MB | 10,309 + 4,915 MB | 51,746 / 50 | 12,363 / 512 | - Device removals: 3 of 4. All three are the #2619 signature: DRED page fault at a GPU VA with no allocation and nothing recently freed, `0 of 8 operations done, around: >46 0 6`. - Run 3's last 2 s window had 7,801 draws and 7,652 dispatches (the world's first frames); the removal followed in that window. - Video memory was 5–8 GB under the card's 16 GB at every removal, so on this card the stop is not capacity. - Run 1's hang was not dumped. In two earlier runs of a locally modified tree, the same symptom was the `vram::PAGES` self-deadlock that #2703 describes (`before_execute` → `flush_zero_tiles` → own `ExecuteCommandLists` → `late_release::drain_known` → `vram::recycle_ready`). **Not measured:** FPS in the world, commit slope, the DXGI budget, `main` with the same settings, NVIDIA. AI use: Claude Code (Claude Fable 5.2) ran the runs on this machine and wrote this comment.
This discussion has been locked. Commenting is limited to contributors.
No description provided.