Video memory jumps 5–7 GB in two seconds when a retail title starts its world – not XCL's resources; it coincides with the first wave of world compute pipelines #560
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#560
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@gw1337x on GitHub · 2026-11-24 01:50 UTC · original
What happens
The retail title (retail, Series build), AMD Radeon RX 7800 XT 16 GB (driver 32.0.32015.7029), 31.6 GB RAM, Windows 11. Menus walked with
XCL_PRESS_A_AT=14,17,21,XCL_ACTIVITY=1. Build:main2997c9a+ #455 + #435 + a local detile speed-up (gpu/tiling.rsonly). With this build the title gets through its loading screen into the world (the opening cutscene's audio plays), and then, within two seconds, local video memory grows by 5–7 GB:An earlier run on
main9ab7d76+ #244 showed the same kind of step, +3.3 GB in 2 s, at the same point of the title (126 s in there, because its loading was slower).What follows in those runs: no presents for up to 27 s, then the title crashes (
write at address 0x0in+0x23cf683, or a read at0x7ffff0000in+0x5425a9e). On a 16 GB card the jump puts video memory past the card.It is not XCL's heaps or resources
Run 4 logged every heap and committed resource of 8 MiB or more that goes through the device (
CreateHeap*/CreateCommittedResource*, XCL's own pools included – a local counter inreal.rs'screator!). Over the whole run they add up steadily (190 × 64 MiBvrampage pools, ~80 × 10 MiB upload buffers, a few others). In the 2 s of the jump (90 → 92 s) they add ~130 MB. The activity line's target pages, arenas and sparse pools are flat over the same 2 s.What coincides with it
The title's world starts dispatching compute work: 181 console compute pipelines are created between 90 and 93 s (
compute PSO with the translated console CS; 12 MB of DXIL, the largest 788 KB), against 10 in the 90 s before. A thread dump at 100 s in another run shows one thread insideamdxc64.dlland anxcl-psoworker inbuild_compute→dxc::compile_cached.Hypothesis (not checked)
Memory the driver allocates for these pipelines rather than anything XCL creates – most likely per-thread scratch: a compute program with spilled registers or indexed private arrays gets scratch for every thread that can be in flight, which can reach gigabytes. A precompile of 23 000 of the title's 26 503 programs (DXIL cache) did not change the jump, so it is not the cost of compiling them.
I do not have a way to read the translated programs' scratch sizes here. If someone can, the 181 pipelines created right after the title's world starts would be the place to look. I can rerun with any logging that helps.
Not tested: NVIDIA or other AMD cards; whether the crashes that follow are caused by the jump; any change to the translator.
AI-assisted (Claude Code, Claude Opus 5.5).
@requiemsnkrp on GitHub · 2026-11-24 01:54 UTC · original
NVIDIA data point for the hypothesis: no jump here, and also no wave of compute pipelines. That is consistent with pipeline-owned memory.
Setup: RTX 3060 12 GB, driver 621.24; Ryzen 5 5600X; 16 GB RAM; Windows 11 Pro 26200; release build of unmodified
main508a0c7.XCL_NETWORK=0,XCL_ACTIVITY=1, menus walked withXCL_PRESS_AT(A at 14/17/21 s, then every 6 s from 125 to 197 s). Same run as in #505: it reaches world loading and stops at the watchdog (+0x23cf683) at 326.9 s.From the
memory:lines. "Other" is local video memory minus target pages minus sparse pools:compute PSO with the translated console CSlines in the whole run (5 at 222 s, 20 between 276 and 324 s), against your 181 in 3 s. At the stop,report.jsonhasbackground_pipelines: [46, 0, 58715]: on this card almost nothing gets built once the world loads (#156, #499, the backlog discussed in #505).So on NVIDIA the step does not happen, but neither do the pipelines it coincides with on AMD. This does not separate "the driver's scratch for those pipelines" from "something else the title does once they exist". It does fit the first, and it means a fix for the NVIDIA build backlog would likely bring the jump to NVIDIA cards too. 12 GB cards would hit it sooner.
AI use: Claude Code (Claude Opus 5.5) read the run's log on my machine and wrote this comment.
@chazi123 on GitHub · 2026-11-24 02:51 UTC · original
A 12 GB NVIDIA data point, same title (1.0.2.1, retail): no 5–7 GB video-memory jump here either, and also no wave of big compute pipelines — the run built only 15
compute PSO with the translated console CSin total, largest 105,272 B, while the background queue stayed at 58,732 queued. What did grow was process commit, 9.8 GB at 14 s to 36.7 GB at 224 s, with local video memory reaching 12.9 GB (past the card) andtarget pages9.1 GB; free physical memory fell to 1 GB and the run ended in0xc0000005 in VCRUNTIME140.dll(memcpy) during world loading. Settingtitle_memory_mb = 4096did not captarget pages(they reached 9,521 MB), and aXCL_COMPUTE_FALLBACK_KB=768switch never fired for lack of big programs. So on this card the commit growth is not from the large compute compiles you describe — but neither does the world get through. Full log on request.RTX 3060 Laptop 12 GB, Xeon W-1250, 32 GB RAM + 34 GB page file,
maina6f5f7a+ #486 + #516 + #451, Windows 10 19045.AI assistance: Doubao collected the numbers and wrote this comment from my runs; I reviewed it.
@ofc0urse on GitHub · 2026-11-24 02:13 UTC · original · edited 2026-11-24 03:23 UTC
NVIDIA data point for the "memory the driver allocates for these pipelines" hypothesis. Here it shows up as process commit, not local video memory, and it comes from a few of the largest programs, one build at a time.
Setup: RTX 4060 Ti 8 GB, driver 621.24; i5-14400F (MONITORX/CLZERO emulated); 32 GB RAM, 64 GB page file; Windows 11. Local release build:
mainc8e3ca0+ #235, #244, #252, #254, #255, #267, #283, #292, #306, #314, #322, #348, #486, plus local changes that are in no PR (a BCPack decoder, the title's watchdog thread parked instead of its null write, and a translated compute PSO built again reusing the driver's cached blob).XCL_NETWORK=0,XCL_ACTIVITY=1, WindowsTdrDelayraised to 60 s.With the watchdog parked the title stays on its loading screen and keeps creating world compute pipelines for half an hour. From ~800 s on they are the largest programs, 0.9–1.3 MB of DXIL, 56–97 s each in the driver, one at a time on the title's thread. From the
memory:lines:At ~1930 s Windows ran out of commit (32 GB RAM + 64 GB page file) and the process ended without a log line.
Update: programs of 768 KB of DXIL or more skipped. Same build plus a local switch (
XCL_SKIP_CS_KB=768): such a program gets the fallback CS (it does nothing) instead of the driver's compile.Wait64BitValueXtime out (op 7, want0x1269, memory holds 0), the last submit is at 408 s and the watchdog is parked at 411 s. After that the title records dispatches until ~1508 s and submits nothing. No present after 384 s.So on this card the commit growth comes from those ≥768 KB programs, and skipping them removes it. The stop after loading is a different problem: a GPU wait whose value is never written. An earlier run without the switch timed out the same way (memory still 0) at ~342 s. I cannot rule out that one of the skipped programs is what should write that value in this run.
AI use: Claude Code with Claude Opus 5.5 read the run's log and wrote this comment from my run.
@PastiiJay on GitHub · 2026-11-24 08:33 UTC · original
RDNA4 + 16 GB VRAM + 32 GB RAM data point: same stop as here and #534 / #846 (
write at address 0x0in+0x23cf683), every run, ~100 s in. On this machine the whole system runs out of memory at that point.Setup
cargo build --release --workspace, plainmainunless notedXCL_NETWORK=0(it did stop the title's crash reporter from uploading a 27 MB minidump),XCL_ADAPTER=radeon, menus walked withXCL_PRESS_A_ATWhat works
Menus at 30 fps (0 draws skipped), intro, the full first-run flow including privacy/terms, then the illustrated loading screen (Jason in front of his car) at ~27 fps.
Runs
a6f5f7a+0x23cf683508a0c7+0x23cf6839ce2070,device_type = "lockhart"0x80000003at+0xb18de7, 38 smain+ #640,XCL_PAGE_BUDGET_MB=6144+0x23cf683at 117 s; at that point 31.6 GB committed by the process, 17.3 GB local video memoryXCL_DXC_THREADS=4,XCL_PAGE_BUDGET_MB=40960xc000040910 s in (not investigated)a1672ef+0x23cf683at 105 s1c87b1d+0x23cf683at 98 s; 30.5 GB committed, 14.0 GB local, target pages 9.7 GBTakeaway: on 16 GB VRAM / 32 GB RAM, the world start pushes both video memory and process commit to the limit, then the title's stall watchdog fires. Happy to rerun with
XCL_ACTIVITY=1or any build/flag you want and post the numbers.No game files attached; full logs available on request.