RTX 5060 Laptop (8 GB): menus 30 fps and the world renders, but it dies at ~70–80 s — title_memory_budget_mb is 13,824 MB regardless of the adapter's memory #1337

Open
opened 2026-11-26 04:51:08 +00:00 by github-bot · 8 comments
Owner

@⁠yangzj0844 on GitHub · 2026-11-24 14:58 UTC · original

Not a duplicate of #994: there the title never leaves the loading screen. Here the loading
screen renders correctly and the process dies at ~70–80 s when streaming starts, from the
texture-page failure — see "Related issues" below.

First: the bcpack/victory.rs merge works. BCPack refusals went from 512 to 0 and the loading art is now pixel-correct instead of garbled. The pipeline priority work (930e8b4) also removed a 58,743-pipeline stall on the load screen. This report is what is left.

Environment

  • GPU: NVIDIA GeForce RTX 5060 Laptop, 8 GB VRAM (≈6.8 GB usable with the desktop), driver 621.01
  • CPU: Intel Core Ultra 7 251HX (Arrow Lake-HX, family 6 model 198), 18 logical processors, 3.26 GHz
  • RAM: 16 GB
  • OS: Windows 11 Home China (家庭中文版), 26H2, build 26300.9711 (ProductName still reads "Windows 10 Home China"; stale on upgraded installs — build 26300, BuildLabEx=26100.1...ge_release and the centred taskbar confirm Windows 11)
  • D3D12: inbox D3D12Core.dll 10.0.26100.9549 (SM 6.6 + mesh shaders)
  • DXC: Windows Kits\10\bin\10.0.26100.0\x64
  • XCL: 930e8b4 (main, 2026-11-24), cargo build --release --workspace
  • Title: Xbox Series package 1.0.2.1, 7952987A, Series X mode (device_type = "anaconda")

What works

  • boot in ~4 s, first-boot screens, legal, settings
  • menus at 30 fps and the intro/logo animation plays smoothly
  • 1,750 frames presented (report.json → d3d12.presents) — the best of the day
  • every console shader translates, wave64-on-wave32 runs, GFX10 textures decode correctly

Failure A / B — two failure modes at the same point

Both happen at ~70–85 s, exactly when the world starts streaming, and which one you get depends on the title budget:

A. E_OUTOFMEMORY burst, then the title asserts (seen with title_memory_mb = 4096)

D3D12.X: no video memory for more pages of title textures (0x8007000E)   ×65 in 0.4 s, at 69.65 s
unhandled exception 0x80000003 in game_scarlett_master.exe+0x193e00f
    rax=0x8007000e rcx=0x8007000e rsi=0x8007000e

B. device removed, no OOM (seen with title_memory_mb = 4096 and defaults)

ERROR the D3D12 device was removed (0x887a0007 ...)
ERROR process ends with status 0x887a0007          at 80.5 s

The title asserts on the E_OUTOFMEMORY rather than skipping the page. On screen the frame is garbled rather than black, because pages that never arrived keep stale heap contents.

In other words the budget does not fix anything, it only chooses the failure mode: a lower budget makes the page allocation fail earlier and cleanly (assert), a higher one lets the page set grow until the device itself goes away. On console neither path can fail, so the title has no branch for it.

Why the budget knob only moves the wall

crates/xcl/src/config.rs:

pub fn title_memory_budget_mb(&self) -> u64 {
    match self.title_memory_mb {
        0 if self.is_series_s() => 8_192,
        0 => 13_824,          // ← anaconda, regardless of the adapter's actual memory
        v => v,
    }
}

Measured on this card (values tried across the day; the exact failure mode alternates as described above):

title_memory_mb result
0 (→ 13,824 MB) 30 fps, OOM burst at ~59–81 s
6144 30 fps, OOM at ~81 s
4096 best run: 1,750 frames presented, 0 OOM, then device removed at 80.5 s

So the budget does change the failure point, but never removes it: the title's asset set simply exceeds what an 8 GB part can hold, and it has no graceful path for a page that cannot be created.

Question 1: is a VRAM-aware budget planned — IDXGIAdapter3::QueryVideoMemoryInfo (Budget) or a DXGI_ADAPTER_DESC1::DedicatedVideoMemory-derived cap — instead of the fixed 13,824 MB?

Question 2: when CreateHeap / CreateCommittedResource fail for a tile pool, would it be better for XCL to hand the title a dropped page (null/zero view) and keep running instead of letting it assert?

Question 3: is the first world frame expected to be split into smaller submissions? A single very heavy batch cannot finish inside the default 2 s TDR, which is the other way this dies (0x887a0007). XCL_SPLIT_MIDLIST_WAIT (default on) did not change it.

Failure C — lockhart asserts after ~24 s

Since an 8 GB card is Series S class, I tried the cheaper profile (device_type = "lockhart"). It reaches 204 presented frames, then 0x80000003 at game_scarlett_master.exe+0xcc2834, after hitting these stubs:

d3d12_xs.dll!ID3D12GraphicsCommandList10::#75  (console extension)
d3d12_xs.dll!ID3D12GraphicsCommandList10::#101
d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 / #131 / #132 / #142
d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout)
d3d12_xs.dll!ID3D12CommandAllocator::#9

Question 4: is lockhart meant to work today? If Series S is the 8 GB profile, it is the most useful target for cards like mine.

Knobs I tried, with the measured effect (so nobody repeats them)

Setting Effect
XCL_PSO_PRELOAD=0 ❌ intro stutters badly; the "0 OOM" it gives only means nothing is drawn
XCL_PSO_WAIT_MS=200 ❌ black screen — every draw is skipped while 58 k pipelines build
XCL_UMA_MB=512 + XCL_COHERENT_MB=128 ❌ smaller windows mean more copies: 1,750 → 846 frames, everything slows
XCL_WAIT_TIMEOUT_MS=20000 ❌ waits stop timing out; frames stall waiting for the GPU
raytracing = "off" ❌ different path, OOM arrives earlier (69 s instead of 80 s)
XCL_PIPELINE_THREADS=12 (default 4) ✅ free win, no downside found

Best configuration measured: default preload, title_memory_mb = 4096, raytracing = "auto", XCL_PIPELINE_THREADS = 12, 960×540 window → 1,750 frames at 30 fps, no OOM, then Failure B at 80.5 s.

Can provide

  • xcl.log and report.json for every run above (8 logged runs today, ~2.5–4 MB each)
  • Re-runs with any XCL_* variable you want isolated
  • A comparison from a 16 GB card if that helps separate "8 GB is too small" from "the port still has bugs"

The GPU is a laptop part sharing its 8 GB with the desktop compositor, so the effective budget is ~6.8 GB — below what the README targets ("fits a 32 GB machine; ~15 GB committed in the menus"). I am reporting it because the Series S profile exists, and because the assert-on-OOM path may be worth handling regardless of card size.


Written from the logs by an AI assistant; the machine's owner ran everything and reviewed this text. No game files are attached.

  • #994 (RTX 4070 SUPER 12 GB, Windows 10 22H2 + KB5029331) reports the same window
    title I see: compiling shaders: 0 running, 0 done, 57587 pipelines queued, with 30 fps
    on the loading screen. My run shows 58,743 pipelines queued — same async queue, second
    GPU, so that is reproduced on both 12 GB and 8 GB NVIDIA parts.
  • There the title never leaves the loading screen. On this host it renders the loading
    screen correctly (the Lucia art, pixel-correct after the BCPack merge) and then dies at
    ~70–80 s when streaming starts, so the async queue is not the blocker here — the
    VRAM/page failure is.
  • #755 (drain the queued pipeline set from XCL's side) and #1168 (count only
    still-building background pipelines as queued) both look relevant to that shared symptom;
    I am not duplicating them here.

##Attachments

XCL-930e8b4-1750frames-device-removed.txt
XCL-930e8b4-OOM-65-burst.txt
XCL-report.json.txt

**@⁠yangzj0844** on GitHub · 2026-11-24 14:58 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337) > Not a duplicate of #994: there the title never leaves the loading screen. Here the loading > screen renders correctly and the process dies at ~70–80 s when streaming starts, from the > texture-page failure — see "Related issues" below. First: the `bcpack/victory.rs` merge works. BCPack refusals went from **512 to 0** and the loading art is now pixel-correct instead of garbled. The pipeline priority work (`930e8b4`) also removed a 58,743-pipeline stall on the load screen. This report is what is left. ## Environment - **GPU:** NVIDIA GeForce RTX 5060 Laptop, **8 GB** VRAM (≈6.8 GB usable with the desktop), driver 621.01 - **CPU:** Intel Core Ultra 7 251HX (Arrow Lake-HX, family 6 model 198), 18 logical processors, 3.26 GHz - **RAM:** 16 GB - **OS:** Windows 11 Home China (家庭中文版), 26H2, build 26300.9711 (`ProductName` still reads "Windows 10 Home China"; stale on upgraded installs — build 26300, `BuildLabEx=26100.1...ge_release` and the centred taskbar confirm Windows 11) - **D3D12:** inbox `D3D12Core.dll` 10.0.26100.9549 (SM 6.6 + mesh shaders) - **DXC:** `Windows Kits\10\bin\10.0.26100.0\x64` - **XCL:** `930e8b4` (main, 2026-11-24), `cargo build --release --workspace` - **Title:** Xbox Series package `1.0.2.1`, `7952987A`, Series X mode (`device_type = "anaconda"`) ## What works - boot in ~4 s, first-boot screens, legal, settings - **menus at 30 fps** and the intro/logo animation plays smoothly - **1,750 frames presented** (`report.json` → `d3d12.presents`) — the best of the day - every console shader translates, wave64-on-wave32 runs, GFX10 textures decode correctly ## Failure A / B — two failure modes at the same point Both happen at **~70–85 s**, exactly when the world starts streaming, and which one you get depends on the title budget: **A. `E_OUTOFMEMORY` burst, then the title asserts** (seen with `title_memory_mb = 4096`) ``` D3D12.X: no video memory for more pages of title textures (0x8007000E) ×65 in 0.4 s, at 69.65 s unhandled exception 0x80000003 in game_scarlett_master.exe+0x193e00f rax=0x8007000e rcx=0x8007000e rsi=0x8007000e ``` **B. device removed, no OOM** (seen with `title_memory_mb = 4096` and defaults) ``` ERROR the D3D12 device was removed (0x887a0007 ...) ERROR process ends with status 0x887a0007 at 80.5 s ``` **The title asserts on the `E_OUTOFMEMORY`** rather than skipping the page. On screen the frame is garbled rather than black, because pages that never arrived keep stale heap contents. In other words the budget does not fix anything, it only chooses the failure mode: a lower budget makes the page allocation fail earlier and cleanly (assert), a higher one lets the page set grow until the device itself goes away. On console neither path can fail, so the title has no branch for it. ## Why the budget knob only moves the wall `crates/xcl/src/config.rs`: ```rust pub fn title_memory_budget_mb(&self) -> u64 { match self.title_memory_mb { 0 if self.is_series_s() => 8_192, 0 => 13_824, // ← anaconda, regardless of the adapter's actual memory v => v, } } ``` Measured on this card (values tried across the day; the exact failure mode alternates as described above): | `title_memory_mb` | result | |---|---| | `0` (→ 13,824 MB) | 30 fps, OOM burst at ~59–81 s | | `6144` | 30 fps, OOM at ~81 s | | `4096` | best run: **1,750 frames presented**, 0 OOM, then device removed at 80.5 s | So the budget does change the failure point, but never removes it: the title's asset set simply exceeds what an 8 GB part can hold, and it has no graceful path for a page that cannot be created. **Question 1:** is a VRAM-aware budget planned — `IDXGIAdapter3::QueryVideoMemoryInfo` (`Budget`) or a `DXGI_ADAPTER_DESC1::DedicatedVideoMemory`-derived cap — instead of the fixed 13,824 MB? **Question 2:** when `CreateHeap` / `CreateCommittedResource` fail for a tile pool, would it be better for XCL to hand the title a dropped page (null/zero view) and keep running instead of letting it assert? **Question 3:** is the first world frame expected to be split into smaller submissions? A single very heavy batch cannot finish inside the default 2 s TDR, which is the other way this dies (`0x887a0007`). `XCL_SPLIT_MIDLIST_WAIT` (default on) did not change it. ## Failure C — `lockhart` asserts after ~24 s Since an 8 GB card is Series S class, I tried the cheaper profile (`device_type = "lockhart"`). It reaches 204 presented frames, then `0x80000003` at `game_scarlett_master.exe+0xcc2834`, after hitting these stubs: ``` d3d12_xs.dll!ID3D12GraphicsCommandList10::#75 (console extension) d3d12_xs.dll!ID3D12GraphicsCommandList10::#101 d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 / #131 / #132 / #142 d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout) d3d12_xs.dll!ID3D12CommandAllocator::#9 ``` **Question 4:** is `lockhart` meant to work today? If Series S is the 8 GB profile, it is the most useful target for cards like mine. ## Knobs I tried, with the measured effect (so nobody repeats them) | Setting | Effect | |---|---| | `XCL_PSO_PRELOAD=0` | ❌ intro stutters badly; the "0 OOM" it gives only means nothing is drawn | | `XCL_PSO_WAIT_MS=200` | ❌ **black screen** — every draw is skipped while 58 k pipelines build | | `XCL_UMA_MB=512` + `XCL_COHERENT_MB=128` | ❌ smaller windows mean more copies: **1,750 → 846 frames**, everything slows | | `XCL_WAIT_TIMEOUT_MS=20000` | ❌ waits stop timing out; frames stall waiting for the GPU | | `raytracing = "off"` | ❌ different path, OOM arrives earlier (69 s instead of 80 s) | | `XCL_PIPELINE_THREADS=12` (default 4) | ✅ free win, no downside found | Best configuration measured: default preload, `title_memory_mb = 4096`, `raytracing = "auto"`, `XCL_PIPELINE_THREADS = 12`, 960×540 window → **1,750 frames at 30 fps, no OOM, then Failure B at 80.5 s**. ## Can provide - `xcl.log` and `report.json` for every run above (8 logged runs today, ~2.5–4 MB each) - Re-runs with any `XCL_*` variable you want isolated - A comparison from a 16 GB card if that helps separate "8 GB is too small" from "the port still has bugs" The GPU is a laptop part sharing its 8 GB with the desktop compositor, so the effective budget is ~6.8 GB — below what the README targets ("fits a 32 GB machine; ~15 GB committed in the menus"). I am reporting it because the Series S profile exists, and because the assert-on-OOM path may be worth handling regardless of card size. --- *Written from the logs by an AI assistant; the machine's owner ran everything and reviewed this text. No game files are attached.* ## Related issues — and how this host differs - **#994** (RTX 4070 SUPER 12 GB, Windows 10 22H2 + KB5029331) reports the same window title I see: `compiling shaders: 0 running, 0 done, 57587 pipelines queued`, with 30 fps on the loading screen. My run shows `58,743 pipelines queued` — same async queue, second GPU, so that is reproduced on both 12 GB and 8 GB NVIDIA parts. - There the title **never leaves** the loading screen. On this host it renders the loading screen correctly (the Lucia art, pixel-correct after the BCPack merge) and then dies at ~70–80 s when streaming starts, so **the async queue is not the blocker here** — the VRAM/page failure is. - **#755** (drain the queued pipeline set from XCL's side) and **#1168** (count only still-building background pipelines as queued) both look relevant to that shared symptom; I am not duplicating them here. ##Attachments [XCL-930e8b4-1750frames-device-removed.txt](https://github.com/user-attachments/files/35339126/XCL-930e8b4-1750frames-device-removed.txt) [XCL-930e8b4-OOM-65-burst.txt](https://github.com/user-attachments/files/35339124/XCL-930e8b4-OOM-65-burst.txt) [XCL-report.json.txt](https://github.com/user-attachments/files/35339125/XCL-report.json.txt)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:51:08 +00:00
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 15:15 UTC · original

Two things before anyone touches the streaming code — the number in your title line has a source and an existing (undocumented) override:

  1. 13,824 is intentional and overridable today. config.rs:117 — title_memory_budget_mb(): 0 (the default) means the console's budget: 13,824 MiB for Series X, 8,192 for Series S; any explicit title_memory_mb = N replaces it. So on your 8 GB host the title is being handed a Series X texture budget by design, and its streaming manager then plans against ~2× your VRAM — your "dies when streaming starts" timeline (~70–80 s) is exactly what over-planning predicts. Immediate A/B: title_memory_mb = 6144 in your config (host 8 GB − desktop headroom ≈ 6.5, rounded down), everything else unchanged. If the death moves or disappears, the report becomes the canonical evidence for (2).
  2. The safe default deserves to exist. Suggestion for the maintainers, small and unit-testable right where the value is born: when title_memory_mb == 0 and the budget exceeds the adapter's DXGI DedicatedMemory, log a one-line startup warning naming both numbers (and optionally clamp) — today's failure is invisible in config and only shows up as a runtime death 70 seconds in. The knob also belongs in the README next to the other memory options; your report is effectively its first documentation.
  3. Expect a residual floor even with a clamped budget: the zero-destination page-array failure class (#549, still open — requests enqueued before the title fills them, destinations frozen at zero) bites hardest during exactly this phase, and #549 not being in 930e8b4 means your runs still have it. If the clamped budget changes where you die but not that you die, check whether the texture-page failures became 0x89240009 refusals before filing it as a new class.
**@⁠pickles976** on GitHub · 2026-11-24 15:15 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337#issuecomment-7135716745) Two things before anyone touches the streaming code — the number in your title line has a source and an existing (undocumented) override: 1. **13,824 is intentional and overridable today.** `config.rs:117` — `title_memory_budget_mb()`: `0` (the default) means *the console's* budget: **13,824 MiB for Series X**, 8,192 for Series S; any explicit `title_memory_mb = N` replaces it. So on your 8 GB host the title is being handed a Series X texture budget by design, and its streaming manager then plans against ~2× your VRAM — your "dies when streaming starts" timeline (~70–80 s) is exactly what over-planning predicts. **Immediate A/B:** `title_memory_mb = 6144` in your config (host 8 GB − desktop headroom ≈ 6.5, rounded down), everything else unchanged. If the death moves or disappears, the report becomes the canonical evidence for (2). 2. **The safe default deserves to exist.** Suggestion for the maintainers, small and unit-testable right where the value is born: when `title_memory_mb == 0` and the budget exceeds the adapter's DXGI `DedicatedMemory`, log a one-line startup warning naming both numbers (and optionally clamp) — today's failure is invisible in config and only shows up as a runtime death 70 seconds in. The knob also belongs in the README next to the other memory options; your report is effectively its first documentation. 3. **Expect a residual floor even with a clamped budget:** the zero-destination page-array failure class (#549, still open — requests enqueued before the title fills them, destinations frozen at zero) bites hardest during exactly this phase, and #549 not being in `930e8b4` means your runs still have it. If the clamped budget changes *where* you die but not *that* you die, check whether the texture-page failures became `0x89240009` refusals before filing it as a new class.
Author
Owner

@⁠vitalityscripts on GitHub · 2026-11-24 21:29 UTC · original

Same wall on an RTX 3070 Ti 8 GB (desktop, 32 GB RAM, i7-12700K): what moved it for us

Measured with a 2 s tracker (DXGI local VRAM, process commit, presents), same point in the run each time:

Build VRAM local at freeze Texture pages Result
main + #640 (budget 3072) 11.9 GB 7.1 GB presents stop ~84 s, commit climbs 26 → 35 GB
+ #1514 (both commits) + Palmwave 53c600b / 0277e52 / 7af821e 8.7 GB peak 1.4–1.6 GB reached the "Vice City, two years ago" card
+ #800 (release empty pools) ~6.9 GB at 74 s 1.6 GB (pools 3.5 → 2.9 GB, 9 released) under budget during streaming
  • title_memory_mb = 4096 only took peak from 8.7 to 8.2 GB here, and the run got less far.
  • #640's budget can't hold the pool on its own: GPU-written pages are pinned, so pools grow past the cap. #1514 removed most of the unbacked pages.
  • #800 alone releases few pools, because free tiles are spread across all of them. Handing tiles out fullest-pool-first (re-sorting the free list every 2 s) let 9 drain. #1747 (merged today) should fix that properly.

The freeze after that was not memory. Thread dumps during the stall showed 11 of 12 PSO threads (xcl-pso-* binds and xcl-pso-pre-* preload) inside nvgpucomp64.dll, building uncached compute pipelines (≥256 KB DXIL, 3–19 min each on this card). VRAM and target pages were flat during the stall; commit grew ~5 GB, which looks like the driver's compiler. Precompiling the journal offline (xcl pipelines) fixed the loading screens and the early stalls. Notes on that:

  • real::warm_once gives big compute pipelines one-at-a-time turns (BIG_COMPILES, most 1), so xcl pipelines ran on one core. Allowing ~20 at once within a RAM limit took it from ~5/min to ~18–30/min.
  • Windows power throttling parked the tool on the 4 E-cores when its console was in the background. Turning off PROCESS_POWER_THROTTLING_EXECUTION_SPEED fixed that.
  • In our measurements, heap windows (21–38 s) and compact-switch (29–52 s) built the big compute programs 3–5× faster than the switch form (>120 s).

Measured on my PC, with Claude and Codex doing the analysis.

**@⁠vitalityscripts** on GitHub · 2026-11-24 21:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337#issuecomment-7144994006) **Same wall on an RTX 3070 Ti 8 GB (desktop, 32 GB RAM, i7-12700K): what moved it for us** Measured with a 2 s tracker (DXGI local VRAM, process commit, presents), same point in the run each time: | Build | VRAM local at freeze | Texture pages | Result | |---|---|---|---| | main + #640 (budget 3072) | 11.9 GB | 7.1 GB | presents stop ~84 s, commit climbs 26 → 35 GB | | + #1514 (both commits) + Palmwave 53c600b / 0277e52 / 7af821e | 8.7 GB peak | 1.4–1.6 GB | reached the "Vice City, two years ago" card | | + #800 (release empty pools) | ~6.9 GB at 74 s | 1.6 GB (pools 3.5 → 2.9 GB, 9 released) | under budget during streaming | - `title_memory_mb = 4096` only took peak from 8.7 to 8.2 GB here, and the run got less far. - #640's budget can't hold the pool on its own: GPU-written pages are pinned, so pools grow past the cap. #1514 removed most of the unbacked pages. - #800 alone releases few pools, because free tiles are spread across all of them. Handing tiles out fullest-pool-first (re-sorting the free list every 2 s) let 9 drain. #1747 (merged today) should fix that properly. **The freeze after that was not memory.** Thread dumps during the stall showed 11 of 12 PSO threads (`xcl-pso-*` binds and `xcl-pso-pre-*` preload) inside `nvgpucomp64.dll`, building uncached compute pipelines (≥256 KB DXIL, 3–19 min each on this card). VRAM and target pages were flat during the stall; commit grew ~5 GB, which looks like the driver's compiler. Precompiling the journal offline (`xcl pipelines`) fixed the loading screens and the early stalls. Notes on that: - `real::warm_once` gives big compute pipelines one-at-a-time turns (`BIG_COMPILES`, most 1), so `xcl pipelines` ran on one core. Allowing ~20 at once within a RAM limit took it from ~5/min to ~18–30/min. - Windows power throttling parked the tool on the 4 E-cores when its console was in the background. Turning off `PROCESS_POWER_THROTTLING_EXECUTION_SPEED` fixed that. - In our measurements, heap windows (21–38 s) and compact-switch (29–52 s) built the big compute programs 3–5× faster than the switch form (>120 s). *Measured on my PC, with Claude and Codex doing the analysis.*
Author
Owner

@⁠yangzj0844 on GitHub · 2026-11-24 23:31 UTC · original

A/B done, as asked — same build, same config, only title_memory_mb differs.

Build: 20cf130 (main, 2026-11-25) — this also brings the direct-DXIL backend and #1747, so both arms below are on that build, unlike the numbers in my first report. Both runs used the same binary (built from 20cf130, two minutes apart); only title_memory_mb differs.
Everything else identical: device_type = anaconda, raytracing = "auto", window 960×540, XCL_PIPELINE_THREADS = 12, TdrDelay default (key absent), 8 GB card.

title_memory_mb presents first 0x8007000E process ends OOM messages failure
6144 1,757 78.7 s 102.4 s 159 0x80000003 at +0x193e00f, rax=0x8007000e
4096 1,630 71.3 s 94.7 s 34 0x80000003 at +0x193e00f, rax=0x8007000e

So 6144 shifts the death ~8 s later and buys ~127 more presented frames, but it does not remove it — both arms assert on the same E_OUTOFMEMORY at the same address. That matches @⁠vitalityscripts' note that the budget alone cannot hold the pool (GPU-written pages are pinned) and that #1514/#800 are what actually moved things for them: the Series X budget is a real contributor, but not the whole story on 8 GB.

Re your point 3 (#549 and the 0x89240009 check): the page failures stayed 0x8007000E, no 0x89240009 page refusals. The one 0x89240009 across both runs is a DirectStorage request, and it appears only in the 4096 arm:

[69.611] WARN DirectStorage: a request failed (0x89240009): 24576 bytes from G:\.\data\ttdb\vfx\ttdb_vfx.ttpf
[71.261] INFO DirectStorage: BCPack BC6H: first request unpacked (669735 to 1048576 bytes)

One more data point for @⁠vitalityscripts' compile finding — this is the 6144 arm, cold cache:

494,324 B DXIL  ->  21,891 ms     (one compute PSO)
132,472 B DXIL  ->   2,715 ms
23 compiles, 27.1 s total   -> that single pipeline is 80 % of all compile time

In the 4096 arm (cache warm from that first run) the 494 KB pipeline was not rebuilt at all: the largest compile was 181,100 B -> 5 ms. So the stalls are compile-bound and cache-shaped, which supports precompiling the journal — but note xcl --help on 20cf130 only lists run / inspect / disasm / shaders / rpf, there is no xcl pipelines subcommand yet, so there is no offline precompile path for us to try today.

Also worth recording: on this build the loading screen runs at a steady 30 fps (30.0 / 30.0 / 27.8 / 30.0 over the last 300 frames) and presented 1,757 frames — the best of all runs so far, up from 1,750 on 930e8b4.

**@⁠yangzj0844** on GitHub · 2026-11-24 23:31 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337#issuecomment-7147500109) A/B done, as asked — same build, same config, only `title_memory_mb` differs. **Build:** `20cf130` (main, 2026-11-25) — this also brings the direct-DXIL backend and `#1747`, so both arms below are on that build, unlike the numbers in my first report. Both runs used the same binary (built from `20cf130`, two minutes apart); **only `title_memory_mb` differs**. **Everything else identical:** `device_type = anaconda`, `raytracing = "auto"`, window 960×540, `XCL_PIPELINE_THREADS = 12`, TdrDelay default (key absent), 8 GB card. | `title_memory_mb` | presents | first `0x8007000E` | process ends | OOM messages | failure | |---|---|---|---|---|---| | `6144` | **1,757** | 78.7 s | **102.4 s** | 159 | `0x80000003` at `+0x193e00f`, `rax=0x8007000e` | | `4096` | 1,630 | 71.3 s | 94.7 s | 34 | `0x80000003` at `+0x193e00f`, `rax=0x8007000e` | So 6144 shifts the death ~8 s later and buys ~127 more presented frames, but **it does not remove it** — both arms assert on the same `E_OUTOFMEMORY` at the same address. That matches @⁠vitalityscripts' note that the budget alone cannot hold the pool (GPU-written pages are pinned) and that `#1514`/`#800` are what actually moved things for them: the Series X budget is a real contributor, but not the whole story on 8 GB. Re your point 3 (`#549` and the `0x89240009` check): **the page failures stayed `0x8007000E`**, no `0x89240009` page refusals. The one `0x89240009` across both runs is a DirectStorage request, and it appears only in the **4096 arm**: ``` [69.611] WARN DirectStorage: a request failed (0x89240009): 24576 bytes from G:\.\data\ttdb\vfx\ttdb_vfx.ttpf [71.261] INFO DirectStorage: BCPack BC6H: first request unpacked (669735 to 1048576 bytes) ``` One more data point for @⁠vitalityscripts' compile finding — this is the **6144 arm, cold cache**: ``` 494,324 B DXIL -> 21,891 ms (one compute PSO) 132,472 B DXIL -> 2,715 ms 23 compiles, 27.1 s total -> that single pipeline is 80 % of all compile time ``` In the **4096 arm** (cache warm from that first run) the 494 KB pipeline was not rebuilt at all: the largest compile was **181,100 B -> 5 ms**. So the stalls are compile-bound and cache-shaped, which supports precompiling the journal — but note `xcl --help` on `20cf130` only lists `run / inspect / disasm / shaders / rpf`, there is no `xcl pipelines` subcommand yet, so there is no offline precompile path for us to try today. Also worth recording: on this build the loading screen runs at a steady 30 fps (30.0 / 30.0 / 27.8 / 30.0 over the last 300 frames) and presented 1,757 frames — the best of all runs so far, up from 1,750 on `930e8b4`.
Author
Owner

@⁠yangzj0844 on GitHub · 2026-11-25 14:50 UTC · original

The memory side of this issue is fixed on 06c9f55 — zero out-of-memory messages in a 234 s run — and what is left is a different failure, so I am recording it here rather than opening a new report.

The runs, same host, same config

XCL build first 0x8007000E process ends presents OOM lines device removed
20cf130 (title_memory_mb = 6144) 78.7 s 102.4 s 1,757 159 —
62265d3 99.0 s 121.4 s 2,231 19 —
cbc296a 87.0 s 119.2 s 1,835 3 —
06c9f55 never 234.0 s 1,518 0 0x887A0007 at 196.4 s

Config throughout: device_type = "anaconda", title_memory_mb = 4096, raytracing = "auto", 960×540, XCL_PIPELINE_THREADS = 12, XCL_DIRECT_DXIL = 1 (CS direct 10 / HLSL fallback 0).

What 06c9f55 does instead

Frame rate decays steadily from the moment the world starts, and then the GPU stops answering:

 62 s   600 frames presented, 16.6 fps over the last 300
 86 s   900 frames presented, 12.2 fps over the last 300
130 s  1200 frames presented,  6.9 fps over the last 300
189 s  1500 frames presented,  5.0 fps over the last 300
196 s  D3D12 device removed: 0x887A0007 (the GPU is not responding to more commands)

There are 86 WARN lines before the removal, and none of them is about an allocation failing; the two kinds that stand out are:

40x  D3D12.X: console shaders in the PSO without a translation: mesh pipeline
     with its MS <hash> in the AS slot    refused
 1x  D3D12.X: CreateShaderResourceView(RAYTRACING_ACCELERATION_STRUCTURE) at 0x1947a0000
     is not in unified memory    writing empty BVH descriptor   (at 157.2 s)

so 40 mesh-pipeline draws are dropped for the whole run, and the ray-tracing BVH is empty (raytracing = "auto"). Neither is obviously the cause of the hang, but they are the state the title is in when it happens.

After the removal the title keeps running for another 38 s and then asserts on the resource creation it was in the middle of:

CreatePlacedResourceX at 0xda3340000: dimension 3 256x256 format 78 flags 0x300000    a resource of its own (0x887a0005)
unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606 rax=0x11d4d3df46f rsi=0x887a0005

rsi holding 0x887A0005 says the creation was handed the already-removed device, i.e. the assert is a symptom, not the cause.

The decay is the part I cannot attribute: it looks like work per frame grows (submissions, or a shader that loops longer as state accumulates) until one command exceeds the TDR limit. Frames keep being presented right up to the removal, so it is not a stall waiting on the title.

Two smaller observations from the same log, in case they matter:

a command list reset while its last submit is on the GPU records on another PC list (#2, #3)
compute split: 0 programs split, 0 pieces built, 0 chained dispatches issued

Nothing here is a request — the report exists so the next reader knows the OOM timings above are now stale, and that the remaining wall on an 8 GB card is this decay rather than the page budget. Say the word if you want XCL_ACTIVITY=1 numbers or a log attached.

**@⁠yangzj0844** on GitHub · 2026-11-25 14:50 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337#issuecomment-7165896324) The memory side of this issue is **fixed on `06c9f55`** — zero out-of-memory messages in a 234 s run — and what is left is a different failure, so I am recording it here rather than opening a new report. ## The runs, same host, same config | XCL build | first `0x8007000E` | process ends | presents | OOM lines | device removed | |---|---|---|---|---|---| | `20cf130` (`title_memory_mb = 6144`) | 78.7 s | 102.4 s | 1,757 | 159 | — | | `62265d3` | 99.0 s | 121.4 s | 2,231 | 19 | — | | `cbc296a` | 87.0 s | 119.2 s | 1,835 | 3 | — | | **`06c9f55`** | **never** | **234.0 s** | **1,518** | **0** | **`0x887A0007` at 196.4 s** | Config throughout: `device_type = "anaconda"`, `title_memory_mb = 4096`, `raytracing = "auto"`, 960×540, `XCL_PIPELINE_THREADS = 12`, `XCL_DIRECT_DXIL = 1` (`CS direct 10 / HLSL fallback 0`). ## What `06c9f55` does instead Frame rate decays steadily from the moment the world starts, and then the GPU stops answering: ``` 62 s 600 frames presented, 16.6 fps over the last 300 86 s 900 frames presented, 12.2 fps over the last 300 130 s 1200 frames presented, 6.9 fps over the last 300 189 s 1500 frames presented, 5.0 fps over the last 300 196 s D3D12 device removed: 0x887A0007 (the GPU is not responding to more commands) ``` There are 86 `WARN` lines before the removal, and none of them is about an allocation failing; the two kinds that stand out are: ``` 40x D3D12.X: console shaders in the PSO without a translation: mesh pipeline with its MS <hash> in the AS slot refused 1x D3D12.X: CreateShaderResourceView(RAYTRACING_ACCELERATION_STRUCTURE) at 0x1947a0000 is not in unified memory writing empty BVH descriptor (at 157.2 s) ``` so 40 mesh-pipeline draws are dropped for the whole run, and the ray-tracing BVH is empty (`raytracing = "auto"`). Neither is obviously the cause of the hang, but they are the state the title is in when it happens. After the removal the title keeps running for another 38 s and then asserts on the resource creation it was in the middle of: ``` CreatePlacedResourceX at 0xda3340000: dimension 3 256x256 format 78 flags 0x300000 a resource of its own (0x887a0005) unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606 rax=0x11d4d3df46f rsi=0x887a0005 ``` `rsi` holding `0x887A0005` says the creation was handed the already-removed device, i.e. the assert is a symptom, not the cause. The decay is the part I cannot attribute: it looks like work per frame grows (submissions, or a shader that loops longer as state accumulates) until one command exceeds the TDR limit. Frames keep being presented right up to the removal, so it is not a stall waiting on the title. Two smaller observations from the same log, in case they matter: ``` a command list reset while its last submit is on the GPU records on another PC list (#2, #3) compute split: 0 programs split, 0 pieces built, 0 chained dispatches issued ``` Nothing here is a request — the report exists so the next reader knows the OOM timings above are now stale, and that the remaining wall on an 8 GB card is this decay rather than the page budget. Say the word if you want `XCL_ACTIVITY=1` numbers or a log attached.
Author
Owner

@⁠b3IKK on GitHub · 2026-11-25 15:52 UTC · original

A cross-reference for the post-OOM wall, from a 16 GB card, because it suggests the decay-then-death is not about 8 GB of VRAM.

Setup: RTX 5080 16 GB (driver 32.0.16.1088), retail 1.0.2.1, main 426a5a7, 600 s run, A pressed at 33 s, default settings except XCL_PSO_WAIT_MS=50 (so a bind does not wait for an unbuilt compute pipeline). No title_memory_mb override; zero 0x8007000E lines; local video memory stayed at ~15.4 GB of 16 at the end.

  • Frames do not stop at the usual point (92-96 s on this card): they trickle at 0-2 presents per 2 s from 110 s to ~204 s, with 16,732 draws and 8,328 dispatches skipped by 181 s - the compute passes that feed the world are stand-ins.
  • At 212.8 s: unhandled exception 0x80000003 in game_scarlett_master.exe+0x4da6315, the stop listed from #1164. No device removal; the process then stayed alive with no further log line (ended after ~16 minutes; XCL_RUN_SECONDS never got to run).

So the same shape as your 06c9f55 run - the title keeps presenting past the load, then ends on the GPU side rather than on memory - appears on a card with twice the VRAM, with the difference that the end is the title's own int3 here and 0x887A0007 there. With the default wait, my card never reaches that point in 600 s: frames stop at 96 s and the run spends the rest of the minute compiling, so the post-load wall is only reachable when the compile wait is bypassed (or, on your machine, when XCL_DIRECT_DXIL=1 makes the compiles cheap enough).

The XCL_ACTIVITY=1 numbers and the log you offered would be worth having: the decay from 16.6 to 5.0 fps with frames still being presented is the part I cannot reproduce here.

AI use: OpenCode, Claude Fable 5.2 ran the 5080 run on this machine, read the log and wrote this.

**@⁠b3IKK** on GitHub · 2026-11-25 15:52 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337#issuecomment-7167383441) A cross-reference for the post-OOM wall, from a 16 GB card, because it suggests the decay-then-death is not about 8 GB of VRAM. **Setup:** RTX 5080 16 GB (driver 32.0.16.1088), retail 1.0.2.1, `main` `426a5a7`, 600 s run, A pressed at 33 s, default settings except `XCL_PSO_WAIT_MS=50` (so a bind does not wait for an unbuilt compute pipeline). No `title_memory_mb` override; zero `0x8007000E` lines; local video memory stayed at ~15.4 GB of 16 at the end. - Frames do not stop at the usual point (92-96 s on this card): they trickle at 0-2 presents per 2 s from 110 s to **~204 s**, with **16,732 draws and 8,328 dispatches skipped** by 181 s - the compute passes that feed the world are stand-ins. - At **212.8 s**: `unhandled exception 0x80000003 in game_scarlett_master.exe+0x4da6315`, the stop listed from #1164. No device removal; the process then stayed alive with no further log line (ended after ~16 minutes; `XCL_RUN_SECONDS` never got to run). So the same shape as your `06c9f55` run - the title keeps presenting past the load, then ends on the GPU side rather than on memory - appears on a card with twice the VRAM, with the difference that the end is the title's own `int3` here and `0x887A0007` there. With the default wait, my card never reaches that point in 600 s: frames stop at 96 s and the run spends the rest of the minute compiling, so the post-load wall is only reachable when the compile wait is bypassed (or, on your machine, when `XCL_DIRECT_DXIL=1` makes the compiles cheap enough). The `XCL_ACTIVITY=1` numbers and the log you offered would be worth having: the decay from 16.6 to 5.0 fps with frames still being presented is the part I cannot reproduce here. AI use: OpenCode, Claude Fable 5.2 ran the 5080 run on this machine, read the log and wrote this.
Author
Owner

@⁠b3IKK on GitHub · 2026-11-25 17:52 UTC · original

A 16 GB-card update that finally reaches the world, then hits a different wall.

Setup: RTX 5080 16 GB (driver 32.0.16.1088), retail 1.0.2.1, 0829441, warm driver cache (zero cold compute compiles in the run), XCL_PSO_WAIT_MS=50, 600 s, A pressed at 33 s.

  • Presents continue to 200 s (28 two-second intervals with presents after the earlier 96 s stop), not the 5 fps decay on the 8 GB card.
  • At 199.966 s: 0xc0000005 in game_scarlett_master.exe+0x4e8b4be (read at 0xffffffffffffffff), raised on several threads.
  • The title's own crash log: frame 1420, game time 3m18s, player at <1831.06, 140.08, 2.82>, camera front <0.339, -0.941, 0.004>, 845 streaming requests, tile heap 3974/6236 MB, current SRL fbk_stry000_FBK_STRY000_INTRO in Prestream, and Unsignaled CrossQueueBarrier: 41710ff6.

So the world exists (player, camera and streaming are live); the crash is in the intro prestream, not in the load. The compile wall is bypassable with a fully warm cache; this crash is the next wall. A default-wait run is running now to see whether XCL_PSO_WAIT_MS=50 (which skips dispatches) contributes to it.

AI use: OpenCode, Claude Fable 5.2 ran the 5080 test, read the log and the title's crash log and wrote this.

**@⁠b3IKK** on GitHub · 2026-11-25 17:52 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337#issuecomment-7170121773) A 16 GB-card update that finally reaches the world, then hits a different wall. **Setup:** RTX 5080 16 GB (driver 32.0.16.1088), retail 1.0.2.1, `0829441`, **warm driver cache** (zero cold compute compiles in the run), `XCL_PSO_WAIT_MS=50`, 600 s, A pressed at 33 s. - Presents continue to **200 s** (28 two-second intervals with presents after the earlier 96 s stop), not the 5 fps decay on the 8 GB card. - At **199.966 s**: `0xc0000005` in `game_scarlett_master.exe+0x4e8b4be` (read at `0xffffffffffffffff`), raised on several threads. - The title's own crash log: frame 1420, game time **3m18s**, player at `<1831.06, 140.08, 2.82>`, camera front `<0.339, -0.941, 0.004>`, **845 streaming requests**, tile heap 3974/6236 MB, current SRL `fbk_stry000_FBK_STRY000_INTRO` in **Prestream**, and `Unsignaled CrossQueueBarrier: 41710ff6`. So the world exists (player, camera and streaming are live); the crash is in the intro prestream, not in the load. The compile wall is bypassable with a fully warm cache; this crash is the next wall. A default-wait run is running now to see whether `XCL_PSO_WAIT_MS=50` (which skips dispatches) contributes to it. AI use: OpenCode, Claude Fable 5.2 ran the 5080 test, read the log and the title's crash log and wrote this.
Author
Owner

@⁠b3IKK on GitHub · 2026-11-25 19:07 UTC · original

Correction to my comments above: those runs left XCL_DIRECT_DXIL unset and were therefore on the HLSL path, which is why they reported compute split: 0. The fence/wait lead was from that backend. On the direct backend (XCL_DIRECT_DXIL=1) the same retail 1.0.2.1 title behaves differently:

direct run cold compute compiles last 2 s interval with a present split programs / pieces
1 55 94 s 79 / 762
2 21 142 s 190 / 1,791
3 6 164 s 266 / 2,621
4 12 94 s 266 / 2,621

The fourth run regressed because it hit a new set of whole forms: ~900 KB DXIL compiles on title threads at 93, 135, 176, 224, 265, 303, 357, 398, 437, 474, 505 and 580 s, one after another — the ExecuteIndirect whole-form fallback that #2404 targets. A 600 s run of 68a284a + #2404 + #2097 with the same settings is running now; the result will go on #2404.

AI use: OpenCode, Claude Fable 5.2 ran the four direct runs on this machine and wrote this.

**@⁠b3IKK** on GitHub · 2026-11-25 19:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337#issuecomment-7171845362) Correction to my comments above: those runs left `XCL_DIRECT_DXIL` unset and were therefore on the **HLSL path**, which is why they reported `compute split: 0`. The fence/wait lead was from that backend. On the direct backend (`XCL_DIRECT_DXIL=1`) the same retail 1.0.2.1 title behaves differently: | direct run | cold compute compiles | last 2 s interval with a present | split programs / pieces | |---|---:|---:|---:| | 1 | 55 | 94 s | 79 / 762 | | 2 | 21 | 142 s | 190 / 1,791 | | 3 | 6 | 164 s | 266 / 2,621 | | 4 | 12 | 94 s | 266 / 2,621 | The fourth run regressed because it hit a **new set of whole forms**: ~900 KB DXIL compiles on title threads at 93, 135, 176, 224, 265, 303, 357, 398, 437, 474, 505 and 580 s, one after another — the ExecuteIndirect whole-form fallback that #2404 targets. A 600 s run of `68a284a` + #2404 + #2097 with the same settings is running now; the result will go on #2404. AI use: OpenCode, Claude Fable 5.2 ran the four direct runs on this machine and wrote this.
Author
Owner

@⁠NWProgramming00 on GitHub · 2026-11-26 08:35 UTC · original

@⁠yangzj0844 @⁠vitalityscripts, would one of you run #2385 on your 8 GB card? It is the case it is meant for, and no one has tested it on 8 GB yet.

What #2385 does: past 75 % of the local video-memory budget, new sampled textures get no memory for their largest mips, and their views are clamped to the first mip they have. Render targets and UAV textures keep all their memory. On a 12 GB RTX 4070, @⁠Royalflamejlh measured about 3 GB less spill into non-local memory (in the PR's comments); on my 16 GB card the budget only fills late.

The A/B, same build, same config, in turn:

git fetch https://github.com/xcl-dev/xcl pull/2385/head:pr-2385
git checkout pr-2385
cargo build --release
$env:XCL_ACTIVITY = '1'
# run 1: the budget on (default)
# run 2: the budget off
$env:XCL_TEXTURE_BUDGET = '0'

What would settle it (numbers only, no frames or title files):

  • device removals, and the time of the last present, in each run;
  • the first video memory is filling up line (its time);
  • the last memory: line: local / non-local video memory, target pages, and the top mips counts.

If the run dies earlier for another reason (the wall after the memory fix, above), that is useful to know too: say where it stopped in both.

AI use: Claude Code (Claude Opus 5.5) wrote this request for the PR's author.

**@⁠NWProgramming00** on GitHub · 2026-11-26 08:35 UTC · [original](https://github.com/xcl-dev/xcl/issues/1337#issuecomment-7186778530) @⁠yangzj0844 @⁠vitalityscripts, would one of you run #2385 on your 8 GB card? It is the case it is meant for, and no one has tested it on 8 GB yet. **What #2385 does:** past 75 % of the local video-memory budget, new sampled textures get no memory for their largest mips, and their views are clamped to the first mip they have. Render targets and UAV textures keep all their memory. On a 12 GB RTX 4070, @⁠Royalflamejlh measured about 3 GB less spill into non-local memory (in the PR's comments); on my 16 GB card the budget only fills late. **The A/B, same build, same config, in turn:** ```powershell git fetch https://github.com/xcl-dev/xcl pull/2385/head:pr-2385 git checkout pr-2385 cargo build --release $env:XCL_ACTIVITY = '1' # run 1: the budget on (default) # run 2: the budget off $env:XCL_TEXTURE_BUDGET = '0' ``` **What would settle it** (numbers only, no frames or title files): - device removals, and the time of the last present, in each run; - the first `video memory is filling up` line (its time); - the last `memory:` line: local / non-local video memory, target pages, and the `top mips` counts. If the run dies earlier for another reason (the wall after the memory fix, above), that is useful to know too: say where it stopped in both. AI use: Claude Code (Claude Opus 5.5) wrote this request for the PR's author.
This discussion has been locked. Commenting is limited to contributors.
No description provided.