Roadmap: retail title past world load #1833
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#1833
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?
@ivall on GitHub · 2026-11-24 21:35 UTC · original
The current goal: the retail title gets past world loading. Its menus run at 30 fps; the world load is where most machines stop.
Work on this goal is looked at first. Everything else stays welcome, but waits longer.
Where it stops, and the issues for it
All of them: issues and PRs labelled
goal:world-load.Where things go
Labels
goal:world-load: bears on this goal. On PRs it was set by a script: the PR names one of the labelled issues as what it fixes or is part of. If yours is missing, say so here or on the PR.off-goal: does not bear on this goal and waits; it is not a rejection. Set by a script on PRs that change only tests, scripts, CI or docs and name none of these issues. If it is wrong on your PR, say so.duplicate: confirmed by two people in #1607.stale: a PR with no activity for 3 days. It is closed 4 days later unless something happens on it; a push or a comment takes the label off. Issues, and PRs labelledgoal:world-loadorkeep-open, are left alone.Nothing is closed because of
off-goalorduplicatealone: a second person checks it first.AI use: Claude Code (Claude Opus 5.5) wrote this text and set the labels on the maintainer's behalf.
github-bot referenced this issue2026-11-26 05:28:47 +00:00
@throny on GitHub · 2026-11-24 22:29 UTC · original
What another project running the same title does past world load, and what XCL could take from it (ideas only). fxceless/victory-fork (a fork of Marvisak/VIctory, also Rust with the title's x64 code running natively) says in its README (status 2026-11-25, at
2119b0e): the opening cutscene plays from start to finish, and the first gameplay scene renders, at 2–4 fps, with shadows black (no ray tracing yet) and about 24 GB in use, on one machine (RTX 4070 12 GB, 32 GB RAM). These are its own claims; I haven't run it.Licence first: it is GPL-3.0-or-later, and XCL is GPL-2.0-only, so no code, comments or tests can come over, not even closely paraphrased. Techniques and their published measurements can be reimplemented independently; cite the idea in the PR, not the code.
How it handles what stops XCL, from its source (
crates/victory-gpu/src/pipeline/make.rs,library.rs):ungated here (a title thread's …))XCL_PSO_WAIT_MSis per pipeline; the per-frame cap is in #1652, and @milesah3ad has asked to split it outXCL_PSO_PRELOADexists; I haven't checked whether it limits itself to pipelines a run usedXCL_LAZY_PSOexistsID3D12PipelineLibraryfile memory-mapped and its handle kept open: it says this saved 1 352 MB and fixed a device loss when a save replaced the mapped file.mainSEC_RESERVE, committed on first map (the title asks for 6.1 GiB at once).main(SEC_RESERVE)The first two are the ones most likely to matter for the world load. The project's own measurements say the watchdog was the reason for both, which matches what @Anon64, @Pipodi and others found on #1269.
I checked XCL's side only by searching
main(177cd40) for the settings and API names, so an existing PR may already cover some rows. Say so here and I'll correct the table.AI use: Claude Code (Claude Opus 5.5); the fork was read by a Claude Opus 5.5 sub-agent, and the README status and the wait-budget code were checked by hand.
@thehollowedone on GitHub · 2026-11-25 00:00 UTC · original
For the prewarm row, XCL already limits lazy preloading to shader-set keys used by an earlier run. It records the key on use in
used-pipelines.txt. On the next run, a matching shader set can build on the low-priority preload workers as soon as its pipeline is created. An unseen shader set stays lazy until first use. The key identifies the shaders, so different pipeline state using the same shaders can also match. Source at8e87fc7On Windows 11 with Rust 1.99.1 MSVC,
cargo test --offline --locked --release -p xcl --lib hle::d3d12x::pso_async::used_tests -- --nocapture --test-threads=1passed all six tests with zero skips. The stock preload test verifies the known-key and unseen-key cases using synthetic jobs. It does not measure retail world loading.AI-assisted. Codex (GPT-6 family, exact variant unavailable) ran the tests and drafted this report.
@tugasky on GitHub · 2026-11-25 00:23 UTC · original
For the "crashes on the way into the world" line: #1968
#1968 is a
0xC0000005read at0x3e0, at 290.069 s, on the world-load path —XCL_TITLE_COMMIT_CAP_MB=32768, commit 22 481 MB at the time, so not at the cap, and no0x8007000Eanywhere in the log.stack_callersresolves the only code frame on the stack toxcl.exe+0x1aa2b6=hle::d3d12x::real::translated_mesh_stream(real.rs:4468), which is why it is filed separately from #846, #1164 and #1401: those are faults in the title's own code, and this one lands in XCL's streaming path.What makes it a blocker for the goal rather than one more crash is what follows it. The process does not exit: 125 threads stay alive, 0 ms of CPU over 0.8 s, commit frozen, and
XCL_RUN_SECONDS=300never fires — onlyStop-Processended it. So the same run is both "the load crashed" (290 s) and "loading forever" (the 20 minutes after), which is the shape a player reports.On the same machine a run with a 40 960 MB cap reached the world-loading artwork and ran to its 420 s timeout with 5 396 frames and no exception, so the input and the hardware are not the obstacle — but it is one occurrence, and the report says so: the same press path at 32 768 MB ended in a
0xC0000409(XCL's own allocation abort, since fixed) on one attempt and anE_OUTOFMEMORYassert on another. A second occurrence with the exception line symbolised (#1811 does that for thread dumps) would settle it.AI-assisted (Claude) under my review; numbers from my runs, no game data.
@philip-roy-jones on GitHub · 2026-11-25 01:31 UTC · original
PR #2038 makes the retail title start on GPUs without conservative rasterization, such as the Radeon RX 580 (AMD Polaris).
The RX 580's driver refuses every pipeline that asks for conservative rasterization (
E_INVALIDARG). After the refusal, XCL's fallback passes the console shaders to the driver, andamdxc64.dllends the process with0xc0000409before the first frame. That happens onmain656c0e8with default settings. #2038 turns the flag off whereD3D12_OPTIONSreports no tier. With it, the RX 580 shows the menus at 30 fps (1,216 frames in a 60 s smoke run) with no refused pipeline. #303 guards the same crash path from the other side.AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this comment.
@humsterbumster on GitHub · 2026-11-25 05:10 UTC · original
Status from a Linux/NVIDIA box against the "past world load" goal, because the shape changed this week.
Where the retail title stops now (RTX 5090, 32 GB, NVIDIA 620.73.04, Wine 11 / Proton 11, XCL
aa9ab8a, vkd3d-proton masterec20719= 3.2.0 + the two-hunk relaxed-vtable change,-Db_ndebug=true)0x80000003atgame+0x4da6315(417 s), exit rc=1 (564 s),0xc0000005with a poison pattern inraxatgame+0x4f28df1(377 s). Three runs, three different end points in the title, no device removal.err:vulkan:vkCreateComputePipelines Exception 0xc0000005 in Unix call, at 193, 200, 242, 256 and 331 s (five legs, including one withXCL_DIRECT_DXIL=0and one withWINEDEBUG=err+all). On 3.2.0 that line is gone from every log, so the #1269/#2003 class of stop is no longer what is blocking this box.What still looks wrong on the way in
XCL_PSO_WAIT_MS=500the skip counters fall from 61,978/90,508 (draws/dispatches skipped) to 2,048, and the screen is identically black.D3D12.X: Write64 Signal ... would close a GPU cycle (waiters=...) – signalled on CPUrepeats through the load on 3.2.0 and did not appear on 3.1.VKD3D_CONFIG=ignore_shared_fence,single_queuechanges nothing measurable here (same timing, same failure shape).So on this machine the world-load blocker is no longer shader compile time or the driver's pipeline creation; it is whatever the title trips over ~6 minutes into prestream once the queues go idle. Next step is to find which resource/state the title expects at that point rather than to tune compile concurrency.
AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
@humsterbumster on GitHub · 2026-11-25 06:00 UTC · original
Correction to a detail in my previous comment: the 3.2.0 legs are not black for the whole story phase. Re-running with the warm pipeline cache, the title shows its splash artwork while it prestreams (~190 s after the account picker, 3840x2160) and the window goes black only when the intro scenario itself starts. The "0-2 presents per 2 s" figure covers both phases, and the failure signatures (title failfast at ~415 s cold,
+0x23cf683null write at 246 s warm) are unaffected.AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class.
@Pipodi on GitHub · 2026-11-25 08:12 UTC · original
The
goal:world-loadlabel is missing on #2018 and #2025. Both say "Part of #1269" in the description, like #1448 and #1692 below them in the same stack, which have the label.AI use: Claude Code with Claude Opus 5.5 wrote this.
@CharlyRien on GitHub · 2026-11-25 08:59 UTC · original
A request for the lists and labels above: #697 bears directly on this goal and is neither listed nor labelled
goal:world-load, and the same goes for the PRs the world's geometry depends on, #541, #2092 and #1803.Why: on an RTX 3090 the retail title's world stays empty (nothing rasterised, flat grey behind the HUD) because its GPU-driven culling and its mesh programs read their data from the GPU view of the title's 24 GB reservation, which translated shaders cannot read today – that is #697. With those buffers made readable (local copies) on top of #541 + #2092 + #1803, geometry reaches the depth target and the G-buffer: #697 . So "Streamed textures and pages" covers the texture half (#1031, #1055, #1102) but not the buffer half, which is what keeps the world empty.
Setup in short (the full block is in the linked comment):
main689f2db+ #1329 (+ #1326, #1327), #1448, #1323, #889, #684, #929, #640, #1850, #765, #1982, #1405, #1464, three allocator-lifetime commits fromwondercrash/xcl, then #541, #2092's3442b58state, #1887, #1803, plus local changes;XCL_UMA_SHADOW=1 XCL_HEAP_WINDOWS=1; RTX 3090 24 GB (driver 616.56), Windows 11 22631; one clean run and one partial run.AI use: Claude Code (Claude Fable 5.2 coordinating, Claude Opus 5.5 for the ports and the runs) did this and drafted the comment.
@ozimchuk on GitHub · 2026-11-25 09:21 UTC · original · edited 2026-11-25 10:03 UTC
A proposal for this goal from a Linux box (Wine + vkd3d-proton, NVIDIA (32-lane waves)): the runtime's allocations go to mimalloc instead of the process heap. Measured past the world load, on a tree of candidate PRs.
What stops the title after its world load here
XCL_THREAD_DUMP_AT, frames resolved against the build's debug info): the title's render thread spent about 40 % of its samples inside XCL creating resources for the title (SRV creation →resource_at→create_placed_resource_x→xg::Texture::new), most of that waiting on the process heap's lock. Its submit thread waited there too (sparse::before_execute,ExecuteCommandLists), and so did about 15 DirectStorage workers, which allocate, zero and free their buffers for every request.The change (3 files, +26; branch
mimalloc-allocator,94cff5donmain568e7db):mimalloc(MIT,default-features = false) asxcl.exe's#[global_allocator]. The lock file gains onlymimallocandlibmimalloc-sys. mimalloc keeps per-thread heaps, so a thread's allocations and frees take no shared lock.Measured (300 s runs, the same settings each,
XCL_PSO_WAIT_MS=50) onmainc4d37bewith the open PRs #455, #929, #1278, #1102, #1055, #1044, #495, #549, #751, #684, #494, #1512, #1513 and some local changes:Corrected: an earlier version of this comment said there was no crash in these runs and gave per-second figures over 300 s. Two of the three runs with mimalloc ended early (at 191 s and 215 s):
vkAllocateMemoryfailed while the NVIDIA driver was out of system memory (NV_ERR_NO_MEMORYin the kernel log), and the process aborted. The third ran the full 300 s; so did both runs without it. This tree without mimalloc has met the same driver limit before, later (after 5.5–8 min). Whether mimalloc itself raises the memory use or the title only gets there sooner, I have not measured yet.Why not on
mainitself:main568e7dbcrashes here at the world load (80–89 s), with and without mimalloc. The title's XG copy into its memory (xg::copy_from,hle/xg.rs:713) writes to an unmapped page; #2057 at4df1e6edoes the same here. Up to that point the two runs look alike. The tree above gets past it, and I am looking for which of its changes does that.Not measured: Windows. Its process heap has a low-fragmentation front end for small blocks, so the gain there may be smaller; large blocks (DirectStorage's buffers, uploads) still map and unmap per allocation. A run on Windows,
mainagainst the branch, would settle it.If this direction is welcome, I would open it as a PR (Part of #1701, which reports ~0.5 fps under Proton), with the suite and the smoke runs.
AI-assisted. Claude Code, Claude Opus 5.5.
@GreemSC on GitHub · 2026-11-25 14:39 UTC · original
@ivall one decision, then the sources. The goal above is reached on some trees (README: the NVIDIA integration branch #2057 enters the 3D world at ~5 fps; 4 people saw world geometry on 11-24, and 5 more reached the world today with the HUD or minimap up but the picture grey, flat green or black), but what is left between "past world load" and "playable" has no list or label yet. Would you add a second group (or a
goal:in-worldlabel) for it? A proposal, every line with a source:1. PRs that clear a wall on the way in and only wait
copy_fromguard): 11 test reports; on Linuxmaincrashes incopy_fromat the world load every time, this PR gets past it (ozimchuk). Waits for itsPR descriptioncheck. Not in #2057.E_OUTOFMEMORY(#333). Waits for a rebase; not in #2057.2. In the world, what keeps it from being playable
#101(#1452, #675): NVIDIA traced by @throny on #1269 (not the video-memory budget, corrected; no Xid or TDR: the runtime or driver removes the device), AMD by @DTsordas (an immediate GPU fault after a compute fan-out, 7162607999), RDNA3/Linux by @lucsoft (TCP page faults, #505). Moving it: #1993 kept an RTX 3060 presenting ~30 s past the first#101against 2–4 s without it (Natakout, 2 runs against 6); #1798 on #2057 took an RTX 4090 into the opening titles (minimalhipster990).3. Linux / RADV (our runs, RX 7900 XT, Mesa 26.2.5, 24 GB RAM,
main1a0bbe3+ #871 + #684 + #1860, 300 s each): on the default HLSL → DXC path, the in-game driver compile of one compute program of ~1 MB of DXIL went past 16 GB of RAM and the kernel killed the game (2 of 2 runs at a 16–18 GB cap). WithXCL_DIRECT_DXIL=1(+ #1860, without which dxil-spirv's recursion of #1805 overflows the stack) the same giants build in 4–11 s and the game stays at 11–14 GB: 4 runs, no OOM, no device removal. The world load then stops like everyone else's: frames stop 2–4 s after the first#101, GPU waits on values no queue submitted, nothing compiling. Also: pipelines prebuilt withxcl shaders --precompile --pipelinesare refused in the first game run after it (181 and 368compute retry, accepted in the next run), so the tool's blobs do not match what the title asks for. Our runs predate #2080 (direct programs split into pieces, merged 13:36 UTC), which should cut those compiles further. On RDNA4 under Winemaindoes not start the title without #871 (St5sz2Jk).4. What the projects further along do (VIctory forks, GPL-3.0: ideas only, no code), not yet in @throny's table above: textures allocated only for the mip levels the title holds (
VICTORY_LEVELS_ON_DEMAND, −3.1 GB of VRAM on a 12 GB card, fxceless/victory-fork); writes through any address of a multi-mapped page invalidate the copies made through its other addresses (same, vs #2293); programs that stop the AMD driver's compiler or take it minutes and tens of GB are left out (victory-amd; XCL: #1665). Status there: "Not playable yet: 2.5 to 4 frames per second", shadowed areas black, ~24 GB of RAM in use (fork README; an RTX 5080 run in its #921); on Linux/RADV, Scarlight spends 457 ms of a 602 ms frame waiting on pipelines and recommends 32 GB.What ends the reported runs, wall by wall, with the PRs on each: https://greemsc.github.io/xcl-campaigns/walls.html
AI use: Claude Code (Claude Opus 5.5) read the issues, PRs and the other projects' READMEs and wrote this; the numbers are the linked authors' (section 3: our runs).
@kole07139 on GitHub · 2026-11-25 15:40 UTC · original
@ozimchuk, the Windows run you asked for. On an RTX 3070 8 GB / Windows 11, mimalloc made no difference past the world load: 0.115–0.122 presents/s and 678–799 dispatches/s after 120 s, with and without it. This fits your note that Windows' process heap has a low-fragmentation front end.
Setup
main:main568e7dbstops at the world load on this machine.4df1e6e, which is568e7db+ the world-load fixes.94cff5dcherry-picked (it applies unchanged;Cargo.lock,Cargo.toml,main.rs).XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_WATCH_HOT=0 XCL_NETWORK=0 XCL_ACTIVITY=1, noXCL_UMA_SHADOW.Runs (
activity (2 s)averages)0x887a0006at ~220 s0x887a0006at 84 s, during the world load0x887a0006(one per arm) are the GPU hangs this tree shows here at 84–220 s from run to run (#1452), so I do not read either as the allocator's.Not measured
AI use: Claude Code (Claude Opus 5.5) built both trees, ran the four runs, counted the log lines and wrote this comment. I watched the runs and checked it before posting.
@veyn-sudo on GitHub · 2026-11-25 17:52 UTC · original
#2403 (the 512 MB shader code heap of NVIDIA's driver, likely the silent
0x887a0005of #1452 and #505) bears on "GPU hangs, waits and device removal". Could it getgoal:world-load? There's a test to run on other cards.AI use: Claude Code (Claude Opus 5.5) wrote this.
@NWProgramming00 on GitHub · 2026-11-25 18:32 UTC · original
#2385 (sampled textures go without their top mips while video memory fills up) says "Part of #1773", which is in the memory group above, but it has no
goal:world-loadlabel. Could it get one?AI use: Claude Code (Claude Opus 5.5) wrote this.
@microwave805 on GitHub · 2026-11-25 18:43 UTC · original
Could #1842 (
Tests: cover Direct DXIL Module::optimize passes and GPU execution) and #1843 (Tests: check per-lane Direct DXIL wave, mask, and far-jump parity on GPU) get thegoal:world-loadlabel? Both directly cover #1269's direct DXIL optimizer (Module::optimize) and per-lane DXIL lowering (which currently have active #1269 PRs landing daily), and both are already verified across RTX 3070, RTX 5070 Ti, AMD RX 9070 XT (native wave64), and Intel Arc A770 — they were only auto-labelledoff-goalbecause their descriptions didn't mention#1269.AI use: Antigravity (Gemini 4 Neon) drafted this request.
@ozimchuk on GitHub · 2026-11-25 18:48 UTC · original
@kole07139 thank you, that is the run I asked for, and done carefully (alternating arms on the same caches, the cherry-pick applying unchanged).
Reading it as you do: on Windows the allocator makes no difference there. Your card is held by the GPU past the world load (one frame every ~8 s), so the heap lock never gets to matter. The difference I measured is a Wine one: Wine's process heap serialises on one lock, which Windows' low-fragmentation heap does not. So the proposal narrows to Linux / Wine (Proton). Without a run on Windows where the frame rate past the world load is set by the CPU, I would not claim a gain there.
If that is still worth having in
main, it could be limited to where it helps (selected at start under Wine, the process heap elsewhere) rather than replacing the allocator for everyone. I would wait for a maintainer's view before opening anything.AI-assisted. Claude Code, Claude Opus 5.5.
@razormontana on GitHub · 2026-11-25 20:14 UTC · original
I’m testing bounded input staging reuse for small file reads on the default sequential DirectStorage decode path. I’ll compare allocation counts and run synthetic tests with mixed read sizes and a failed read followed by a successful one, keeping the codec and parallel scheduling the same.
Assisted by OpenAI Codex (GPT-6.2 Sol).
@razormontana on GitHub · 2026-11-25 20:16 UTC · original
I’m taking the split-compute scratch admission race when independent command lists allocate concurrently. I’ll reserve the allowance before calling D3D12, release it if allocation fails, and check the shared 384 MiB budget and minimum per recording in a deterministic test.
Assisted by OpenAI Codex (GPT-6.2 Astra).
@razormontana on GitHub · 2026-11-25 22:49 UTC · original
I’m taking the runtime pipeline-cache case where a slow compile no longer reaches disk once the in-memory blob cache fills. I’ll keep the existing RAM limits and cache eligibility rules, then check that a late qualifying blob is available on the next run with a synthetic saturated-cache fixture.
@razormontana on GitHub · 2026-11-25 22:49 UTC · original
I’ll implement the missing DirectStorage
IDStorageQueueX1::EnqueueSetEventcompletion marker. A title thread waiting on that event currently sees no notification from the queue. I’ll check FIFO wakeup and normal submission with synthetic reads on the default and parallel paths.@CowboyBingus on GitHub · 2026-11-25 23:04 UTC · original · edited 2026-11-25 23:08 UTC
Progress on this goal, details in #505: on an RTX 5070 Ti (NVIDIA 621.24), @MacieGx's lab branch
f959495+ #684, with the #2403 shader code limit lifted by a local driver-specific diagnostic (@vinhed's reservation raise, not something formain), ran 720 s with no device removal in two runs, and showed the title's movement hint ("Move around" / "Move the camera"), in one run from 274.9 s on. On the earlier lab commitb72aa23with the same local commits, the runs without that diagnostic ended in0x887a0005(2 of 2); the runs with it were not removed (2 of 2), one of them ending in the title's own null write at 249.9 s after GPU queue-wait timeouts.Still open on that path: the picture around the hint is plain white and a garbled tile mosaic; 1.52 presents/s over the last 220 s of one run; GPU queue waits that time out after 5 s in some runs. Whether the title takes movement input there is being tested now.
AI use: Claude Code (Claude Opus 5.5) ran this and wrote it.
Human edit:
As a tl;dr, XCL is now officially in-game with this title on Windows Nvidia with working controls.
@KOLESNiii on GitHub · 2026-11-25 23:10 UTC · original
#2508 (Pipeline Rebuild) bears on "Shader and pipeline compile time" above. It proposes how to restructure PSO preparation: one deduplicated job per pipeline, separately bounded translation / DXC / driver workers, trace-derived prewarming, and stall attribution first. It also covers fence-owned visibility for mirrors, sync cells and copyback. It is not listed here and has no
goal:world-loadlabel. As a result #2555 (xcl run: prepare shaders in the game window before title execution), which says "Part of #2508", has no label either. Could both get it? Or, if compile-time work should stay in #2088, could #2508 point there?AI use: Claude Code (Claude Opus 5.5) wrote this.
@MacieGx on GitHub · 2026-11-26 00:12 UTC · original
Progress on this goal, details in #505: on an RTX 5080 16 GB with 32 GB RAM (NVIDIA 621.24), my lab branch got through the first cutscene and the prison to gameplay (movement hint, player control): 520 s, 6.3 min of world, no removal or stall. Two findings that bear on the issues above:
indirect_diffuse_lighting:CS_FinalGatherasks for ~115,200 groups in x on every ExecuteIndirect call; #1795's clamp cuts it to 65,535, so ~43 % of the pixels get no indirect diffuse light.The picture is still over-exposed, so this is not a working world yet.
AI use: Claude Code (Claude Opus 5.5).
@akimfomin on GitHub · 2026-11-25 21:36 UTC · original · edited 2026-11-26 00:22 UTC
Correction and measured follow-up (26 Nov). The older lane-local shortcut above can return incorrect pixels with adjacent Wave32 carry destinations, including on an ordinary HLSL path in XCL. We retired timings for that shortcut and reported the minimal witness and focused HLSL fix. PortBridge implemented a separate opt-in direct-DXIL consumer projection that preserves all original wave operations and reads a proven bit of the same SSA value. On the open raylib scene, with #2501/#2503/#2557 applied to both arms, D3D12 draw time fell 16.9–17.6% and Vulkan draw time 19.2–19.6% on two cameras. In a separate cold ordinary-XCL-translation plus D3D12-render test, the first verified image arrived 99–120 ms earlier in three pairs. All pixels matched. One MiniEngine filter showed no consistent GPU win. One RTX, no title-level or AMD/Intel confirmation. Raw evidence and replay · Independent test.
Following up here on the serial graphics PSO workstream. PortBridge tested a direct-DXIL pixel optimization that shares a guard across reads with the same condition while preserving the inactive path and read order. On RTX 4070 Ti SUPER (617.14), a synthetic 224-group divergent-window shader went from 4,168.748 to 412.822 ms for cold PSO creation. The ready draw took 86.528 and 86.016 µs. Pixels matched the CPU reference. An opt-in prototype for four root-UAV windows went from 531.532 to 246.251 ms on a separate 96-group fixture.
Coverage was narrow. Across 72 open pixel entries passed through XCL for structural comparison, one changed with one heap window and none changed with four heap or four root windows. Different offsets can genuinely change window selection through address carry. XCL application startup, native instruction bytes and any effect on #2403 remain unmeasured. The source-only patches, data and bounded reproducer are in the PortBridge report.
If anyone is already profiling cold graphics PSOs, an aggregate affected-shader count from a permitted workload or a paired synthetic run on AMD or Intel would help. GPU, driver, tested revision and timing medians are enough. Please keep shader dumps, title assets and private logs local.
Codex assisted the implementation, tests and report. Exact model variant unavailable.
Update (2026-11-26). With #2446 scalar reload CSE enabled, the two read fusions added zero changes across 194 validated open pixel entries with four root windows. The combined address passes showed no consistent cold win on two heavy Khronos Mobile NeRF variants. The follow-up isolates a larger cost: XCL can lower a mask write to the current lane’s bit when the existing analysis certifies that no whole-mask reader can observe it. In a D3D12 pipeline-creation fixture on RTX 4070 Ti SUPER, the two variants took 1653 → 625 ms and 1748 → 629 ms across five pairs each. A separate synthetic derivative and coverage check passed at 2,048 edge pixels. The fixture does not draw the original scene. This is an offline experiment; divergent helper-lane reconvergence, compatibility with #2501, AMD replication and title smoke still gate runtime use. Pinned PortBridge source and measurements · Voluntary AMD check
@philip-roy-jones on GitHub · 2026-11-26 00:38 UTC · original · edited 2026-11-26 00:43 UTC
Update: I closed #2589. #2038 makes the same change on main, and amd-dev takes in main regularly.
#2589 ports #2038 to amd-dev. On a GPU without conservative rasterization (tier 0 on my RX 580), XCL now turns it off in the pipelines it makes instead of passing it through, so the driver builds them. On amd-dev the retail title's first such pipeline was refused in every form, and the process ended in AMD's shader compiler about 5 s later. It stays a draft until the RX 580 runs are in.
AI use: Claude Code (Claude Opus 5.5).
@KOLESNiii on GitHub · 2026-11-26 01:10 UTC · original
Graphics prewarm parity on
mainatb49be18.Verified: The folder/pack precompiler’s VS and PS jobs emit HLSL and call
dxc::compile_cacheddirectly. The runtime goes throughconsole_to_dxil_for, which attempts direct VS/PS lowering whenXCL_DIRECT_DXIL=all. The offline pass does not populate those direct translation entries. There is a second difference on the HLSL path. Offline per-stage options use the default static-sampler base. Runtime VS+PS passes the number of VS static samplers as the PS base. A PS that emits static samplers can therefore produce different HLSL with its actual VS partner, even if the standalone PS precompile succeeded. Offline graphics loop · Runtime VS and PS calls · Backend selectionA plausible source of residual translation or DXC work after warming is therefore a mismatch in the shader variant. This is separate from the offline tool’s compute-only native PSO output. Test the same graphics descriptor in fresh processes, starting from an empty DXIL cache, with the offline pass enabled and disabled. Log direct translation hits and the PS sampler base and HLSL cache key separately from the native create time. The frequency of affected pairs and the cost remain unmeasured.
AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.
@iggyvilla on GitHub · 2026-11-26 02:15 UTC · original · edited 2026-11-26 02:26 UTC
Got past the black screen to intro credits, on
mainalone + small PRsPinging @ivall, hopefully this information is useful.
Update from an RX 6650 XT (RDNA2, 8 GB), Ryzen 7 5700X, 32 GB RAM + 64 GB page file, Windows 11. What stops the retail title at world load on
main, what gets it past the black screen, and what we measured after that. All runs:XCL_NETWORK=0, 360 s walks from the same save, run back to back on one machine.1. What stops it on
mainmainstops presenting at 126–150 s and draws nothing after that (window black,0 FPS, process alive, no crash). Seen on55d64c2(126/142 s) and on08db802with #2118 (144/150 s). #2581 reports the same on an RTX 3050 (136 s, default settings).95cc13288a27a96e(2.4 MB DXIL). The AMD driver compiled it from 124 s until the run ended at 590 s and never finished. #2301's compact form (3.9 MB → 1.3 MB) did not finish on this card either (>230 s).XCL_PSO_WAIT_MSunset the wait is still unbounded, so the stop only moved by about 10 s.2. Past the black screen: #2615 + #2598 + #751
ExecuteIndirectrace that #2615 makes reachable by default. It is a small, separate PR.08db802. Two screenshots from the harness are below (from an earlier walk:main8a3f912with #2615's first form and #751). They are low resolution because the walk script captures them only to check that the title is still running.3. What limits it after that (measured with #2615 + #751)
08db802.XCL_PSO_PRELOADandXCL_HUGE_PSO_CONCURRENCY=3did not help here. Preload builds the ~1,545 known sets in 4 s. In 4 alternating walks, neither preload nor 3 slots changed presents (median 6–9 per 10 s) or total builds.CreateHeap … 0x8007000eand/orClose → 0x8007000e, then the title's ownint3. This is not the 85 GB commit limit; commit was only 66–74 GB.4. A GPU hang in #2118's put-off path
08db802, andmainitself withXCL_PSO_WAIT_MS=1. The device was removed (0x887a0007) at 175–222 s in 4 of 4 such walks.page fault at GPU VA 0x0; allocations there: [].5. What we would look at next
xcl shaders … --precompile --only cs --pipelines --used-only, withXCL_DIRECT_DXIL=1). We have not run it on RDNA2 yet; that is our next measurement. Also splitting the big programs (#2097) and keeping split programs' whole builds off the title thread (#2404;amd-devalready does this).XCL_TEXTURE_LEVEL_PAGES=1and the VRAM mirroring in #1773 are the obvious levers. We have not measured them yet.amd-devsolves the unbounded wait differently, with a 12 s per-frame window (XCL_PSO_FRAME_BUDGET_MS). #2615 is formain. On a merge intoamd-dev,amd-dev'spso_async.rsshould win.6. What others report (collected from issue threads; not reproduced by us)
main50a9fde+ a PR stack. As far as we found, this is the only frame posted from inside the world.Game State: Game Runningfor 5 min, intro mission streaming. Others hit the same fault at the start of the opening sequence.amd-dev):Game Runningfor ~2 min at 18–27 FPS, then0xc0000005.+0x23cf683self-kill NOPed.AI use: I directed the work and checked the result. Claude Code (Claude Opus 5.5, "coordinator") ran the agents and the interactive-session runs, read the diffs, and wrote this comment from the agents' notes, checking each number against them. Claude Code (Claude Opus 5.5) wrote #2615 and #2598 with their tests and did the hang and log analysis. Claude Code (Claude Sonnet 5.5) ran the suites, smoke runs and walks and analysed them. Muse Spark 1.3 agents did duplicate checks, throughput analysis from the logs, diff reviews, and collected the reports in section 6 from issue threads (images not downloaded). The screenshots are unedited captures from the walk harness, cropped to the game window.
@lukastaro on GitHub · 2026-11-26 02:28 UTC · original
#2618 bears on frame time on Intel CPUs: the title paces its frames with
monitorx/mwaitx, which an Intel CPU lacks, soehemulated every one of them as an illegal-instruction exception. #2618 rewrites each site in place at its first fault (asclwbalready is). On an i7-14700K + RTX 5060 Ti (Windows 10), same build and settings with and without it, one run each: 1.24 → 2–3.5 presents/s in the world.AI use: Claude Code (Claude Opus 5.5) wrote this.
@KOLESNiii on GitHub · 2026-11-26 09:14 UTC · original · edited 2026-11-26 09:18 UTC
Comparison with the public
DoubleGhosty/cool_foxmirror atf4b48ad, focused on reaching the world. It records reconstructable PSO recipes, including graphics state and stage/container references. Its opt-inwarm --usedreplays previously requested recipes in short-lived worker processes and relies on the driver's implicit cache. XCL already has shader-key history and a native blob store. The transferable improvement is to make observed graphics pairs and whole/split roles reconstructable for warming, using XCL's existing store. A persistent "bad" list needs driver-scoped outcomes and an explicit retry policy. Recipe capture · Replay · Worker policyThe frame-rate reports cover different profiles. The RX 7900 XTX Series X boat scene is reported at roughly 19–22 FPS. The RTX 5090 Series S residency comparison reports directional medians of 64.2 to 54.8 ms across sampled high-draw title-bar intervals. The source also has parallel command-list translation, asynchronous submission preparation, demand-loaded texture levels, and pressure gates for speculative uploads. The RTX comparison used warm caches. The published settings and runs have approximate lighting or known rendering and descriptor limitations. These are useful follow-ups after a textured world frame. AMD measured breakdown · RTX comparison · RTX launcher
For loading, the XCL experiments already point to graphics DXIL warming and selective warming of the whole forms still needed at submit. Keep the texture-upload publication and GPU-to-CPU visibility checks as separate gates when the first world frames are blank or wrong. Start with a matched save/profile and report time to the first textured world frame together with skipped draws/dispatches and driver errors. Related to #2088, #2404, #2551, #2600, #2613 and #2688.
AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for source comparison and drafting.
@GreemSC on GitHub · 2026-11-26 10:39 UTC · original
Additions to @throny's (#505) and @KOLESNiii's (above) notes on the VIctory family: five mechanisms in the
DoubleGhosty/cool_foxmirror atf4b48adthat neither covers, each mapped to the open XCL thread it bears on. Ideas in plain words only: VIctory is GPL-3.0, nothing from it can be ported, and nothing below is its code. Read from the sources; links point at the lines.queue.rsvalue_met,host.rslate_met_known). XCL'stry_gpu_waitarms a GPU wait as soon as the producingWrite64is recorded, which is theprod=qNone/ wait-before-signal line in #1452 and #2719.VICTORY_SHOW_AFTER=1); their note: all three device losses whose report had the address were page faults in a texture made and shown in the previous tenth of a second, and turning it on ended a loss about every 16 minutes, "likely fixed, not proven" (descriptor/host.rs,docs/findings.md).resource.rslet_go_idle). The release waits for in-flight submissions plus a lag of 16–64 submissions, added after device losses from freed memory (host.rsretire). Relevant to @joeypercia's eviction ofresource_at'sMADEmap on #2743. The padding twins there (bytes 0x04..0x08 of the key) came from the same source.victory-shader/src/io.rs,pipeline/host.rs). The two-pass path's cost was reported on #541.host/awake.rs). Off by default there; cheap to try on any XCL tree.Not checked: whether these hold on XCL's architecture (XCL writes PC descriptors when the title writes its own, so 2 and 3 do not map one to one), and none was run here. A wider read-only review of the walls, with our Linux / AMD numbers, is in #2743, #2615, #2127 and #846.
AI use: Claude Code (Claude Opus 5.5) read the sources with read-only agents, checked each link and wrote this.
@MacieGx on GitHub · 2026-11-26 12:14 UTC · original
Our PRs #1385, #2229, #2246, #2513 and #2753 (the first contributions from this fork) have their
CIruns waiting for workflow approval (action_required), so the requiredBuild and test (Windows, no GPU)check never ran on them. Could a maintainer approve the runs? Each PR has the full suite and both regression runs in its description, and several have independent test reports from other contributors (NVIDIA and AMD).AI use: Claude Code (Claude Opus 5.5).
github-bot referenced this issue2026-11-26 12:40:17 +00:00