[OFFICIAL] Swarm: ports from other GPL-3.0 projects into XCL #3011
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?
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T12:11:15Z.
Goal
Coordinate ports from the other project line into XCL, now that XCL is GPL-3.0-or-later (#3002), so that the things that already make the retail title playable there reach XCL quickly and nobody ports the same piece twice.
The public tracker (another project's repository) lists about 37 projects ahead of XCL on this title; nearly all descend from one Rust code line: another project, another project and, built on them, another project, which reports the world under player control at a median of about 21 frames a second on an RTX 4090. All three are GPL-3.0.
Do not post title binaries, packages, keys, dumps, proprietary names or DRM-related material. Hashes and aggregate measurements only.
Rules for a port (from the maintainer's answer on #3002)
How to claim
Comment with
claim: <piece>, the upstream files and commit you port from, the XCL files you expect to touch, and when you expect a draft PR. One claim per person at a time. A claim with no draft PR after 48 hours is free again. Link the PR here when it is up; testers post results on the PR.What stops XCL today (measured, NVIDIA 16 GB; AMD owners please add yours)
Candidates
A first comparison of how the other project line solves these (which files, how large, how self-contained, in which order) is being written and will be posted here as the first comment within the next hours, so that claims can refer to named pieces. If you already know a piece well (texture streaming, heap placement, mesh shading, pipeline scheduling, frame pacing), say so: a claim by someone who has read that code is worth more than the list.
Not in scope here
I will also coordinate with people on the XCL Discord; decisions and claims belong here so that everyone can see them. AI use: Claude Code (Claude Fable 5.2) drafted this at my request.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T12:18:32Z.
Candidates: what the other project line does differently, and what to port first. From a read-only comparison of another project
1f69d67(with another project63bcca4and another project9a9091dwhere it inherits) againstnvidia-dev3f39671d. Nothing was built or run for this list, so every "why it matters" is a reading of their code and docs, not a measurement on XCL. Corrections from people who know either tree are welcome.Why they are at ~20 fps and XCL at ~2 (as read):
ID3D12PipelineLibrary1in a mapped file) for XCL's own pipelines, first for the whole forms of split compute programsanother project/src/pipeline/library.rs(~600 lines without tests)CachedPSOon drivers where blob loads take 10-30 s is the first thing to measure. Leave out pipelines with static samplers at first (they note wrong results on NVIDIA); keep the file handle open.another project/src/emit/lower.rs,emit/mod.rs(~500 lines on their IR)another project/src/pipeline/make.rs(~40 lines)emit/lower.rs,pipeline/host.rs,draw.rsanother project/src/residency.rs+ rules intexture.rsanother project/src/console_insn.rs(~160 lines; the file's base was ported from XCL)another project/src/resolution.rsNot worth porting (XCL has it as well or better): async pipelines with stand-ins and wait budgets, the Series S profile, GPU access to title memory in place (they copy shader writes back and measured 32-50 ms a frame for it on one card), the console CPU-instruction decoder (theirs is XCL's), the direct-DXIL clean-up passes.
Provenance traps when porting: MIT notices that must travel with
gfx10/opcodes.rs(generated from Mesa, Valve) andanother project/src/texture.rs(AMD addrlib); a Wine patch underlinux/(do not port); credits to the other project and its author forks inambient.rsandqueue/behind.rs; and game data inside source files (title image offsets, program-name lists, shader-hash lists, run logs underdiagnostics/), which must be stripped from any port.claim: C1, minimal version (compute whole forms without static samplers, behind a switch), from another project
1f69d67another project/src/pipeline/library.rs; XCL files:hle/d3d12x/real.rsbeside theCachedPSOpath,real/dispatch_chain.rs, a newpipeline_library.rs. This machine is the one where blob loads take 10-30 s, so it is the right place for the gate measurement: library load againstCachedPSOfor the same whole forms. If loads are not clearly under a second I will say so here and release the claim. Draft PR or that answer within 24 hours.AI use: Claude Code (a Claude Opus 5.5 sub-agent read both trees; Claude Fable 5.2 wrote this). I have checked the structure of the comparison, not every file reference.
Imported from ivall/xcl. Originally posted by VolenNakov on 2026-11-27T12:21:06Z.
claim: C3 (leave out ray-tracing resolve / activation pipelines while the title has built no acceleration structure, behind a switch, off by default).
1f69d67,crates/victory-gpu/src/pipeline/make.rs(left_out, ~40 lines;VICTORY_RT_RESOLVE,VICTORY_ACTIVATE_RAYS,VICTORY_BVH_BUILDER).hle/d3d12x/real.rs(where compute pipelines are created and left out), the acceleration-structure build path thatgpu/bvh.rsserves (to know whether any structure was built), plus a test.XCL_PSO_SKIP_FILEdoes), so no title data goes into the source.gpu/bvh.rs) and emulatesimage_bvh_intersect_ray, so its rays may hit. Before writing the PR I will measure on this machine (RTX 4060 Ti 16 GB, i7-8700, no ReBAR, main-based tree) whether the title builds structures and whether those programs' output changes anything. If XCL's rays do produce hits, leaving them out would change the picture, and I will say so here and release the claim instead.+0x23cf683for me on MacieGx's lab tree), and their GPU time per frame.Draft PR or the gate answer within 48 hours.
AI use: Claude Code (Claude Opus 5.5) read both trees and wrote this; I run the tests on my machine.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T12:49:44Z.
C1 (pipeline library): first result, and I am releasing the claim. The minimal port exists (480 lines from another project
library.rswith its provenance header, behindXCL_PSO_LIBRARY=1, unit and GPU tests pass, an independent review found no blockers), but two runs on the title show it does not reach the pipelines that matter in XCL as it is:CachedPSOtakes 0.8-4.6 s on average per run here (177-256 of them a run), not the 10-30 s I measured in the preparation workers yesterday. A library could still be faster, but not by the factor that would justify it.If someone wants to continue, the branch is
throny/xcl@pso-library(I will push it as it is, unreviewed fixes listed in the commit message); the open question is whether static-sampler pipelines can be made safe. Otherwise C1 is free.claim: C6 (CLZERO loops patched at the first fault, at that site only, atomically; from another project
1f69d67another project/src/console_insn.rs), unless @Prime1997 wants it: say so and it is yours. Reason: it is what blocks a usable picture on Intel CPUs right now. On this i9-12900K the last build with a visible world is71b9f7b2; from #2892 on the world is black with the eager patch, and withXCL_CLZERO_PATCH=0(or the commit removed) loading takes 7 minutes and the world then runs at 2 frames a minute. XCL files:eh.rs,loader.rs. Draft PR or a "does not help" within 24 hours.AI use: Claude Code (Claude Fable 5.2); the port was written by a Claude Sonnet 5.5 sub-agent and reviewed by a Claude Opus 5.5 sub-agent.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T13:00:49Z.
Correction on C6, and I release that claim too. The reason I gave for it (a black world on Intel since #2892) came from a bisect that turned out to be wrong: the "visible" builds before #2892 were still on the loading screens when I sampled them (correction on #2892). The eager patch of #2892 is what makes the world reachable in 3 minutes on Intel at all. The lazy, atomic variant from another project is written and passes its unit tests (branch
throny/xcl@clzero-at-fault, pushed as it is), but it fixes no known problem now, so it is not worth a PR unless @Prime1997 or someone else wants it for robustness. C6 is free; C1 as well (see above). I will pick the next piece from the measurements, not from a guess. AI use: Claude Code (Claude Fable 5.2).Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T13:13:46Z.
AMD numbers for "What stops XCL today" (RX 9070 16 GB, RDNA4, Mesa 26.3.1 RADV, Ryzen 5 9600X, 32 GB; CachyOS, Proton Experimental
experimental-11.0-20261112with vkd3d-proton masterec207194, thelpVtblchecks for command allocators and lists dropped).main83b00818, release, warm shader cache,XCL_DIRECT_DXIL=1 XCL_PREPARE=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=50 XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=1024 VKD3D_CONFIG=ignore_shared_fence, 300 s,Apressed every 10 s, 4 runs today.63bcca4+ its #2723) on this same machine yesterday played the intro cutscene lit, with characters and hair (~1 fps), then the prologue at 2.9–3.3 fps with ~12.7 GB of video memory (Marvisak/VIctory#2723, my comment there).mainruns. Crashes seen on this machine in other runs:game_scarlett_master.exe+0x23cf683(a write at address 0; 16 runs on 11-24 and 11-26, at ~110–130 s, and once today while the title was being stopped). @VolenNakov, that is the crash you say a skip file of the ray-tracing programs removed for you, so it may be a point for C3. Also a copy inucrtbase.dll+0x171d9writing into title memory right after thewriting empty BVH descriptorwarnings (3 runs).I'll test C3 on this card once there is a draft PR, and can check here meanwhile whether the title builds acceleration structures on AMD, if that helps the gate.
AI use: Claude Code (Claude Opus 5.5) collected these from the run logs and wrote this; the observation in 1 about what is on screen is mine.
Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-27T13:47:27Z.
claim: C2 (cheaper wave64 on 32-lane hardware — exact tiers only: no-cross-half native wave32, exact
wave_localallocation idiom, and early-out/skip removal retry order, behindXCL_WAVE_LOCAL=1, off by default).1f69d67(inheriting from VIctory63bcca4and victory-fork9a9091d, GPL-3.0-or-later):crates/victory-shader/src/emit/lower.rs(wave_local+ no-cross-half/local-wave lowering),crates/victory-shader/src/emit/mod.rs(exact retry order),crates/victory-shader/src/ir.rs(without_early_outs,without_skips).crates/xcl/src/gpu/recomp/wave_local.rs(+THIRD_PARTY.md),crates/xcl/src/gpu/recomp/mod.rs,crates/xcl/src/gpu/recomp/pso.rs,crates/xcl/src/gpu/dxil/kernel.rs,crates/xcl/src/gpu/dxil/lanes.rs,crates/xcl/src/gpu/recomp/lower_dxil.rs,crates/xcl/src/gpu/recomp/lower.rs(split into stacked PRs under ~400 lines each: analysis + unit tests first, then opt-in lowering + GPU tests, then early-out/skip retry).--measure-psocompile time, and GPU execution time againstPartner::Spin. If the exact-tier hit rate or speedup is too small to justify the complexity, I will post the numbers here and release the claim.AI use: T3 Code (Gemini Pro Orchestrator) compared both trees and drafted this claim; I will review the code and run all builds, tests, and measurements locally.
Imported from ivall/xcl. Originally posted by VolenNakov on 2026-11-27T13:48:42Z.
C3: the draft PR is up as #3026 (
XCL_RT_LEAVE_OUT, off by default).AI use: Claude Code (Claude Opus 5.5) wrote the port and ran the tests on my machine.
Imported from ivall/xcl. Originally posted by vitor127wt on 2026-11-27T14:01:46Z.
Thats weird. The VItory repo seems stalled, not a single merge or commit in days.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T14:07:31Z.
New candidates C8-C11 from the upstream watch (another project, 20 commits since
1f69d67, now57deba5). Read by subject, files and message only; none states a measurement, and I have not checked whether XCL has the same problem, so the first step of each claim is that check. Claim them like the others (claim: C8…).292adb5(draw.rs,descriptor/host.rs)369f940(descriptor/host.rs)bb529f1(host/send.rs,shadow.rs)8058344(emit/bitcode.rs)Further upstream changes will be added here as C12 and up when the projects move (a script checks every three hours). AI use: Claude Code (a Claude Haiku 5.5 sub-agent screened the commits; Claude Fable 5.2 wrote this).
Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-27T14:20:35Z.
claim: a pipeline build that panics fails like a driver error instead of hanging its waiters (not on the candidate list; a small stability piece).
46da5ee"GPU: finish a pipeline queue entry when its build panics",crates/victory-gpu/src/pipeline/make.rs,Pending::make_with(author Filip Michalski).crates/xcl/src/hle/d3d12x/pso_async.rs(build, the bind-side build inresolve_wait_for,build_pieces),crates/xcl/src/hle/d3d12x/real/dispatch_chain.rs(one lock made tolerant to poisoning),THIRD_PARTY.md.build_piecesthe parent'srecvblocked. The test fails without the change (10 s wait, workerxcl-pso-0dies) and passes with it.main; I will link it here.Also for the list: the Alt/F10 menu-mode freeze fixed in victory-fork
ff8694ais already covered by open PR #1441, so nobody needs to port it.AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.
Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-27T14:20:58Z.
Draft PR for the claim above: https://github.com/xcl-dev/xcl/pull/3028
AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T14:22:27Z.
claim: C5 (back-off slice only — E_OUTOFMEMORY cooldown + OS commit-headroom upload admission, behind
XCL_UPLOAD_BACKOFF=1, off by default)TaynanGT/Vice-Taycommit57deba5c4c752b97a8286bdbd80b96517f0988fc,crates/victory-gpu/src/residency.rs(GPL-3.0, inheriting fromVIctory/victory-fork).nvidia-devbase): newcrates/xcl/src/hle/d3d12x/residency.rs(with GPL-3.0 provenance header + matchingTHIRD_PARTY.mdrow), plus small wiring incrates/xcl/src/hle/d3d12x/texture_upload.rs,title_textures.rs,sparse.rs,vram.rs, andmod.rs.XCL_UPLOAD_BACKOFF=1only):FREEupload-buffer reuse open while gating freshCreateCommittedResourceupload-buffer growth under lowGlobalMemoryStatusExullAvailPageFilecommit headroom.E_OUTOFMEMORYdetection acrosstexture_upload,sparse, andvramto trigger a shared500 msupload cooldown and trim idleFREEupload buffers intitle_textureswithout dropping dirty/pending textures.UPLOAD_DEFERRALScounts (no shader hashes or title names logged).--release): deterministic unit + GPU tests covering default-OFF no-op,500 msOOM cooldown, commit-headroom admission, and zero lost dirty textures, plus paired quiet 60 s retail smoke (defaultvsXCL_UPLOAD_BACKOFF=1) andscripts/pr_check.py --local.AI disclosure: Google Antigravity (Gemini 4 Neon) assisted with the read-only source comparison and drafting of this claim, and will assist implementation and verification on local RTX 4060 8 GB hardware.
Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-27T14:55:24Z.
@throny We tested the static-sampler question on a desktop RTX 5070 Ti with driver 621.40. Two fresh processes opened the same 2,202-byte D3D12 pipeline library. One created the CLAMP and WRAP root signatures in the writer’s order. The other reversed them. Both readers loaded both named compute pipelines from disk and returned the expected, distinct texel values. Across the direct baseline, writer and two readers, all eight dispatches completed their fences. There were no load failures or fallbacks.
This was a standalone compute fixture on local commit
31e8fd133060612327f5c9763363e5ba577c1610, based on your355919fbexperiment. It tested root-signature creation order on this adapter and driver. XCL’s cache keys and the earlier graphics case with an extra sampler were outside its scope. We can share the fixture if useful.OpenAI Codex implemented and ran the Windows test. The session identified the GPT-6 family. The exact variant and reasoning setting were unavailable. Claude Sonnet 5.5 with Extra reasoning independently reviewed the method.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T14:58:29Z.
@UncommonDLL thank you, that is the question the experiment left open: static-sampler compute pipelines come back right from a library on 621.40 in your fixture, in both creation orders. So the exclusion in
355919fbis probably too cautious for XCL, and with it lifted the library would cover the ~230 large compute pipelines it skipped here. What I still cannot show is the gain: with the 2 GiB shader-heap profileCachedPSOloads of those programs take 0.8-4.6 s each on my machine, so a library has to beat that to be worth its complexity. If you (or anyone) want to take C1 on from that branch, lifting the exclusion and timing library loads againstCachedPSOfor the same programs is the whole gate; I will test whatever comes out of it on this card. AI use: Claude Code (Claude Fable 5.2).Imported from ivall/xcl. Originally posted by pvfreis on 2026-11-27T14:59:26Z.
C11: XCL's direct-DXIL path already has this rule in open #1860 (@Royalflamejlh):
gpu/dxil/cfg.rssingle_latchgives every loop head and every block one back edge, andmodule/opt.rsno longer folds the new latch blocks away. Its description measures vkd3d-proton's dxil-spirv segfaulting on 77 of the retail title's 2,682 direct-DXIL compute programs (split wave64 form) without the change and on none with it. Differences from Vice-Tay8058344: #1860 works on the console program's control flow before lowering rather than on the finished module, and the per-lane form (XCL_PER_LANE=1) is not covered. Both fixes are for Proton (dxil-spirv's structurizer), and #1860 notes that dxil-spirv's master handles these programs without it. So C11 is probably best served by testing or reviewing #1860 (its description lists pixel and vertex programs as not tested) rather than a separate port.AI use: Claude Code (Claude Opus 5.5) compared the two diffs; Claude Fable 5.2 rechecked this.
Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-27T15:05:43Z.
Thanks, that gives us a clear timing target. We also checked the extra-sampler case on the RTX 5070 Ti, driver 621.40. We created a third, distinct BORDER sampler first and kept it alive and unbound. Direct creation and loading the original library both returned the expected CLAMP and WRAP values. Each path ran once. This binary had no no-C comparison. OpenAI Codex ran the Windows test, and Claude Sonnet 5.5 Extra reviewed the method.
For the timing comparison, we’ll check what we can match under the 2 GiB shader-heap profile. If you already have a log identifying the large programs you timed, the program hashes and run settings would help us compare the same work.
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T15:11:27Z.
@UncommonDLL on C1 timing (not a claim; it stays with your comparison): we can add a second NVIDIA data point on an older card, the same driver as your RTX 5070 Ti: RTX 2070 SUPER 8 GB, driver 621.40, Ryzen 5 3600XT, 32 GB, Windows 11 build 26300.
When you have a build to compare, post the commit (e.g.
throny/xcl@pso-libraryat355919fbwith the static-sampler exclusion lifted, or your own), the switches and the shader-heap profile setting you use, and how you time it (log lines or--measure-pso). We will run it as you specify it: a library load againstCachedPSOfor the same programs, one run on each side, on our own retail game, warm and cold DXIL cache stated. We will post the per-program times and the hashes of the programs timed here, as you suggested. An 8 GB Turing card should also show whether a library pays off when the heap budget is tight.AI use: Claude Code (Claude Opus 5.5) wrote this at the account owner's request.
Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-27T15:14:43Z.
@KOLESNiii Thanks, we’ll take you up on that. The same driver on an 8 GB Turing card gives us a useful second data point. We’ll share the tested commit, switches, 2 GiB shader-heap setting and log fields once we’ve verified that each timing comes from the intended cache path. Please hold the runs until then. The per-program hashes and timings you offered are exactly what we need.
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T15:19:44Z.
C5 back-off slice PR is up as #3037 (targeting
nvidia-dev, behindXCL_UPLOAD_BACKOFF=1off by default). Full per-texture host-copy VRAM residency in C5 remains unclaimed/open.AI disclosure: Google Antigravity (Gemini 4 Neon) assisted with implementation, local RTX 4060 8 GB verification, and drafting.
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T15:29:47Z.
A difference found by comparing the trees, not a claim: DirectStorage's automatic submit at half capacity. It is already in XCL as #549, so it is not a new piece.
64f2fcc,victory-hle/src/modules/dstorage.rs,half_submits()) turns off the PC-style automatic submit of a half-full queue by default (VICTORY_DSTORAGE_HALF=1brings it back). The title writes a batch's page lists in its own submit, after it has enqueued up to 4,095 requests into a queue of 4,159. An early submit runs those requests on page 0 or on stale pages.mainstill submits at half capacity (dstorage.rs:1221). Draft #549 (papasmurph0) holds the queue while a page array has a 0 entry. Testers on Windows and Linux, NVIDIA and AMD, measured about 800-2,8500x89240009failures per world load without it and 0 with it. It has conflicted since 11-25. shelbykb2 also measured stale entries that were not 0 (6,173 of 33,050 requests rewritten beforeSubmit), which #549 does not hold for and Vice-Tay's approach covers.Submit, behind anXCL_*switch. We will test a rebased head with and without it on an RTX 2070 SUPER 8 GB.AI use: Claude Code (Claude Opus 5.5) at the account owner's request.
Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-27T15:31:07Z.
@KOLESNiii The timing tool is ready for your RTX 2070 SUPER comparison. Thanks again for offering to test.
Tested commit:
4c6099917a26509f836aaf7b8cf7b2690c3966f0, directly on355919fb7e4aec8c476035a051e0530b8e9661f1. Pinned build and run instructions.This is an isolated, primed-cache API-call comparison, not an XCL runtime performance result. The runtime static-sampler exclusion is unchanged. Please follow the README:
cargo +1.100.0-x86_64-pc-windows-msvc build --locked --release -p xcl --bin xcland build the native comparator usingBuild.ps1 -OutDir.shaders $Package --export-pso "$Study\program-$Record" --record-hash $Record --windows $Windows --split $Split, using the same translation environment (including direct-DXIL and heap-window settings) and actual window count and split flag as the original run. Aim for the 750 KB+ programs throny timed; the harness's minimum is 256 KiB without-Smoke.$Commonarguments toRun.ps1, use the exact adapter name,ShaderHeapProfile = '2 GiB', the source DXIL cache state, and the original descriptor flags and node mask (both default to zero). For static-sampler programs explicitly set$Common.AllowStaticSamplers = $true; leave the runtime exclusion alone.compare.exeprocess. Verify the effective setting using your driver/profile configuration readback before seeding and both readers, and keep it unchanged. The tool's profile field is only an operator attestation, not a driver setting or measurement. We have not verified a portable configuration procedure for this profile; please report the setting and how you verified it on your machine, including whether it applies globally or specifically to the comparator executable.Use one
-Mode seedrun to seed both artifacts from the same PSO, followed by one fresh process with-Mode libraryand one with-Mode cached, using the same immutable seed and separate-Receiptpaths. Keep them on the same adapter/driver and in the same boot. Please leave the debug layer and capture tools off.A qualifying pair has identical DXIL SHA-256, serialized root-signature SHA-256, flags and node mask, matching descriptor key and unchanged identities; each reader exits 0 with
timed_calls=1. The required outcomes arenamed_disk_load_okandcached_blob_accepted_first_call. The second includes a byte-identical returned cached blob, which corroborates acceptance at the API boundary but cannot rule out internal driver compilation or implicit cache work.Please report each program's record hash, DXIL size and hash, root hash, flags, node mask, both
elapsed_nsvalues and outcomes, driver, effective shader-heap profile and verification method, source DXIL cache state (warm/cold/unknown), implicit driver-cache state if known, and reader order. Count misses, rejections, unverified rows, in-process hits and application fallbacks separately; exclude them from paired timings. You can keep your game files, exported shaders and cache artifacts entirely local.File reads, device and root-signature creation, library opening, seeding and verification are outside the timer. Only the native
LoadComputePipelineorCreateComputePipelineStatecall is timed, including any runtime or driver work before return. Fresh processes do not flush implicit driver caches.Our RTX 5070 Ti / 621.40 synthetic smoke verified both outcome labels on a 3,508-byte input with static samplers enabled. It did not verify the 2 GiB profile, time eligible large programs, or dispatch the shader. Those smoke timings are not evidence of a speedup.
OpenAI Codex checked upstream, implemented, built, smoke-tested and interpreted the tool (exact variant and reasoning setting not exposed). Claude Sonnet 5.5 with Extra reasoning independently reviewed the method. ChatGPT prepared this handoff.
Imported from ivall/xcl. Originally posted by tiagonleal on 2026-11-27T16:02:44Z.
claim: watertight ray/triangle test for the BVH triangle node (not on the candidate list).
image_bvh_intersect_raytriangle nodes use Möller-Trumbore today, which can miss both triangles for a ray through their shared edge. Port of victory-fork9a9091dcrates/victory-shader/src/bvh.rstriangle(after Mesa RADV), in the CPU reference, the HLSL prelude and the direct DXIL lowering, behindXCL_BVH_WATERTIGHT=1, off by default. Draft PR: #3038.AI use: Claude Code with Claude Fable 5.2 and Anthropic subagents (Claude Opus 5.5, Claude Sonnet 5.5) helped developing with the supervision of @tiagonleal.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-27T16:10:24Z.
Same machine, XCL vs Vice-Tay (RTX 3090 24 GB): in the prologue's first rooms Vice-Tay ran 12–15 fps with ~62 ms of GPU work per frame, XCL 5–8 fps with ~117–183 ms. One run each, both GPU-bound, neither crashed. A baseline for the ports here, not a verdict: the two do different work (below).
Setup
title: 3c290c16).c44e2ce, built from source (cargo build --locked --release -p victory), shaders withvictory shaders(25,788 cached, 197 not translated), launched with its ownscripts\play.ps1 -Machine 4090 -Windowed -NoPanel -Build release: Series X profile, no-Dlss/-Fsr, no output or frame-rate patches, otherwise its defaults. One warm-up run before.0567c713+ #609,XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_WATCH_TRAP=1 XCL_DECLARED_LDS=1 XCL_BYTE_STORE_CS=e166372fa54a77c7 XCL_TEXTURE_LEVEL_PAGES=1, 2 GiB shader-heap profile (#2590), warm caches. Series X profile.XCL_ACTIVITY)queue.Waittimeouts, no crashNot like for like:
VICTORY_AMBIENT=0.8), its left-out passes, and the approximate wave64 tier on this 32-lane card. XCL runs the title's ray-tracing passes (every ray misses, no structures) and exact wave64. Part of the GPU gap is that work.So on this card XCL spends about twice the GPU time per frame of the same section. That fits the split compute pieces in the analysis above (~46 % of XCL's GPU time in another tester's profile) and C3; a run of XCL with C3 (#3026) and with whole forms instead of chains would say how much of the gap they close. I can run those on this card.
AI use: Claude Code (Claude Opus 5.5) built Vice-Tay, ran the captures and drafted this; checked by me before posting.
Imported from ivall/xcl. Originally posted by coolpersonnn on 2026-11-27T16:48:25Z.
C2 (wave-local compute on 32-lane hardware): gate passed and stacked PRs are up as #3040 and #3042 (
XCL_WAVE_LOCAL=1, off by default).recomp/wave-local-analysis, 353 non-test lines changed): exact static eligibility analysis (NoCrossHalfandSingleWave) adapted fromTaynanGT/Vice-Tay(1f69d67, GPL-3.0-or-later, inheriting fromMarvisak/VIctory63bcca4andfxceless/victory-fork9a9091d, with scalar-mask select validation afterKemerd/VIctory-NVIDIA-RT0fae809e360a), plusTHIRD_PARTY.md, 18 unit tests, andXCL_SAMPLE_RPF/XCL_SAMPLE_HASHESretail census.recomp/wave-local-lowering, stacked on #3040, 65 non-test lines changed): opt-inXCL_WAVE_LOCAL=1native wave32 lowering across HLSL, Direct DXIL (#1426), and per-lane DXIL, plus 3 GPU differential tests,retail_wave_local_bench, andREADME.mddocs. Complementary to #2554 (which remaps split-wave64 programs onto one hardware group with barrier exchange; #3042 drops cross-half exchange entirely on programs proven wave-local).Measured gate & verification (RTX 5090, driver
621.01, Ryzen 9 9950X3D, Windows 1110.0.26300.0,rustc 1.100.0, DXC1.8.2502.11):26,503records,2,689CS,1,535wave32,1,154wave64):358 / 1,154(31.0%) wave64 compute shaders qualify (NoCrossHalf=339,SingleWave=19). Top rejections:289(25.0%) LDS in group > 32 threads,201(17.4%) cross-half wave op in group > 32 threads,96(8.3%) lane-mask branch with active lanes missing its bit,92(8.0%) cross-halfv_readlane/v_writelane,84(7.3%) whole-wave section. All 4 eligible sampled hot hashes (0f7ab64371906bc1,3cd7bbae40a84030,6d685587d4f2f300,9cd4e68206587565) classify asNoCrossHalf.CreateComputePipelineState(5 fresh root-signature prefixes40..44, HLSL):9cd4e68206587565drops17,848B->11,444BDXIL (dxc 70.252 -> 37.591 ms) and PSOfirst_ms81.409–83.715 ms->30.969–37.108 ms;0f7ab64371906bc119,576B->18,628B(79.252–87.267 ms->73.458–79.048 ms);3cd7bbae40a8403018,324B->17,296B(65.898–68.508 ms->60.067–81.761 ms);6d685587d4f2f30011,600B->10,964B(29.740–32.055 ms->26.821–28.747 ms). Direct DXIL (#1426) and per-lane DXIL DXIL sizes are also compared in#3042.[128, 1, 1]x2048groups, 40 samples/form): HLSL2.800 us -> 2.112 us, Direct DXIL2.400 us -> 2.016 us, per-lane DXIL2.384 us -> 2.064 us.scripts/smoke.ps1(XCL_PREPARE=0,title: a93b40d7):main(f9a0cb80)1684frames /15930 MB;#3040(962cdca8)1699frames /16720 MB;#3042default (becdecfe)1697frames /15937 MB;#3042XCL_WAVE_LOCAL=1(becdecfe)1697frames /15660 MBwith68unique[SHADER] wave-localHLSL compilations (NoCrossHalf=64,SingleWave=4),0crashes,0device removals.Left for follow-up: the early-out / skip removal retry order (
without_early_outs/without_skips) and flippingXCL_WAVE_LOCAL=1on by default stay out of#3040/#3042for now; sustained 3D world frame-time A/B testing withXCL_WAVE_LOCAL=1is welcome once reviewed.AI use: T3 Code with Antigravity (
gemini-pro-orchestrator-neon) and Codex (gpt-6.2-sol) helped write the adaptation, tests, and this report; all builds, tests, benchmarks, and smoke runs ran locally on the hardware named.Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T17:01:08Z.
@UncommonDLL thanks for the tool. Status on the RTX 2070 SUPER side: everything is built and exported, but the runs wait for one elevated step. The 2 GiB shader-heap profile can only be written from an elevated shell, and I can open one at about 21:30 UTC today (2026-11-27). The job starts then and the results follow when it ends.
Ready
4c609991, clean checkout; exporter built with rustc 1.100.0 MSVC (--locked --release -p xcl --bin xcl);compare.exebuilt with yourBuild.ps1(VS 2022 x64 tools, SHA-256cb2c427a…57d2).--export-pso,--split 1(this card runs 32-lane waves only) and the default 4 memory windows. Whole DXIL is 1.47–2.08 MB per program (1,472,972 to 2,078,856 bytes), with 5–8 static samplers each, soAllowStaticSamplerswill be set. The source DXIL cache was cold (empty folder). The record hashes and DXIL SHA-256 values will be in the results.How the profile will be set and verified
0x001ABC0F= 2048 MB, in a profile of its own that holds only the comparator's exe name (c1compare.exe). It does not apply to all of the driver, and not toxcl.exe, so our other XCL runs keep the default heap. It is written with a local build of #2590'sxcl nvprofile, retargeted to that exe name.nvprofile status, which goes throughNvAPI_DRSand needs no elevation) before the seed and after both readers. It is removed afterwards. Today it reads "the driver's default shader heap (512 MB on D3D12)".Run plan, per program, through our exclusive queue so nothing else uses the GPU: one
-Mode seed, then the two readers in fresh processes. Reader order alternates by program (library first on odd programs, cached first on even ones). Everything runs in the same boot on driver 621.40, with debug layer and capture tools off. I'll report each row in your template and count qualifying pairs separately from misses, rejections and unverified rows.AI use: Claude Code (Claude Opus 5.5) prepared the builds and exports and wrote this at the account owner's request.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T17:39:35Z.
New candidates from the upstream watch (commits of today in the GPL-3.0 projects; read from the diffs, nothing built or measured by us; the numbers are the ones their commit messages state):
52dfd12(thepipeline/make.rspart, ~90 lines): per-material ray-tracing resolve programs are dropped instead of waited for while they are being made, and queue on their own line with a quarter of the workers kept free. Stated: frames of 300 ms with the resolves waited for; wait 279 ms vs 54 ms. Addresses: draws lost as stand-ins while pipelines are built, and frame time. Related to C3 (#3026), not the same change.52dfd12(thehost.rspart, ~100 lines): a draw without a free descriptor slot waits for landings without holding the submission lock. Stated: frame 92.7 ms with a settle vs 68.1 ms without; card idle 25.7 ms vs 3.1 ms. Addresses: frame time.3e573d2(470 lines inmemory.rs, needs splitting): arena pages made from shader fault notes were capped for the whole run and then read zeros; now a held budget (512 MB) that gives back the oldest page. Addresses: parts of the world that stay black (zeros read past a cap). Close to C5 but a different mechanism.b06fdd5(~150 lines): a bounded wait on the mapping fence; a submission that timed out stays pending and is checked before the list is reused. No numbers stated, default unchanged. Addresses: hangs at a wait (partly).Why these now: on our RTX 4080 the world is partly drawn since
XCL_UMA_WINDOWS=16(#505), with 30–40 % of a frame's draws as stand-ins, and the device hung at world entry in 2 of 4 runs.Claim as before: a comment here with the number. Ports need the provenance header and the THIRD_PARTY.md row; no offsets, hashes or program names of the title.
AI use: Claude Code (a Claude Haiku 5.5 sub-agent read the commits, Claude Fable 5.2 wrote this).
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T17:45:53Z.
Draft PRs are up: #3062 (lists still in flight are held, not reset) and #3063, stacked on it (a readback its wait gave up on is not copied into title memory, found while reviewing #3062). Suite and both smoke blocks are in each.
claim: C16 – a timed-out wait for the sparse queue no longer reuses a command allocator the GPU may still be executing.
b06fdd5("Allow a bounded wait for the GPU mapping fence", #307;crates/victory-gpu/src/host/mapping_fence.rsand its tests), GPL-3.0-or-later. Mechanism only: a submission whose wait timed out stays pending, and its fence is checked before its list is reused.main6089122a):hle/d3d12x/sparse.rswaits for the sparse queue at most 5 s (wait_for, :833-842), but then goes on regardless.begin_slot(:862-873) thenResets that upload slot's allocator and list, and the readback list does the same afterwait_for(rb_last_fence)(:1085-1086). If the queue has not got there, that resets an allocator the GPU may still be executing, which D3D12 does not allow.sparse: the queue has not reached fence value … after 5 s, five or more times a run, in #675 (from 111 s), #505 (from 185 s, until the abort), #846 (5 and 11 times) and #646. #1385 moves these waits out of the sparse lock but keeps the reset after the timeout.crates/xcl/src/hle/d3d12x/sparse.rs(upload slots and the readback list) and its tests;THIRD_PARTY.md. A slot whose submission is still pending after the wait gets a fresh allocator and list. The old pair is kept until its fence passes, so nothing the GPU may still read is reset. The title sees no change.main(debug layer) and none with the change. I'll also run the suite and both smoke blocks. A world run that hits the timeout is out of reach here: this RTX 2070 SUPER does not reach the world onmainyet. So I'll ask the reporters of #675 / #505 for one run each way.C13–C15, checked against the same
mainso nobody spends time on them (code only, not measured):XCL_PSO_IMAGE_SKIP=1(pso_async.rs:1141-1185, off by default). A bind does not wait for a big compute program that writes only images, and its build is notwanted, so it goes behind the pipelines binds wait for. Programs are selected by what they do (gpu::effects::big_and_image_only), not by name, and the doc comment names exactly these per-material ray-tracing resolves. What is left is the question of its default, and52dfd12's 50 ms wait log line.XCL_UMA_WINDOWS).AI use: Claude Code (Claude Opus 5.5) read both trees and wrote this at the account owner's request.
Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-27T18:01:11Z.
@KOLESNiii Thanks for building the tool and getting the eight programs ready. One detail before the run:
Build.ps1producescompare.exe, and your 2 GiB profile namesc1compare.exe. If you’re renaming the binary, pointRun.ps1 -Exeatc1compare.exefor the seed and both readers. Each receipt records the launched path incommand[0]. Could you include just the executable name alongside the profile readback so we can match the two? ChatGPT helped check the scripts and draft this note.Imported from ivall/xcl. Originally posted by kleborgn on 2026-11-27T19:54:26Z.
AMD, RX 7900 XTX 24 GB (RDNA3),
amd-dev7c795f5+ #3024 + #3025, Windows 11 26300 (details in my #2996 comment https://github.com/xcl-dev/xcl/issues/2996#issuecomment-7226984968):missrun 8-10 per 2 s,autorun 12-14 per 2 s).63 GB commit limit it stalled at the limit (free commit 1.1 GB); with a 79 GB limit it did not.
driver blobs: 0 kept).lock-order deadlock (https://github.com/xcl-dev/xcl/issues/3069); one title-side crash at 1,532 s.
AI use: Claude Code, Claude Sonnet 5.5.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:39:06Z.
New port candidates from the watch (commits of the last hours; words only, read from the public GPL-3.0 repositories, nothing built or run):
bc78af6: each pipeline-stream subobject is checked against the stream length before it is read, bytecode is read unaligned; comes with a truncated-stream test. About 54 lines. For XCL: a bad read or crash in pipeline creation.511a950: concurrent cache misses for one key share a single conversion, and the file is re-checked after a failed publish; 8-thread test. About 66 lines. For XCL: duplicate shader / pipeline conversion and rename races in the cache.1d83085: a zero-length range no longer drops mapped views; regression test. About 14 lines. For XCL: worth checking whether our view bookkeeping has the same edge.7fb66ce: batch size and normal-versus-idle priority for the pipeline warm-up workers, with tests. About 56 lines; its message states no numbers.312f5a8: opt-in write-watched allocation for large title memory, with the matching release. About 103 lines; experimental, no numbers stated.Not a candidate as it stands: another project
cd93552(dark water patches on 32-lane GPUs) keys on one program's digest. The idea, a tile slot per lane on 32-lane hosts, would have to be re-derived generically.As before: comment with the number before you start one, and a port needs the provenance note and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this list was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by DzXAnt22 on 2026-11-27T20:57:24Z.
C17-C21, checked against
main6089122aso nobody spends time on them (code only, nothing built or measured for this):hle/d3d12x/real.rsown_streamstops when a subobject's end passesSizeInBytes(checked adds),stream_subobjects/known_subobjectstake payloads withbuf.get(..), and the null device'scapture_stream_desc(null.rs) breaks when the payload passes the size (testa_stream_ending_inside_a_shader_payload_is_not_read_past_its_end). The bytecode words are read withfrom_le_bytesfrom byte slices, so alignment does not matter.gpu/recomp/dxc.rscompile_cached_in_observedtakes a per-key in-process flight (cache_flight, the sameWeak<Mutex<()>>map) and a per-file cross-process mutex (process_cache_lock), then checks the cache again before compiling (coalesced_hits). Publishing writes a temporary file and renames it. Not checked: the driver-blob store for pipelines.hle/d3d12x/sparse.rsdecommitted(a, n), which the kernelx free paths call; it returns at once whenn == 0. I did not find another view table keyed by title ranges with the same edge.warmworker processes; XCL's preparation compiles in-process threads, andpso_async.rsalready moves its pipeline workers between normal and lowest thread priority. The upstream commit states no measurement.gpu/uma.rs,MEM_WRITE_WATCHon the UMA windows and their coherent parts), which the GPU reads in place, so the upstream piece (which feeds its copy-back tracking) has no counterpart.AI use: Claude Code (Claude Opus 5.5) read the upstream commits and the XCL code and wrote this at the account owner's request.
Imported from ivall/xcl. Originally posted by treybertram06 on 2026-11-27T21:02:35Z.
Measurement for item 2 (memory) on a 10 GB card: most of the slow GPU time there is video memory Windows moved to system RAM. No claim.
RTX 3080 10 GB (budget Windows gives the process: 8.6-9.3 GB), Windows 11 26300, release build of
nvidia-devd1be8103+ #2987 + #3039 (+ local profiling hooks), same retail title, 480 s each, world from about 90 s,XCL_COHERENT_HEAPS=sparse.What it was: with the default sparse setup the process reached 18.7 GB of video memory. Windows' GPU counters for the game process show dedicated usage pinned at ~8.75 GB and shared (system RAM the GPU maps) at 12.2 GB, with the system copy engine paging in bursts. A screen-space pass (
8797f3d417593aa7, 160x180 groups of 8x8) took ~145 ms per call. An Nsight Perf SDK report of it: warps on long scoreboard, ~10 µs per memory access, SMs issuing ~4 % of L2 sectors. The same pass took 0.6-1.4 ms when the heaps were in the coherent window instead. A plain group barrier in place of the safe barrier changed nothing (ruled out).b78fa10b425b8e54per callXCL_SPARSE_LAZY=1XCL_TEXTURE_SYSMEM=1(#3039)XCL_TARGET_PAGES_MB=1536XCL_SPARSE_LAZY=1(already onnvidia-dev, off by default) alone took the sparse pools from 7.5 GB to 2.6 GB on this title: tiles the title commits but never writes.af3ebe93) by hand onto this tree.mainreworked the upload path since its base, and 3 of itstitle_texturestests fail on my merge. It shows the effect of the pool cap, not that #2357 is ready on this base.Not tested: AMD; cards with more VRAM; how the capped textures look (no screenshots compared); anything past 480 s.
Edit, on
XCL_SPARSE_LAZY: I first wrote that I would open a PR turning it on by default. I won't: as its own doc comment says, a console shader that stores through a window into a committed tile nobody has touched yet writes to a NULL-mapped tile, and the write is lost. Some of the "never got a byte from the CPU" tiles may be GPU-written, so the rows withXCL_SPARSE_LAZY=1may include dropped GPU writes (the title also stopped dispatching8797f3d417593aa7in those runs). Turning it on by default would first need the tiles a dispatch can write (its writable buffer descriptors) to get video memory before the dispatch runs.Measured and written with Claude Code (Claude Opus 5.5): the runs, the profiling and this report.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-27T22:05:47Z.
Where the GPU time goes in the world, per program, on an RTX 3090: about 170 ms a frame, and about two thirds of the top 60 programs' time is character work (skinning, hair strands, character draws). One skinning program alone takes 19-26 ms a frame. This follows my same-machine comparison above (7222943369: XCL 117-183 ms of GPU time per frame against about 62 ms for Vice-Tay
c44e2ce). That comparison said how much slower we are; this says where the time goes.Setup: RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. Tree
nvidia-devd1be8103+ #3003 #3004 #3005 #3006 + #609 + #2551.XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_TEXTURE_LEVEL_PAGES=1,XCL_PRESS_HOLD=3.5, A every 4 s, compute pipelines precompiled with--used-only. Measured withnvidia-dev'sXCL_GPU_TIMES=16,420: 16 frames, from 420 s after the first present. From about 200 s the title draws a steady world workload: about 1,900 draws and 4,600 dispatches a frame, at 6 fps. The picture is black on this tree (no #2229), so this is the world's GPU work, but I can't show that the player had control.By kind of work (ms per frame, sum of the top 60 of about 1,330 programs; the direct and compute queues overlap, so sums can be more than the frame):
Runs 3 and 4 used a local change that takes a fresh timestamp right before every call, so work XCL records between two calls is not counted in the second. Run 4 also had
XCL_BVH_WALK=0. The order stays the same, so the attribution holds. Compute is about 80 % of the time. Programs split into two 32-lane halves take only about 26 ms, so the split is not the main cost. Ordinary graphics draws take about 4 ms.Top programs (dump hashes, ms per frame in runs 1-4):
5a29b696095f77ac44ca55bfefe67bd595bc3980ec624295b78fa10b425b8e542504944a10775aeb7b0c2ac0ea62b4d4bf5a7665d0c6631a+ psaf68da74e05dbb3cThe clearest lead:
5a29b696095f77ac. One dispatch of 664 groups of 32 lanes takes 13-20 ms. The console fits its whole frame in at most 33 ms on a GPU about a third as fast as this one, so this is almost certainly how we translate the program, not work the title needs. What its translation shows (direct DXIL, 4 memory windows):rawBufferLoad.switchon the memory window (713 of them). The window comes from an address built from a buffer descriptor that is itself loaded from title memory through another window switch. So each access is a chain of dependent loads where the console keeps the descriptor in SGPRs (95s_loadin the program).format_xyzw) stores become atomic read-modify-writes (209 atomics). With only 20 stores, I doubt they are the cost.That is a reading of the code, not a measured cause. I couldn't replay the call alone. #2434's capture conflicts with
nvidia-dev, and on amain-based tree with #2434 + #2938 + #609 the title never called this program in 420 s (its scene was lighter there). If someone has a single-call replay on annvidia-devtree, timing this one program with 1 window against 4, and HLSL against direct DXIL, would show which part costs the time. I can send the per-run tables.Not checked: other GPUs and AMD; a frame with the player in control; whether the same programs lead in other parts of the world; anything about frames with the picture right (#2229).
AI use: Claude Code (Claude Opus 5.5) ran the four runs and the analysis on my PC and wrote this comment.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-27T23:10:16Z.
claim: BC7 channel rotation only in modes 4 and 5
Upstream
engine/crates/scarlett-formats/src/bcpack.rs, GPL-3.0-or-later.06702fe, via VIscosity commitb8e7001d.XCL files
crates/xcl/src/hle/bcpack/victory.rsTHIRD_PARTY.mdBC7 control bits 3–4 encode channel rotation only in modes 4 and 5. XCL previously read them as rotation for every mode, which could swap alpha with a colour channel when those bits had another meaning.
Draft PR opened: #3081 — DirectStorage: gate BC7 rotation by mode
Tested head:
197d9872eb27da31ba7ede7185131624170d2696. The focused regression, full workspace suite, Python tests, release builds, and paired 60-second NVIDIA retail smokes passed.AI use: OpenAI Codex with GPT-6.2 Astra identified the upstream divergence, ported the mode gate and regression/provenance, ran the local validation, and drafted this claim under my supervision.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:39:13Z.
One new candidate from the watch, and it is a large one (words only, read from the public GPL-3.0 repository by its commit message and file list; the diff was not read because of its size):
1fa0ed1: a console wave of 64 lanes run in one host wave of 32, two console lanes per host lane (their switch isanother project). About 1,150 changed lines. For XCL this is the wave64-on-32-lane problem on NVIDIA and Intel, where we split a wave into two halves and pay for the exchanges between them. Too big for one port: it would need a plan and a split first (the pairing of lanes, then the instructions that read across lanes, then turning it on per program).As before: comment with the number before you start, and a port needs the provenance note and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commit list was read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:11:51Z.
@UncommonDLL results from the RTX 2070 SUPER, in your template. 7 qualifying pairs out of 8 programs. In every qualifying pair, the cached-blob call and the named library load took the same time to within 1 ms (both 12–16 ms).
Machine / OS build / GPU / LUID / DXGI driver / NVIDIA driver / heap profile: AMD Ryzen 5 3600XT 6-Core Processor, Windows 11 10.0.26300.9974 / NVIDIA GeForce RTX 2070 SUPER /
00000000:0000d1cf/ 32.0.16.2140 / 621.40 / NVAPI DRS0x001ABC0F= 2048 MB in a profile of its own holding onlyc1compare.exe. Read back as "shader heap 2048 MB" before the first seed and after the last reader; removed afterwards and read back as the driver default (512 MB).Checkout / binary hash / source package record IDs / translation settings:
4c609991clean (identityUnchangedtrue in every receipt);c1compare.exe(yourcompare.exe, renamed for the profile) SHA-256cb2c427a05f95d5ff66440539addd8fe9b882d32e17719dd3c7914b3a63657d2; exporterxcl.exeSHA-256b18077dfbf24b688df36aecf2df83d64a00a5b9dc5cc4582b249f094885ec4a4; records below;--export-pso,--windows 4,--split 1,AllowStaticSamplers(5–8 static samplers each), flags 0, node 0.Source DXIL cache / driver-managed cache state / reader order: cold (empty) / not cleared, same boot, nothing else on the GPU (exclusive queue) / library first on odd rows, cached first on even rows.
73fb752d7f62c3a5f14349a5eb12...72dbaebe6502.../ 0 / 041027ce78e5d...73fb752d7f62c3a5-library-01.json73fb752d7f62c3a5-cached-01.json84eee477d68b6fdf2e5f608971f7...6f840260db99.../ 0 / 068a712313a96...84eee477d68b6fdf-library-01.json84eee477d68b6fdf-cached-01.jsonfaf61d752137844a647bb694b6ae...0beb2aba4e86.../ 0 / 0594f36112246...faf61d752137844a-library-01.jsonfaf61d752137844a-cached-01.jsonb8004a436fac775debef0c152c64...3ebb69a9b936.../ 0 / 0b8bf134327d2...b8004a436fac775d-library-01.jsonb8004a436fac775d-cached-01.json4d6641bffff793facc13e2077190...22093982535f.../ 0 / 03d4e4ef44070...4d6641bffff793fa-library-01.json4d6641bffff793fa-cached-01.json05b5ccf14d48cbca4153a8301615...0beb2aba4e86.../ 0 / 007b71b559784...05b5ccf14d48cbca-library-01.json05b5ccf14d48cbca-cached-01.json6835bca610de8d0b1194459b9f49...0beb2aba4e86.../ 0 / 0128ee5e08a14...6835bca610de8d0b-library-01.json6835bca610de8d0b-cached-01.json9377c66349bb9a5de9cf184e69d6...0beb2aba4e86.../ 0 / 0e669c22071e0...9377c66349bb9a5d-library-01.json9377c66349bb9a5d-cached-01.jsonCounts: qualified pairs 7; disk misses 0; named/open rejections 0; cached rejected 0; cached unverified 1 (
84eee477…: the first call succeeded,returned_blob_byte_match=0, exit 5; excluded); in-process hits 0; application fallbacks 0; other exclusions 0.Paired difference (cached minus library) over the 7 pairs: median +0.08 ms, range −0.95 to +0.67 ms; 5 positive, 2 negative. Both arms scale with program size in the same way, from 11.9 ms at 1.47 MB of DXIL to 16.2–16.4 ms at 2.08 MB. n = 1 pair per program, so a difference under ~1 ms is within the spread here.
Not timed, only for context: each seed process (the one cache-less creation plus serialisation) ran 2–17 minutes of wall time (receipt start and end times), against 12–16 ms for either read. That includes everything the seed does, not just the create call, and is not one of your timers.
Full SHA-256 values, descriptors and keys are in the receipts. I can send them if you want them. Driver blobs and DXIL stay on this machine.
AI use: Claude Code (Claude Opus 5.5) ran the job through our exclusive queue and wrote this at the account owner's request; the numbers come from the receipts of that run.
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T05:39:03Z.
One new candidate from the watch, and one idea that is not a port candidate (words only, read from the public GPL-3.0 repository; nothing built or run):
9e90746: static samplers get one kept order in the driver's table, recorded in a file beside the pipeline library, so the driver's disk cache answers at later starts instead of recompiling. Its message states: 406 compute pipelines over one second in a start before, 211 in the start that compiled them in the kept order, 0 of 1,314 in the next. About 380 changed lines, most of it one new file. For XCL: the slow compute pipeline builds that repeat at every start on NVIDIA even with a driver cache; worth checking first whether our static sampler order can differ between runs (the commitba44b52cnow onmain, "key compute driver blobs by static samplers", is related).de57b01(the card's ray-tracing hardware proposes candidates for the title's own ray walkers, which still decide the hits). About 10,500 lines in 25 files, and its own README says the first session's frame rate was not a gain because objects were missing from the scene. Interesting as a direction for the ray-traced lighting cost, not as a port.As before: comment with the number before you start, and a port needs the provenance note and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T07:46:56Z.
A new source for the watch: another project (another project, GPL-3.0, its own repository, tuned for RTX cards). First pass over its last 150 commits; words only, read from the public repository, nothing built or run. All are under 400 changed lines.
854f57f(with its test2dc3df1): in the two-halves form of a 64-lane group, console threads are taken from an LDS counter instead of rounding the flat thread id. The test's message says the old rounding writes 32 of 64 words on an RTX 5070 Ti. About 57 + 77 lines. For XCL: our split wave64 groups on 32-lane GPUs (NVIDIA, Intel); worth checking whether our thread-id mapping has the same rounding.c1d8179: in halves mode a 64-bit mask read as a number uses the console lane (lanes 32–63 read the wrong word before). About 53 lines. A correctness fix for the upper half.5732b3d: the shader precompile skips texture, media and metadata packs by extension. About 28 lines. For XCL: slow starts, if our preparation walks non-shader files (to check first).761de52: a job limit for the preload (translation and pipeline building leave cores free). About 20 lines.8c1fa5d: wake only as many worker threads as there are jobs; its message cites the wake call at 2.4 % of the submitting thread's samples. About 12 lines. For XCL: the pipeline worker pool (23 workers here).185bc4c: pooled textures at 64 KiB multiples behind a switch, with diagnostics for reads past a piece; its message ties two device losses to this. About 112 lines. Related to the small-placement work in #3008 and to the texture page fault in #2572.4f5ae57(a panicking pipeline build is caught) is the same change as #3028.Several of these cite other forks as their own source, so a port needs the provenance of the original too. As before: comment with the number before you start, plus the note in the file and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-28T08:13:51Z.
Update to my GPU time map above (7229023662): the 25 ms skinning program was the dispatch-chain form, and #2794 has already fixed it on
nvidia-dev. On today'snvidia-devit takes 0.11 ms a frame, and the world frame is about 145 ms instead of 167 ms. So the top of that map is out of date; the new top is below.Setup: RTX 3090 24 GB, NVIDIA 621.40, i5-13600K, Windows 11 26300, release. Tree
nvidia-dev54225f58+ #609 + #2551 (+ a local change that lists every program in the table). Same env and inputs as before:XCL_DIRECT_DXIL=1 XCL_UMA_DRIVER=mixed:1536:1792 XCL_TEXTURE_LEVEL_PAGES=1,XCL_PRESS_HOLD=3.5, A every 4 s,XCL_GPU_TIMES=16,420, compute pipelines precompiled with--used-only. One run per arm, 700 s each, no crash or device removal.5a29b696095f77ac, bvh_skinning)nvidia-devd1be8103+ #3003-#300654225f58, chains allowed54225f58,XCL_DIRECT_SPLIT_INSTRUCTIONS=100000000(no chains)New top on
54225f58(ms per frame, 16 frames):b78fa10b425b8e54compute, wave64 split in halves: 8.4 ms (one 160x90 dispatch a frame)95bc3980ec624295compute, ExecuteIndirect: 8.0 ms2504944a10775aebcompute, ExecuteIndirect: 7.2 ms703d7769736cebffmesh two-pass, no PS: 5.0 ms (277 calls)4b799df70d125a0amesh two-pass, no PS: 4.3 ms (360 calls)#1 is a wave64 program run as two 32-lane halves on this card, the cost C22 (paired lanes in one 32-lane wave) is about. I have not looked into it yet.
Not tested: other GPUs; output equality chained against whole; whether the player had control (the picture is black on this tree without #2229).
AI use: Claude Code (Claude Opus 5.5) ran the builds and runs, read the logs and wrote this comment; I checked the numbers against the logs.
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T14:39:17Z.
New port candidates from the watch (another project, commits of today; words only, read from the public GPL-3.0 repository, nothing built or run). All are under 400 changed lines.
b5d12f2together with34cedda: pixel programs that the console depth-tests before they run declare early depth. Its message gives the symptom it fixes (a glass pre-pass writing its depth over what is behind it). About 150 + 190 lines. Important:34ceddamakes it opt-in per program, because with early depth on for all such programs their opening came out with wrong colours and darker scenes; a port should take the gated form, not the first commit alone. For XCL: I found no early-depth handling of that console control bit in our crates (a grep, not a study), so this is worth a look for overdraw cost and for wrong depth.54d8316: physical page numbers that were freed are given out again before the counter passes the title's 21 bits (about 124 GiB of allocations in a long session, then aliasing). About 75 lines. Provenance note: its message says it is itself a port from another fork whose repository GitHub has since removed, so check the origin before porting.c1e6b07: a fixed 128-entry table in the shader un-spill step panics on scalar codes beyond the physical registers; with a regression test. About 18 lines. For XCL: check first whether our recompiler has a table of that kind at all (I found no symbol of that name).7e71fd0: the descriptor table for placed views grows without bound; its message reports 34.9 million entries and 16.7 GB after 70 minutes of play. About 100 lines. For XCL: long-session memory growth, if our view bookkeeping keeps entries for views at new addresses.99e9ec9and the five commits stacked on it (texture handling for one bake pass, over 400 lines together), the replay-tool fixes, and the documentation and script commits.As before: comment with the number before you start, and a port needs the provenance note in the file and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T20:39:20Z.
New port candidates from the watch (another project, 189 commits since this morning, most of them merges and test upkeep; and another project). Words only, read from the public GPL-3.0 repositories, nothing built or run. All are under 400 changed lines. The list file showed the subjects of only about 28 of the 189 commits, so this is not a complete reading.
c9c5354: green or black textures on 8 GB cards. A lower reserve for targets, the eviction of texture slots limited by the room there is, and a neutral stand-in view instead of a null one for an evicted slot. Its message states target footprints of 1185–1450 MB that settle, where they held 1.6–1.9 GB. About 50 lines. For XCL: the black textures on cards with little video memory, and what a shader reads from a slot we gave up.906f656: a root view the title gives without a length gets its window plus 2 MiB of reach; its message names missing panels and decals as the symptom. About 110 lines. For XCL: wrong or missing geometry where a view's length is unknown.cfa18bf: small textures written through unordered access get their host copy together with their views; its message says a small page-table texture waited a whole run and every lookup gave page 0. It states counts on an RTX 5080 (32–34 such textures, 1.9 MiB, against 41–43 and 112 MiB without the size limit). About 100 lines. For XCL: possibly related to the textures read as zeros that #505 is measuring.71add4c: small textures placed back to back no longer make one another stale (far buildings were black). About 66 lines. For XCL: black surfaces from aliasing between neighbouring small textures.1f6fa78: a loop-invariant pass no longer hoists a volatile load out of a loop. 3 lines. For XCL: check whether our direct-DXIL optimiser has the same case.7fc379a: shader programs whose first-lane reads diverge are retried with both halves of a console wave kept in one host wave; its message states 209 → 206 failing of 25,779 cached shaders. About 50 lines. For XCL: wave64 on 32-lane GPUs.225cba4,2396eda,041d0ee) whose messages state no measurement.None of the six messages says the commit is itself ported from elsewhere. As before: comment with the number before you start, and a port needs the provenance note in the file and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T22:20:11Z.
claim: C4 (one-pass native mesh shaders), as a re-implementation in XCL's translator, not a port of upstream code.
XCL_NATIVE_MESH=1, off by default. Console mesh programs that pass an eligibility check (outputs within D3D12's 32 KiB mesh limit, an MS/PS pair the driver accepts at pipeline creation) draw as one native mesh pipeline with oneDispatchMesh; everything else keeps today's two-pass path, logged once per program. ForExecuteIndirect, the title's count buffer is passed through.gpu/dxil/kernel.rs(mesh translation),hle/d3d12x/bind.rs(dispatch_mesh),hle/d3d12x/real.rs(mesh pipeline creation), plus a GPU test that draws a small eligible program native and two-pass and compares pixels.mainwithout it and say in the PR what changes if it lands first.AI use: an agent swarm: Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.
Imported from ivall/xcl. Originally posted by throny on 2026-11-28T23:39:08Z.
New port candidates from the watch (another project, three shader commits of yesterday evening; the other 83 new commits there are launcher, release and docs work). Words only, read from the public GPL-3.0 repository, nothing built or run. They continue C39 (
7fc379a) and belong together:79af541: lane-mask exchanges that diverge are retried with both halves of a console wave kept in one host wave on a 32-lane host. About 107 lines, with tests. For XCL: wave64 on 32-lane GPUs (NVIDIA, Intel).9055f68: scalar and/or/xor masks that are read as data keep the bits of lanes outside the branch. About 75 lines with a regression test; its message states 23 wave64 tests passing. For XCL: lane masks used as data in split wave64.43842fa: the heap-slot records carry the title's addresses so that lane reads can use views chosen at run time. About 187 lines; its message states 205 failing shaders of 25,780 cached, down from 209. For XCL: shader translation of lane reads through descriptor heaps.None of the three messages says the commit is ported from elsewhere. Their messages name one game shader by hash as the example; the code itself hard-codes none. As before: comment with the number before you start, and a port needs the provenance note in the file and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T02:39:16Z.
New port candidates from the watch (another project, 207 commits since last evening, most of them merges, tests and menu work; 14 read). Words only, read from the public GPL-3.0 repository, nothing built or run. All are under 400 changed lines.
532127a: the scalar min and max instructions set the condition flag to their comparison, not to "result is zero"; with a test. About 31 lines. Provenance: its message says it follows another project3c83a339, so note both in a port. For XCL: check what our recompiler sets after these two instructions; a wrong flag flips a select or a branch.c4cc545(first) and8b71858,42aa872(on top of it): pixel-shader quad reads inside divergent control flow are translated instead of refused, and a read takes the lane's own value where the lane it would read is not running.8b71858states that 5,587 of 20,110 shaders of a preload on an RTX 5070 were dropped before. About 25 to 35 lines each. Note:4c16422in the same area was reverted there (31a46c4); do not take that one. For XCL: draws dropped or wrong where a derivative-like read sits in a branch.9bba2a2: a wave64 program that no other form lowers on a 32-lane host takes the wave-wide form; its message states 77 of 79 such programs recovered and lighting back, at a cost (about 23 against 29 frames/s there). About 79 lines. For XCL: wave64 programs dropped on NVIDIA and Intel.88244e8: a frame waits at most 3 s in all for compute pipelines; its message says a first-run frame took over 30 s and the title's own watchdog ended the game. About 44 lines. For XCL: long stalls on a cold pipeline cache (#2088).a38716d: over budget, a first texture upload is admitted only into a free range that exists now; its message states 17,043 MiB in use against a budget of 14,767 MiB. About 75 lines. For XCL: video-memory overrun on cards with less memory than the console.1794979(a program's constant table starts after its instructions) cites a third project as its origin, so its provenance needs checking before anyone ports it;6bb83a7(lane provenance in whole-wave sections) is 389 lines.As before: comment with the number before you start, and a port needs the provenance note in the file and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T05:39:31Z.
New port candidates from the watch (another project, 384 commits since last night; most of them a merge of another project work already listed here, plus launcher and docs work; 8 read). Words only, read from the public GPL-3.0 repository, nothing built or run. All under 400 changed lines. Each of these says in its message that it is itself a port, so a port into XCL should name the original, given below.
b7deb84with its cache-key commit5e02d55: constant initialisations of LDS accumulators are hoisted behind an entry barrier; its message names dark flicker on water as the symptom and states 288 tests passing. About 151 lines. Origin per its message: another projecta918163(GPL-3.0). For XCL: compute programs whose first LDS writes race the readers on a 32-lane host.f3b21be: one DXIL interpolation mode per signature row, with a unit test. About 80 lines. Origin per its message: uiliannn/VItoriaBr5943771(that repository is GPL-3.0 by its GitHub licence field; it is not in my watch yet). For XCL: DXIL validity of pixel inputs that share a row.116f223: the smaller console profile keeps 1,536 MB for render targets instead of 3,072; its message states targets holding 0.8 to 1.45 GB and 1.6 to 2.2 GB more kept free on a 12 GB card. About 40 lines. Origin per its message: another project (their #1911). For XCL: new textures waiting for room on cards under 16 GB.752663c: writes still in flight are settled before a bake pass reads title memory (colour noise on skin as the symptom). About 17 lines. Origin: another project (their #1912). For XCL: a read of title memory racing our own pending writes.3efc9d4(a lighting tweak for one kind of scene, 37 lines, no numbers);94120c7(sample-mask handling for masked draws, 441 lines, would need splitting);cfff723(an off-by-default switch without numbers); and one commit whose code hard-codes a shader's digest and instruction offsets.As before: comment with the number before you start, and a port needs the provenance note in the file and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were read by Claude Haiku 5.5 and this was written by Claude Fable 5.2.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T08:29:31Z.
C4: the first slice is up as a draft, #3327 (behind
XCL_NATIVE_MESH=1, off by default): eligible console mesh programs draw as one native mesh shader with oneDispatchMesh, everything else keeps the two-pass path, andExecuteIndirectpasses the title's count buffer through. On an RTX 3090 its GPU tests draw the same pixels native and two-pass, and an ineligible program falls back. Not yet run in the title; a smoke pair on an RTX 5090 is next, then it leaves draft.AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T08:39:23Z.
New port candidates from the watch (another project, 815 commits since the last look, many of them merges; the ones below are dated 28 and 29 November). Words only, taken from the commit messages and file statistics of the public GPL-3.0 repository; no code was read in detail, nothing built or run.
6235b60c: indirect compute dispatches with more than 65,535 groups are allowed on NVIDIA too (it was AMD-only), with an opt-out switch. Its message names an unlit, smudged bottom fifth of the picture at 1440p as the symptom, checked on an RTX 4070 SUPER. 22 added, 7 removed lines, one file. For XCL: a partly dark picture from a dispatch list that is cut off.1836413d: a single R11G11B10_FLOAT or R9G9B9E5 plane is presented through the compositor instead of being warned about and never shown. 70 lines, two files. Its message says it depends on their #1709 and is a port of another project#3784, so a port into XCL should name that origin. For XCL: a black picture when the presented plane has a packed-float format.6bbb6bca: mesh groups run in whole console waves, mesh loop limits go through the loop's exit, and one 16-bit write is fixed; its message names lost triangles on NVIDIA. 237 added, 22 removed lines, three files. For XCL: mesh shading on 32-lane hosts.99b28552: unchanged linear plane uploads are skipped and plane reads try a lock-free path first (two switches). No numbers in its message. 162 added lines, one file. For XCL: upload cost per frame.8f0a0c24: wave64 programs folded exactly onto 32-lane hosts, two console lanes per host lane. Its message states refusals going from 22 to 1 with 175 programs exact on an RTX 5070 Ti. 3,369 added lines in 14 files, a large part of them tests.5ed4465b: a lane-selection fix fords_bpermute_b32on wave32 hosts. 893 added and 814 removed lines, mostly moved tests; the fix itself is small.As before: comment with the number before you start, and a port needs the provenance note in the file and a
THIRD_PARTY.mdentry.AI use: Claude Code; the commits were picked by Claude Haiku 5.5 from their messages, and Claude Fable 5.2 checked the commit ids and sizes and wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T14:43:13Z.
Why the other project projects are at 20+ fps on NVIDIA and XCL at 2 to 12, from a source read of another project, another project (its GPU path is a vendored copy of the same code) and another project against XCL
main. Read only, nothing of theirs built or run. Marked as: [S] seen in their source, [D] stated in their docs, [I] my inference. Proposal for how to split the work at the end.Where XCL's frame goes (RTX 4080 16 GB, measured, details on #505): about 450 ms of GPU time per frame; compute about 290 ms (about 830 dispatches per frame that are each cut into about 10 pieces and about 3.7 slabs), two-pass mesh draws about 117 ms in about 2,300 calls. Their whole GPU frame is about 41 ms at 1440p on an RX 7900 XTX [D].
C56. Per-lane structuring instead of EXEC-masked execution (
another project/src/structure.rs, guard removal inemit/lower.rs) [S]. Lane masks become per-lane booleans, a wave-wide test becomes a branch on the lane's own bit, and EXEC guards disappear where EXEC is known full. One whole DXIL shader and oneDispatchper console program; no split by instruction count anywhere in their tree. This is the root of both gaps below. Size: 2 to 3k lines, several PRs. [I] it is also why they do not hit the NVIDIA compile blow-up that made XCL split.C57. Folded wave64 on 32-lane GPUs (another project
another project/src/fold.rs,docs/wave64-folded.md) [S]: two console lanes per host lane, a ballot is twoWaveActiveBallot, no groupshared exchange and no barrier. Their figure: 18.0 against 18.3 ms per frame with 175 programs folded [D]. About 1.5k lines. Replaces XCL's exchange inPRELUDE_X64/lower/wave.rs.C58. Mesh programs as real mesh shaders with the console's group size (
emit/lower.rsaround the thread-group and lane-id code) [S]: no compute pre-pass; the driver splits a 128-thread group into 32-lane waves and the console lane is the flat thread id AND 63, which is valid because after C56 mesh code reads no other lanes. Per draw: oneDispatchMesh, state set only when it changes, barriers only on real state changes. For XCL without C56: [I] the existing split-wave64 lowering inside a mesh entry withnumthreads(128)and groupshared exchange, 400 to 700 lines; limit to check: 28 KB groupshared per group. @KDenKC this looks like the 128-thread slice you mentioned on #505; I do not start anything here.C59. Their headline numbers use reduced settings XCL can select today [D]: Series S profile, ray tracing off with its passes skipped, 720p internal for 1080p output, some runs with DLSS and frame generation. XCL has
XCL_DEVICE_TYPE=lockhartandXCL_RAYTRACING=off. No port needed, only measurements; I run both on the 4080 today and post on #505.C60. Buffers in card memory, within the budget (
another project/src/shadow.rs;docs/rtx5080-16gb.md) [S][D]: title memory stays in PC RAM, a buffer gets its own copy on the card at first use, kept current by write watch. Their figure on an RTX 5080 16 GB: 16 to 27 fps from keeping small buffers on the card (64 KiB minimum instead of 4 MiB), 13 to 14 GB used. XCL is at 18.7 GB against a 15.2 GB budget here. Different memory model from XCL's GPU windows: a rewrite, not a port. Weeks.C61. CPU side [S][D]: title list calls only write arguments, 6 to 8 workers translate them (
list/thin.rs), separate preparation thread, merged submissions. Their figure: 280 to 46-65 ms per frame over all of these. XCL records about 445 ms of CPU per frame across threads. Matters once the GPU side is fixed.Proposed split (please object or take one):
gpu/recompIR; whetherstructure.rsdepends on their IR or can be ported as is), then stacked PRs under 400 lines. I can write that design note with provenance if nobody is on it; say so here in the next hours, otherwise I start it.My judgement [I]: the gap is not structural, but 20 fps on a 16 GB card needs C56 + C58 + the reduced settings together, which is weeks, not a port of one piece.
AI use: Claude Code; three Claude Opus 5.5 agents read the sources, Claude Fable 5.2 checked the XCL side and wrote this.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T14:44:48Z.
@throny yes, C58 is ours: it is the next slice of C4 (#3327), so we take it under that claim. Where it stands, all local so far:
numthreads(128)mesh entry, as you describe. Our cross-wave exchange used a polling rendezvous, which the mesh stage does not guarantee forward progress for; it now uses the hardware group barrier, within the 28 KiB groupshared cap. A 128-thread wave64 fixture draws the same 512 pixels natively as through two passes on an RTX 3090 (native_mesh 4/4 there; independent review done). Two limits for now: the 128-thread path takes straight-line programs only (a branch could split the waves at an exchange), and v5 only for direct draws (X/Y passed per draw).DISPATCH_MESH, stride 20, written per command by the GPU pass that already bounds indirect mesh draws. The D3D12 proof test is being written now.On C56: we're not on it and won't start it; a design note first, as you propose, sounds right to us.
AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T14:52:50Z.
C56: per-lane structuring in XCL (design note for #3011)
Sources read: XCL
origin/main3b6a91ed(the local checkout is 1,898 commits behind it; every XCLreference below is to
origin/main, paths undercrates/xcl/src/gpu/); another project fe7c6e5(
another project/src/, GPL-3.0-or-later); another projectfold.rsanddocs/wave64-folded.md.Nothing was built or run. [V] = read in source, [I] = inferred, [S] = reported by a search
pass over XCL, not re-read by me.
0. The finding that changes the task
XCL already has this design, written independently on 2026-11-24 (commits
1bab7576,b3c0b373,511eadd5; no provenance note, andTHIRD_PARTY.mdlists another project only for bcpack) [V]:recomp/lane_masks.rs(1,224 lines): masks as per-lane booleans in a reduced ordered BDD, lanebranches, path conditions,
Summary.guarded(lines 1-23, 196-207, 263-278) [V].recomp/lower.rs+lower/wave.rs+lower_dxil.rs: a per-lane lowering to DXIL (EXEC is "eachlane's own bit (
i1)",lower.rs:4-12) [V].XCL_PER_LANE=1, compute only, tried first, falling back to the per-instruction translatorand then HLSL (
lower_dxil.rs:431-435,pso.rs:1295-1309). An accepted program is one shader withdispatch_chain: None(pso.rs:1302) [V]. It is off by default.lower_graphics(VS/PS) exists but only tests call it; there is no mesh stage (lower.rs:159-167,1201) [V].
So C56 is not "port structure.rs". It is: measure what XCL's per-lane form refuses, port the specific
another project techniques that remove those refusals, add mesh, and turn it on.
1. another project's pipeline
ir.rs:1-17): oneInstper machine instruction in SSA over register dwords, withphis; EXEC, SCC and the old VGPR value are explicit operands.
ir::buildsplits irreducible loops(
structure.rs:1419) [V].Boolis a BDD node over atomsLane(a lane's compare or carry bit),Uniform(SCC),Phi,Quad(s_wqm),OpaqueandConstant(36-53) [V].sop(1054) readss_<op>_b32/b64,_saveexec,_wrexec,mov,not,wqmandcselectas boolean algebra;
step(1194) makes compare, carry andv_cmpxresultsEXEC AND Lane[V].branch(1337) turnsexecz/execnz/vccz/vccnzand the SCC of a mask operation into the lane'sown bit; any other SCC is
Uniform[V].join(957) resolves a mask phi to a constant when every arriving lane agrees, checks it againstback edges (713), and restarts with a
Phiatom on a wrong guess (474-487).paths(1376) isthe fixpoint of what each lane knows per block; loop heads forget atoms the loop redefines [V].
finish, 768): a guard isNonewhen reaching the instruction implies EXEC (813);activelists masks set only in lanes that reach their write, so a ballot there is the mask asdata (429-433) [V].
(1407-1429); otherwise opaque atoms and kept guards.
structure_wide(471) keeps chosenbranches as one wave-wide decision, with EXEC a guard behind them [V].
emit/lower.rs, 13,981 lines;emit/mod.rs):WaveSize) only with cross-lane code: DPP, swizzle,permute, permlane,
v_mbcnt, readlane, writelane, mask as data, or a wide branch (1992-2006,2120-2122) [V].
wave operations (
emit/wave.rs:1-12);emit/own_bits.rs:1-40covers wave ORs that only steer aper-lane bit loop [V].
flattenedThreadIdInGroup AND (wave-1)(5717-5724); output counts are thedeclared maxima and each lane culls its own primitive (5617-5670); at most 128 threads (5630);
no wave size can be declared, so masks as data are unavailable (463-465) [V].
emit/mod.rs:651-830, 990-1084): paired halves, theprogram without early-outs or skips, wave-wide branches (
widen), then "local waves", whichmod.rs:727-730andwave64-folded.md:16-18call APPROXIMATE [V].emit/bitcode.rs:1-7) [V].wave64-folded.md:22-30lists onescene's shadow programs as approximate or refused before folding, so part of the 20+ fps comes
from inexact forms [I].
2. XCL today, and where the designs diverge
rdna2.rs. There is no separate IR: SSA is built straight into the DXIL module(
recomp/ssa.rs,dxil/ssa.rs) [S].act()/selon every write, compares becomeWaveActiveBallot, branches test the uniform pair (dxil/lower.rs:904-1082,emit.rs:768-1015)[S]. Wave64 on 32 lanes exchanges halves with spin counters (
dxil/lanes.rs:289-332) [S].dispatch_piece_limit()= 12,500 (dxil/kernel.rs:93-95, no rationale comment;used at 606) by
module/split.rsand replayed byhle/d3d12x/real/dispatch_chain.rs[V/S].WaveSizeis compute-only and "theconsole code relies on 64-lane ballots" (
recomp/mod.rs:28-35,dxil/kernel.rs:129) [V].Divergences of the per-lane path from another project [V] unless marked:
the bit (
lane_masks.rs:921), a scalar read of such an SCC (899),s_barrierin any computeprogram (
lower.rs:1264), readlane and writelane in partial blocks (wave.rs:322, 331), mask ornumber mixes through joins, code-address tables (
pso.rs:1297), split-wave64 LDS(
lower_dxil.rs:372). XCL has no wide-branch mode, noactiveset, no whole-wave sections, noown-bits proof.
foreignto the per-instruction translator(
lower.rs:105-118) [S]; another project lowers everything natively.3. Options
ir::{Program, Inst, Reg, Value, Exit}andgfx10::{Fields, Operand}(22-24) [V], but needs SSA values and phis XCL lacks. Port the ideas intolane_masks.rs.ir,io,resource(4,403 lines),native,spill,emit(~25,000 non-test lines) [V].emit/mod.rs:17-21), XCL's use theio/res/memroot UAVs [V]mesh_wave::analyzeshows no cross-lane need4. Recommendation: C then A; keep the switch
XCL_PER_LANEStep 0, no PR: run
survey_compute_code(lower_dxil.rs:408) over the title's compute programs andpost refusal reasons by count and by instruction count. That decides the order of PRs 3-6.
lane_masksexportsactivemasks (analysis only). Unit tests in itsmod tests(
run_launch).analyze_wide(insts, wide_blocks): no edge narrowing behind a wide branch, plusany/every kinds. Unit tests.
activemasks. Test withagrees_with_hlsl(lower.rs:4387).one console wave per group only. Tests:
wave_branch_cases(3499),run_compute_waves(3171).s_barrierwhere every thread reaches it.over 400 lines).
Stage::Meshinlower.rs: lane = flat thread id AND (wave-1), refused whenmesh_wave::analyzereports a cross-lane need. CPU-interpreter test.lower_dxil.rs(output counts at the maxima, per-lane cull) behindXCL_PER_LANE=mesh, falling back to two-pass. GPU test against the two-pass result, withrunner::skip_test("no mesh shaders").lower_graphicswired for VS/PS behindXCL_PER_LANE=all.XCL_PER_LANEon by default for compute (0turns it off); README; both smokeblocks.
[SHADER]summary line with the form and refusal counts.New GPU tests follow
gpu_divergence_through_exec(tests.rs:1601):prog(130),runner::run_code(851),runner::skip_test(651) [S].Header for a file that takes another project code or its algorithm closely:
// <what>: ported from another project's another project/src/<file> at fe7c6e5 on <date>// (another project's repository GPL-3.0-or-later, see THIRD_PARTY.md).THIRD_PARTY.mdrow (it is one table: Source | License | What in XCL | How):| another project | GPL-3.0-or-later | crates/xcl/src/gpu/recomp/{lane_masks,lower,lower/wave,lower_dxil}.rs: wave-wide branch mode, active-mask ballots, whole-wave sections and the mesh entry, after its another project structure.rs and emit/ | port to XCL's analysis and IR |5. Correctness risks and equivalence tests
assumption (
structure.rs:5-9) [V]. Riskiest classes: wave-wide tests with bits outside EXEC,masks through loop joins, cross-lane reads in partial blocks,
s_wqmand helper lanes in PS, LDSwith barriers, and loops left through
s_andn2_wrexec.agrees_with_hlsl(per-lane form on the CPU interpreter against HLSL on theGPU) to three-way on the GPU: per-lane, per-instruction and HLSL of the same program, wave32 and
wave64. With
XCL_SAMPLE_*set, run every accepted program of the title in both lowerings onseeded memory and compare
res.6. Open questions
program compile on NVIDIA at all?
recomp/mod.rs:33says they rely on them; another project'slower.rs:5719says mesh code reads noother lanes.
for copied code?
fold.rs, 1,695 lines) is exact on 32-lane hosts and competes with XCL's splitand exchange: a separate issue?
module/split.rsand the dispatch chain once per-lane coverage allows?Imported from ivall/xcl. Originally posted by throny on 2026-11-29T14:52:51Z.
C56 follow-up: the design note is in the comment above. Its main point: XCL already has a per-lane analysis and lowering of its own (
XCL_PER_LANE=1, compute only, off by default), so C56 is "measure what it refuses, remove those refusals with the techniques another project uses, add mesh, turn it on" (about 11 stacked PRs), not a port ofstructure.rs.What the tracker already says about
XCL_PER_LANE=1on the title, so nobody repeats it:main.V_CMP_*ignore EXEC; #2117 covers only part), #1889 (phi predecessors after an exchange), #1890 (#2037 is conflicting).What I do next on the RTX 4080 16 GB, results here and on #505:
xcl shaders ... --direct --lanes --split 1): counts of accepted and refused programs and the refusal reasons by count. This is step 0 of the note and decides the order of the PRs.mainwithXCL_PER_LANE=1, withXCL_GPU_TIMES, to see whether #2647 still shows and what the accepted programs cost.People already working on per-lane (from the open PRs): @zondy1i @Saksukella @Decodere; your view on the PR order in the note would help most. Nothing is claimed yet beyond the two measurements.
AI use: Claude Code; Claude Fable 5.2 wrote the design note from a source read and this comment, Claude Sonnet 5.5 collected the tracker status.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T14:54:54Z.
@throny thanks, a clear note. One overlap to settle before anyone writes code: steps 7-8 (a native mesh entry with lane = flat thread id AND (wave-1), refused when
mesh_wave::analyzereports a cross-lane need) and C58 are two routes to the same native mesh entry. C58 keeps the split-wave64 exchange inside the native entry, so it also takes programs that do read other lanes, but for now only straight-line ones; your step 7 needs no exchange, but only takes programs with no cross-lane need. They fit together (try the per-lane form first, else the exchange form, else two passes), as long as there is one mesh entry and one fallback order, not two.A proposal: we add
mesh_wave::analyze's verdict to our per-program mesh census line, so one title run says how many of the 327 programs have no cross-lane need (your step 7 takes them as they are) and how many branch (C58's current limit). That number decides whether steps 7-8 or the C58 branch work come first. We'll post it here; until then nobody starts a second mesh entry.AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T14:57:35Z.
@KDenKC agreed on all of it: one native mesh entry (yours), one fallback order (per-lane form, else the exchange form, else two passes), and steps 7-8 of the note are not started until your census line with the
mesh_wave::analyzeverdict says how many of the 327 programs need no other lane. If most do not, step 7 becomes a second lowering behind your entry rather than an entry of its own, and I would stack it on your PR. Compute (steps 0-6) does not touch your files, so that part goes ahead independently.AI use: Claude Code (Claude Fable 5.2) wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T16:32:23Z.
C57: folded wave64 (two console lanes per host lane) in XCL (design note for #3011)
Sources read: XCL
origin/main0fe06eb0(paths undercrates/xcl/src/); another project 829188e9(
another project/src/, GPL-3.0); another projectemit/mod.rs. Nothing was built or run.[V] = read in source, [I] = inferred.
1. The folded form in another project
It is a machine-code rewrite before their IR:
fold::fold(fold.rs:1435) turns a wave64 computeprogram into a wave32 program, which then goes through their normal per-lane pipeline
(
emit/mod.rs:1401-1493) [V].could not take (
emit/mod.rs:780-805); switchanother project=0(fold.rs:58) [V].appended to the code (
fold.rs:214, 226, 346, 1677-1683) [V].EXEC = E.lo on the registers, then under E.hi on the twins (
988-1018) [V].its high dword (
mask,317); an implicit VCC becomes the VOP3 form namingvcc_hi(556-584),or VCC's dwords are swapped around a DPP/SDWA copy (
892,1593-1598) [V].v_cmpxor a VCC swap ends its run (961); a copy that writes ascalar the other copy reads runs upper-first, and is refused when both do (
274-283) [V]._b64operations split into dwords (733-747,1266); saveexecand wrexec,
s_bcnt1,s_ff1spelled out (1221,1290,1306);execz/vcczbranches testboth dwords (
1147-1170) [V].ds_swizzle,v_permlane(x)16: copied per half, since the console keeps them inside a32-lane half (
456-459, module doc24-27) [V].both and selects on bit 5 (
1040-1122) [V].v_mbcnt: the upper half adds the popcountof the low dword (
593-622) [V].(
memory_copy,645-730); a store is a run of its own, so lanes 0..31 write before 32..63.numthreadsis[ceil(T/64)*32, 1, 1](1463,1691); the dispatch grid isunchanged. A prologue computes both halves' console ids from the flat id (
1512-1549); a partiallast wave gets E from a compare (
1553-1557). Because NVIDIA does not give a wave consecutiveids in every group, each host wave takes its console base from an LDS counter behind one entry
group barrier (
emit/lower.rs:4373-4431) [V].531,1587,1615) [V].1442); more than 255 VGPRs (1448); group sides that arenot powers of two unless 1-D (
1460);ds_(b)permute, append/consume, GDS, GWS (666-675);buffer loads into LDS, scratch (
687,711); EXEC or VCC as a memory operand (655);v_movrel*, calls, indirect jumps (1214-1218,1587);vccz/execzoperands (374,1329);no spare SGPRs (
1402); a far branch with SCC live (862) [V].fold.rs:1) and their tests compare bit for bit(
emit/folded_tests.rs, 18 tests) [V]. Three caveats:that come back;
docs/wave64-folded.md:173-190) [V];emit/mod.rs:1353-1373,1464-1489) repair their per-lanestructuriser, not the fold [V];
(
emit/mod.rs:821-838,1014-1042) [V]. Never port that.(
another project=1), groups of whole console waves up to 1,024 threads(
emit/mod.rs:1086-1110) [V].2. XCL today
the console's group (
docs/wave64-on-wave32.md;gpu/dxil/kernel.rs:774-781) [V].(lo, hi)values, EXEC only masks writes(
gpu/dxil/lower.rs:904-911,lanes.rs:185-205) [V].ds_bpermute, a coherent scalar load and most LDS accessesmeet the other half (
lanes.rs:242-332,569-590). Compute and mesh always use the spin form:slot store, fence, atomic arrival counter, bounded poll (
lanes.rs:328-336) [V].v_readfirstlaneper 8-instruction iteration; a waiting wave keeps issuing (the doc's Costsection) [V].
lanes.rs:24-34); a spin program above the12,500-instruction piece limit stays whole (
kernel.rs:805-821); a timed-out pair stops [V].gpu/recomp/lower_dxil.rs:370-375) [V].3. How folding fits
Translator: the per-instruction direct DXIL one (
gpu/dxil). It already has the executionmodel folding needs. another project rewrites machine code only to feed its structuriser; XCL has none
[I]. So: fold inside
Lw.vreg(n)(lower.rs:743) reads a second VGPR bank;lane,lane31,upper,half(lower.rs:234-239) are per copy (lane = host rank + 32 x half).act(),lanebitandv_mbcntthen work unchanged [I].lo = WaveActiveBallot(a).x,hi = WaveActiveBallot(b).x. That removes another project's copy-orderingfault class by construction [I].
rlaandfirst_lane(lanes.rs:695,751) pick the bank.lds_in_ordermeetings;s_barrierstays a group barrier.Form order per program: unchanged for wave32 programs and groups of 32 threads or fewer; then
XCL_PER_LANEif set; then folded; then split-exchange; then HLSL split. Folding refusesds_bpermute, relative moves, indirect jumps and anything it has no doubled lowering for.Dispatch side:
numthreadsbecomes[ceil(T/64)*32, 1, 1], at most 512. Group counts andindirect arguments do not change, so
hle/d3d12xneeds no grid change [I]; the existingdispatch_remap(recomp/emit.rs:4866-4888,real.rs:5245) is HLSL-only and stays out. Thethread hand-out in
setup_lanes_compute(lanes.rs:87) takes 64 console threads per host wave.Instruction-count split: a folded program has no arrival counters, so it may be chained like a
wave32 one, if the chain's saved state carries both banks and the thread base [I]. Its DXIL is
about twice as long, so more programs cross the limit. First version: over the limit, fall back
to split.
Mesh two-pass: the first pass is the same
Lwwith 128 threads (kernel.rs:129,780), so itfolds to two host waves. Later PR;
mesh_wave.rsonly describes requirements (line 3) [V].Switch:
XCL_WAVE64_FOLD=1, in the shader cache identity asXCL_PER_LANEis(
recomp/pso.rs:380).4. Stacked PRs
Three-way tests run the same program folded, split (
KernelOptions.split) and as split HLSLthrough
prog,runner::run_code,runner::run, withrunner::skip_test.Lwhalf context and second VGPR bank, no behaviour change. Existing suite.lanes.rs(two-ballot, lane read/write, first lane,thread hand-out, partial-wave EXEC).
gpu_folded_wave64_cross_half_operations.threads.
gpu_folded_wave64_agrees_with_split_and_hlslover thegpu_split_wave64_*programs.gpu_folded_wave64_lds_follows_instruction_order,gpu_folded_wave64_store_order_across_halves.XCL_WAVE64_FOLD=1indirect_compute(pso.rs:1285),cache identity.
gpu_folded_wave64_waves_diverge(8 x 8 x 4),..._partial_group. Smoke blocks.gpu_folded_wave64_chain_matches_whole.bench_folded_wave64(ignored,runner::dispatch_timed) and a[SHADER]count line.0turns it off), README.Provenance header on
lanes.rsadditions and aTHIRD_PARTY.mdrow for another projectfold.rs(the
v_mbcnt, lane-read and thread-mapping recipes).5. Risks, gain, open questions
programs that already stay whole above 12,500 instructions still compile [I].
program is the guard.
the console's order (the split form has the same limit) [I].
partial wave only (
emit.rs:6527-6535) [V].18.3 ms compares folded with a no-exchange form, so it shows folding is nearly free, not a gain
over exchanges). XCL's bench puts exchange-heavy code at about 75 % exchange time and
exchange-light code near 10 %. 40 ms single calls point to spin-dominated programs. Estimate:
30-60 ms of the 93 ms (7-13 % of the frame); floor about 10 ms if the time is ALU after all.
does a dispatch-chain piece save, and does it scale to two banks? (3) How many of the title's
wave64 compute programs use
ds_bpermuteor exceed 255 VGPRs? (4) Is one entry group barrierper dispatch acceptable given #1727, or should groups of one console wave skip the hand-out?
Nothing is claimed with this note; it is a proposal for whoever takes C57, and open question 1 (exchanges per call of the top split programs) is a measurement I can make on the RTX 4080.
AI use: Claude Code (Claude Fable 5.2) read the sources and wrote this note.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T16:35:32Z.
@throny one note on C57 from the mesh side: the folded form looks like the better long-term shape for the native 128-thread mesh entry too, not only for the two-pass first pass (your step 7). C58's current entry runs each console wave64 as two wave32 halves with an exchange, which is why it needs a group barrier at every meeting and why it takes straight-line programs only (a divergent branch could leave the halves at different meetings). Folded, a 128-thread group is 64 host threads, both halves of a console lane live in one host lane, and there are no meetings to keep uniform, so that limit goes away.
So no change to your order from us: once steps 1-4 are in, a folded native mesh entry is a small step on top of our entry (the same
SetMeshOutputCounts, slot-6 X/Y and fallback order; each host lane writes its two console lanes' outputs), and we'd take that slice then, stacked on your folded primitives. Until then we keep the exchange form behind the straight-line check.AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T16:39:44Z.
C61 detail (CPU side of a frame), from a read of
main7a649b0eand one world-run log on the RTX 4080 16 GB / i9-12900K. Nothing here was profiled; [V] seen in code or log, [I] inferred. Not urgent while the GPU side is the limit, but written down so nobody has to redo the read.Per title dispatch [V] (
bind.rsbind_abi_with_root_resolved): three arena allocations, a clone of the argument vector plus two vectors for io, AddRef/Release on root signature and pipeline, and alwaysSetComputeRootSignature, all six root UAVs andSetPipelineState, although only views 0 and 1 change between dispatches. Draws take the same path plus a list AddRef and one more state lock.Per submit [V]: the write-watch look takes the global
REFRESHlock and callsGetWriteWatchwith reset (1.62 ms a look, about 18 submits a frame, about 29 ms); the background look-ahead finds nothing, so it cannot simply move off the thread. The gate hold insparse.rsis the sparse uploads and tile mappings of that submit itself (wait 0).Global locks on the hot path [V]:
LISTS(every resolved draw and dispatch),CHAINS/RECORDINGS/SHAREDindispatch_chain.rs, the alloc poolSTATE. Each is held briefly; recording is probably parallel with moderate contention [I].Changes, by expected value [I]:
draw.rsbind()does): about 200 lines, 20 to 40 ms per frame.LISTSout of draws and dispatches (a generation pin intoSTATES): about 150 lines, contention only.XCL_WATCH_GAP_MB: an env change to measure, up to about 10 ms.One correction to my earlier reading on #505: the scratch pooling I tried (one slab per chained dispatch) is a CPU and memory matter, not a GPU one; the GPU frame did not change with it.
AI use: Claude Code; Claude Opus 5.5 read the code and the log, Claude Fable 5.2 wrote this.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-29T17:48:00Z.
@throny the census count we owed you (RTX 5090, our integration build on
main3b6a91ed, one census line per mesh program, 198 distinct programs seen in this run so far):mesh_wave::analyze: cross-lane need in all 198 (lane reads 4-42, saveexec 2-33, whole-mask branches 6-60; the commonest shape is lane reads 5-9, saveexec 2, branches 9-19), and branches in all 198. Programs with neither: 0.So your step 7 as written (per-lane, refused on any cross-lane need) would take none of them, and neither does C58's current exchange entry: with the switch on, the native check put all 198 on two passes, 116 for 'control flow may diverge across the group' and 82 for an output signature our native entry doesn't support yet. 0 native draws in the run.
What that means for the order: native mesh for this title needs either a uniformity proof for these branches (most look like
tid < countguards and culling, which C56's per-lane form removes) or the folded form from C57, where the halves never meet. Both are on your side of the split, so C58 waits for them; we'll take the output-signature gap (the 82) in the meantime, since that one is ours either way.AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T17:51:13Z.
@KDenKC thanks, that settles the order: with cross-lane need and branches in all 198, C57 (folded) is the shorter road to native mesh for this title, and it is the one that is furthest along here. Status of C57, all local so far (RTX 4080 16 GB, 621.40; nothing pushed yet, each step goes up as its own PR once the whole suite and the smoke runs are done):
Lw, no behaviour change): written, independently reviewed, emitted DXIL identical for 90 containers before and after.v_mbcnt): written, independently reviewed;gpu_folded_wave64_cross_half_operationspasses on the 4080 for groups of 128, 104 and 80 threads and 8x8x2, against a 64-lane model.v_mbcntrun folded; nine of the existing split test programs agree three ways (folded, split, HLSL). Refused for now: all memory and LDS, DPP, permlane, relative moves, exports, barriers.XCL_WAVE64_FOLD=1, then the mesh first pass. For your native entry the relevant part is that a folded 128-thread mesh program is two host waves of 32 with no exchange between halves; I will say here when step 3's driver is in a state you can call from your entry.One caveat from the reference: another project found two general faults in its fold a day after its bit-for-bit tests passed (copy ordering, lanes that come back), so I keep the three-way test on every existing split program as the gate, and nothing approximate is ported.
AI use: Claude Code; Claude Fable 5.2 agents wrote the three steps and this status, Claude Opus 5.5 reviewed steps 1 and 2.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T22:22:06Z.
C57 first title run (local; RTX 4080 16 GB, 621.40):
main0fe06eb0+ #3192 + #3124's change + a local input-timing patch + fold steps 1-5,XCL_WAVE64_FOLD=1, 900 s, startup preparation off:compute fold: 65 wave64 compute programs folded, 447 refused. Refusal reasons by count (each line once per program): images 159 (image_load76,image_gather4_lz53,image_sample_lz30),s_setregof a mode register 59,s_barrier31, over the piece limit 29, others fewer.So the form works in the title but takes only about one program in eight so far, and nothing measurable changes yet. The order for the next steps follows from the counts: images first (they are per lane, so they double like vector memory), then
s_setreg(scalar, once per wave), thens_barrier(a group barrier stays a group barrier in the folded form, as long as both halves reach it together, which is the case by construction). @KDenKC for your mesh entry the same three apply.AI use: Claude Code; Claude Fable 5.2 agents wrote the steps, Claude Opus 5.5 ran this and wrote it.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T23:06:08Z.
C57 update (local, RTX 4080 16 GB, 621.40; nothing pushed yet, all steps independently reviewed or in review):
s_setreg/s_round_mode,s_barrierwhere every wave of the group provably reaches it): title run withXCL_WAVE64_FOLD=1, 900 s, no removal: 234 of 512 wave64 compute programs folded (step 5 alone: 65). 2.16 presents/s, unchanged: the programs folded so far are not the expensive ones.ds_swizzle76,s_barrierin groups of several waves with loops or branches 44, memory atomics 40, LDS atomics 33, DPP about 25.Stack order for PRs once each has its suite and smoke runs: steps 1, 2, 3 (driver), 3 (three-way test), 4, 5, 6, 7. @KDenKC step 3's driver is the base your mesh entry can stack on; I will post its PR number here.
AI use: Claude Code; Claude Fable 5.2 agents write the steps, Claude Opus 5.5 reviews, ran the title runs and wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T23:39:17Z.
New candidates from the other project line (commits read, nothing built or run; numbers are the commit messages' own):
C62. another project
05d1c564— wave64 compute programs are folded before the wave-wide and approximate forms, and folding is the last resort when it is off. Message: from an empty cache about 120 programs took other forms, 3 had no form at all and their dispatches were dropped (foliage flicker). Follows5c262d7b. 41 lines,another projectemit/mod.rs,fold.rs. For XCL: the form order of C57 (folded before split-exchange) and never dropping a dispatch for lack of a form.C63. another project
32b38669— the preload no longer trusts a short used-pipeline list: a 5-line list made it warm 1 pipeline of 60,672; now it warms all 88,563. About 43 lines. For XCL: the startup preparation's "earlier used shaders" list (#2088) should not shrink preparation to almost nothing when the list is short or stale.C64. another project
4ffb47bb— aliasing of transient render targets off by default, depth colour twins made eagerly; fixes block artifacts. 19 lines. For XCL: compare with our placement and alias handling (XCL_PLACE_RETIRE,XCL_DEPTH_UAV_TWIN), relevant to the wrong / dark picture on #505.C65. another project
d7c2d8a7— more dynamic descriptor slots on a capped host; before, up to 1,900 draws were dropped in 5 s (see-through patches, ghosting). 17 lines. Port the idea (size the pool from the title's needs, count dropped draws), not their number.C66. another project
c506066— DXR: a copied acceleration-structure recipe takes the copy's destination instead of keeping the source's, and the wanted set is cleared on overwrite. 15 lines. For XCL: worth a look at how copied structures are tracked (the dark-picture question).C67. another project
36c23d49— copies under 1 KiB with SSE2 moves instead ofrep movsb: 64 B 1.4 to 4.8 GB/s, 256 B 3.1 to 12.4 GB/s (Ryzen 3700X). 71 lines. For XCL: small CPU-side copies on the submit path (C61).AI use: Claude Code; Claude Haiku 5.5 read the commits, Claude Opus 5.5 checked the summary and wrote this.
Imported from ivall/xcl. Originally posted by UncommonDLL on 2026-11-29T23:52:20Z.
C35 follow-up: we extended the CPU characterization on main
5b0d5fa3d65d9aa61567f8603154d818a9307846to connect a serialized root UAV to a complete translated shader footprint.The fixture uses XCL's actual root-layout decoder, argument preparation and existing pipeline metadata test seam. The FSPX interface parser supplies six user SGPRs, and the prepared ABI places the root address A in s4:s5. No native PSO is created.
The synthetic program reads four bytes at A and A+65,536, then writes their XOR at A+4. These are its only guest-data accesses: 12 distinct bytes within a declared 65,540-byte range. Both required tiles have committed CPU backing.
With
XCL_VIEW_REACH_MB=0in the configured 16-window layout, the actual root-view request queues only the first tile. No placement, sized descriptor, table entry or earlier request supplies the second tile in this isolated composition. Placed resources already have a separate Width-based request, so this should not be generalized to every binding.The existing FSPX-to-HLSL translation route produced a 4,168-byte DXIL container. Native DXC/DXIL 1.8.2502.11 validation passed, and a malformed 64-byte negative control was rejected. The final DXIL retains both loads feeding the store. One exact CPU test passed with zero runtime skips. This characterizes the current request shortfall, rather than demonstrating a fix.
The shader specifies WaveSize 64 and one thread per group. Native PSO binding, GPU residency, copying, readback and retail behavior were not tested.
I would keep exact resource or proven shader-footprint requests separate from unknown-length reach hints. A larger generic default does not establish the missing extent contract, and reservation size alone does not identify logical resource bounds. This result is offered as regression evidence rather than a competing port or production change. #3096, #3097 and #3443 remain distinct related work.
AI assistance: ChatGPT Work/Codex implemented and verified the CPU fixture. Claude Opus independently reviewed the qualification. Gemini's earlier API-contract and upstream-overlap review was reused.
Imported from ivall/xcl. Originally posted by claudetools-gh on 2026-11-30T02:15:45Z.
@throny a data point for C56 ("measure what it refuses"):
XCL_PER_LANE=1on currentmain, retail title, RTX 5070 Ti (621.40). It ran stable: no crash and no device removal over 30 min. The lit prologue cell renders the same as without it.main1bd9cee1, plus the lit-interior stack from #505 (XCL_UMA_WINDOWS=16,XCL_CS_PSO_WAIT_MS=0,XCL_ALIAS_COPY=1with the download fix, depth UAV twins, etc.).XCL_GPU_TIMES=8, same scene and camera as a run without per-lane on a slightly oldermain(7a649b0e).GPU time per frame, top programs (ms):
XCL_PER_LANE=1Refusals ("per-lane fallback reason=…"), 920 in the run, by reason:
V_CVT_F16_F32(its #1426 semantics differ from the console's)IMAGE_SAMPLE_L(reads a register the per-lane form did not pass)IMAGE_LOAD(same)IMAGE_SAMPLE_LZ(same)IMAGE_STORE(same)V_PERMLANEX16_B32: VOP3 modifierss_barrier: the lanes past a dispatch's thread limit leave at the startSo the first two removals with the most reach look like
V_CVT_F16_F32's semantics and the image ops' register passing (the fourIMAGE_*rows together are 312).One run, one scene, so take the ms as a ranking. Not tested: AMD, other scenes.
AI use: Claude Code with Claude Opus 5.5 ran it and wrote this. Counts only; no game data posted. AI-assisted.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T04:30:02Z.
@claudetools-gh thanks, the same test on the RTX 4080 16 GB (621.40),
main0fe06eb0+ #3192 + #3124's change + a local input-timing patch,XCL_PER_LANE=1, 900 s, startup preparation off: reached the world, no removal, no crash, 2.44 presents/s (the same build without it: 2.13 to 2.28 in five runs), GPU frame 336 ms first to last stamp (369 ms without). So a small gain here too, and the path is stable on this card.Refusals by count match yours:
V_CVT_F16_F32-class converts 266, split-wave64 LDS 185, image ops 276 (IMAGE_SAMPLE_L149,IMAGE_LOAD73,IMAGE_SAMPLE_LZ54, all "reads register N the per-lane form did not pass"), a mask read as a number 33.For C56's order that means: the f16 converts first, and that class is already handled: #2182 ("the per-lane form takes f16 converts and products from #1426") was merged into
mainafter the commit I tested. I rerun on a currentmainnext to see how much of the 266 it takes. The image class looks like one missing operand in the per-lane form's image lowering rather than three problems. The mask-as-number class is step 3 of the design note.AI use: Claude Code (Claude Opus 5.5) made the run and wrote this.
Imported from ivall/xcl. Originally posted by Grimkaaah on 2026-11-30T11:42:25Z.
claim: PC FidelityFX SDK upscaler for the retail title's FFX API calls (the "alias the loader → FFX DX12 from the PC" route in HANDOFF.md, FSR section)
What: the title calls the standard FFX API (
ffxCreateContext/ffxConfigure/ffxQuery/ffxDispatch/ffxDestroyContext) exported byamd_fidelityfx_loader_xbox.dll. Behind an opt-in switch (XCL_UPSCALER=fsr, defaulttitle= today's behaviour), XCL answers those exports itself and runs the upscale with the PC FidelityFX SDK v2.4.0 DX12 DLLs (FSR 4 on RDNA 4, FSR 3.1 elsewhere, chosen by the SDK) on the title's PC command list at the point of the call. That skips the 29 recompiled console FSR4 pipelines (74 s of DXC for the largest, ~11 ms per dispatch in the probe). Any call it cannot map (unknown chained struct, foreign resource) is passed to the console DLL as today, and logged.Where it comes from: my own project, Victory Grimkaaah (GPL-3.0, not published yet; I'm its author). It has the console FFX struct parsing (versioned chained headers, every resource and parameter of the upscale descs, jitter query) and the PC SDK backend (load the signed SDK DLLs, create the context on the host device, dispatch), with unit tests and a GPU test that upscales a synthetic 1080p frame on an RX 7900 XTX. The part that records into the title's list is not finished there, so for XCL I'd write it against XCL's 1:1 title-to-PC list mapping. Sources used: the public FidelityFX SDK headers (
ffx_api.h,ffx_upscale.h, MIT) and the title's own calls as observed. No console-kit material.XCL files I expect to touch: a new
hle/ffx/module (exports, struct parsing, backend),hle/mod.rs(module name),hle/d3d12x/only where the title's PC list and resources are looked up,config.rs(the switch),THIRD_PARTY.md(FidelityFX SDK DLLs, MIT; not committed to the repo, fetched like other SDK pieces), tests.Plan, as stacked PRs under ~400 lines each: (1) the FFX exports served by XCL and forwarded to the console DLL, no behaviour change, with logs; (2) the PC SDK backend and its GPU test; (3)
XCL_UPSCALER=fsrrecording on the PC list, with smoke runs on the retail title (AMD RX 7900 XTX; NVIDIA not tested).Draft PR: the first one within 48 hours.
AI use: Claude Code (Claude Opus 5.5) wrote the Victory Grimkaaah code and drafted this at my request.
Imported from ivall/xcl. Originally posted by Grimkaaah on 2026-11-30T11:46:33Z.
Candidates from Victory Grimkaaah (my own project, GPL-3.0, not published yet; I'm its author). Each one is something XCL
main9dfbe3edoes not have, checked by reading XCL's code (file:line below), and built only from public sources (FidelityFX SDK, public GDK/GRDK headers and docs, Win32, D3D12/DXIL, the title's observed behaviour). Pieces that rely on console-kit material are left out on purpose. Nothing here was run inside XCL yet. I hold the FSR claim above; anyone can take the others (say so here so we don't do one twice), or I'll take them one at a time after the FSR PRs.GPU time and memory
membuffergloballycoherentas soon as any GLC/DLC/SLC access, atomic or cache invalidation appears (gpu/recomp/mod.rs:1920-1939,gpu/recomp/emit.rs:5063-5068,gpu/dxil/kernel.rs:686). Ours keeps it only where a glc/dlc load can read what another group of the same dispatch wrote. Aimed at the GPU-bound split compute programs.XCL_GPU_PROFILE(hle/d3d12x/gpu_profile.rs) to show which overhead dominates.hle/d3d12x/gpu_times.rs) but no dynamic resolution. The render-scale cell is per title.config.rs:11-21, 241) and nothing reads the card's size.real.rs:890-912,bind.rs:297,list_x.rs:3848) but frees nothing on it.Recompiler
legacyF32ToF16, which XCL's own test says rounds toward zero (gpu/dxil/core_tests.rs:824-825); onlyv_cvt_f16_f32, products and the dynamic mode round to nearest-even (gpu/dxil/prelude.rs:45-61,gpu/dxil/lower_wide.rs:62-69). The RDNA default is nearest-even.NAME=VALUE.shaders.rs:441-444.gpu/recomp/mod.rs:887-906,gpu/dxil/lower.rs:42: constants compiled in).gpu/dxil/coverage.rs).Runtime
hle/kernelx.rs:2642-2659;kernelx.rs:68"never suspended or constrained"). Ours constrains on focus loss or minimize and suspends/resumes on system sleep, on a PLM thread.hle/gameinput.rs:327), next/previous readings across devices, and the temporal call's timestamp (ignored today,hle/gameinput.rs:798).hle/gameinput.rs:5, 707).hle/xgameruntime/networking.rs:18, 67-76).RegLoadAppKey); today everything but the OEM ConsoleMode key reaches the PC registry (hle/kernelx.rs:2926-2969).hle/xgameruntime/networking.rs:596-607).hle/kernelx.rs:2908-2913).title_textures.rs:2299-2304).AI use: Claude Code (Claude Opus 5.5) compared the two code bases and drafted this list at my request.
Imported from ivall/xcl. Originally posted by afpruivo on 2026-11-30T12:03:15Z.
claim: C63 (VIctory-NVIDIA
32b38669,apps/victory/src/warm.rs: a short used-pipeline list no longer replaces the full warm-up).XCL has the same pattern: startup preparation keeps to
earlier_used_shaders()whenever the list has any entry (crates/xcl/src/hle/d3d12x/present/preparation.rs), so a run that ended in the menus or crashed leaves a handful and the next launch enters the world cold. The port is the mechanism only (a minimum list size,XCL_PREPARE_USED_MIN, default 1,000 shaders; below it every record is prepared), written for XCL, one file plus README. Draft PR today.AI use: Claude Code (Claude Opus 5.5) wrote this; posted with my go-ahead.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T14:07:40Z.
Port candidates from another project (another project's repository GPL-3.0-or-later), a downstream copy of XCL itself (started from
f311ca5, merges ourmain). Its last 200 commits hold 19xcl:commits that change XCL's own code; none of them is onmainyet (checked by searchingmainand open and merged PRs). Commits read, nothing built or run here. The ones that look like general fixes:C68. another project
1c77cc6: a two-pass entry is dropped after the map's lock is released, not under it (a deadlock).C69. another project
ebe39df,a8a703a,e723382: DXC's thread-local state released in a way that no longer crashes the test process at exit (the test suite dying at the end).C70. another project
490393a: the end-of-run watchdog no longer hangs.C71. another project
5bd2c9e: a thread dump cannot take the process down (mainhas a copy-based unwinder since, but still reads an unchecked RIP; needs a rebase onto it).C72. another project
cb90cec: the window is hidden as soon as shutdown starts.C73. another project
b2e51e1: the 5 s wait for the save lock at exit.C74. another project
c15b7b9: the stand-ins counter that always reported 0.C75. another project test fixes
f4d1c1a(the used-pipeline test no longer races a build-ahead worker, the flaky test of #3180),34280f3,77e7f7e,2cb0c78(the last rewritesbind.rsline endings; port only its lines).Possibly:
187e4f8(overlaps open #2001 / #1798),26095cd(overlaps #1186),f7a55db,1376239,a857b27.its author these look like fixes XCL's
mainwould want too. If you'd like to send them upstream yourself, any of them as a PR here would be welcome (one change per PR, the rules in CONTRIBUTING.md); otherwise anyone may port them with a provenance note, which is what the numbers above are for. Claim one by replying here, as for the other candidates.AI use: Claude Code; Claude Sonnet 5.5 compared the commits with
main, Claude Opus 5.5 checked the list and wrote this.Imported from ivall/xcl. Originally posted by throny on 2026-11-30T14:39:14Z.
New candidates from another project (commits read, nothing built or run; numbers are the messages' own). The first three concern the folded wave64 form, so they matter for C57:
C76. another project
b8f365ad+ testsf1e2a0cd: a folded program reads its EXEC pair as a number, and mask joins fed only by a loop header were never marked as read, so from the second iteration on the read took a stale lane. Fix: in folded programs, read all mask joins. Message: 18 of about 26,000 programs change; one program family went from 40-77 ms to 22.5 ms a frame. 17 lines plus about 290 lines of tests. For C57: the same case (a mask read as a number through a loop join) needs a test in our folded driver; I add it before step 3 goes up.C77. another project
38c1d10a: some programs need about 2 x 129 VGPRs per lane when folded, past NVIDIA's 255, and run better unfolded (13-135 ms a frame on an RTX 5070). Their fix is a skip list by program name; for XCL the general form is a refusal when the folded program's register count passes the host limit (our design note lists ">255 VGPRs" as refused; to verify in our step 3/5).C78. another project
844200e9: dword scalar and buffer accesses drop the two low address bits, as the console does. A correctness fix for wrong data reads. 83 lines.C79. another project
1d536280: a loop whose trip count the program fixes is run in full instead of being cut at the stage's loop cap (one family of pixel programs had 256- and 512-sample loops cut to 128, giving a wrong, darker result). 414 lines, needs splitting.C80. another project
121d0dc8: hardware ray tracing, a memory budget for bottom-level structures with least-recently-named eviction; message: acceleration-structure memory grew from 370 MB to 1,583 MB over 20 minutes on an RTX 4090, and a 16 GB card lost the device past its budget within 4 minutes. 729 lines, must be split; only relevant if XCL builds real structures (see the root-argument clamp on #505).AI use: Claude Code; Claude Haiku 5.5 read the commits, Claude Opus 5.5 checked the summary and wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T15:00:10Z.
C57 (folded wave64) steps 1 and 2 are up as PRs, both independently reviewed before: #3529 (half context and second VGPR bank, no behaviour change) and #3530 (folded lane primitives, stacked on #3529). Whole suite on each, smoke blocks on
mainand both heads in the descriptions. @KDenKC these two are what a folded mesh entry would stack on; step 3 (the instruction driver) follows after I add tests for C76 (a mask read through a loop join) and C77 (refusal past the host's register limit).AI use: Claude Code (Claude Opus 5.5) wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T15:35:37Z.
claim: C57 (folded wave64 on 32-lane GPUs), as a re-implementation in XCL's direct DXIL translator after another project's
another project/src/fold.rsanddocs/wave64-folded.md(GPL-3.0, provenance in the files and THIRD_PARTY.md).crates/xcl/src/gpu/dxil/(lower.rs,lanes.rs,kernel.rs, a newlower_fold.rs, tests in a newfold_tests.rs),gpu/recomp/pso.rsandcompute_build_key.rsfor the entry and the cache identity,hle/d3d12x/gpu_profile.rsfor the timing labels.XCL_WAVE64_FOLD=1), 6 (images, mode registers, barriers), each as its own PR within the next days; the design note is above.I should have posted this line when I started; the work was announced in the design note and status comments here, but not as a claim. One claim per person: I do not hold another one.
AI use: Claude Code (Claude Opus 5.5) wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T15:37:01Z.
C76 and C77 are part of the C57 claim above: they are faults another project found in its own folded form, and XCL's folded form (#3529, #3530 and the steps after) has to handle the same cases. I am adding a three-way test for C76 (a mask read as a number through a loop join) and the register-limit refusal of C77 to step 3 before it goes up, so they need no separate claim; please don't take them separately.
AI use: Claude Code (Claude Opus 5.5) wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T17:30:55Z.
Candidates from another project, a GPL-3.0 sibling fork of another project (forked around 2026-11-27, no
fold.rs) reported to render correctly at about 20 fps. Public copy for provenance: another project's repository atfeb4b5fb7e20ba0d32fc6d8b70277d696e81d9da(all 370 source files identical to the release source by blob hash). Paths below are inside that repository. Read only; nothing of it built or run.What its "correct picture" and "20 fps" rest on, in short: the title's ray-tracing builder is off by default and an injected ambient pass stands in for the indoor light that would otherwise stay black (cosmetic, not emulation); dispatches over 65,535 groups are split; wave64 forms are chosen per program from an allowlist; mesh programs translate in one pass; the frame-rate gain is mostly CPU and submission work plus passes left out without ray tracing (shader code itself was under 1 ms of difference by their notes).
C81. Ambient stand-in for missing ray-traced light (
another project/src/ambient.rs,another project/src/play.rssettings). For XCL first a diagnosis, not a port: if XCL's dark interiors are the title's ray-traced GI resolving black, this explains the run-to-run dark world on #505. Worth one check before anything else.C82. Split indirect dispatches over 65,535 groups (
another project/src/indirect.rs,another project/src/emit/first_group.rs). XCL passes such counts straight toExecuteIndirect; clamping (XCL_CLAMP_INDIRECT=1) cut the picture and caused a removal here earlier; splitting keeps the work.C83. One-pass mesh with outputs pruned to what the pixel program reads (
another project/src/emit/link.rs): the route for C58; KDenKC's group owns that.C84. Per-program choice of the wave64 form with a refusal list (
another project/src/emit/mod.rs): matches C57/C77 here; one program is excluded because a half-wave form draws it wrong.C85. Static sampler order kept for driver-cached pipelines (
another project/src/pipeline/static_samplers.rs).C86. Early depth when the console tests depth before the pixel program (
another project/src/emit/mod.rs,[earlydepthstencil]): correctness and overdraw.C87. Static store analysis: skip compares and readbacks of ranges no program in a submission can write (
another project/src/written.rs): CPU side.AI use: Claude Code; Claude Opus 5.5 read the sources, matched them to the public copy and wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T19:16:41Z.
C57 step 3 is up: #3543 (instruction driver and kernel entry of the folded wave64 form, still tests only; stacked on #3530 → #3529). The C76 item is a regression test there (MASK_JOIN_LOOP), the C77 register limit is in it. Independent review found nothing blocking. Nothing in the runtime selects the form yet; we will ask for merge checks on the stack only once a later step shows a measured gain in the world.
AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T20:40:09Z.
New upstream candidates (commits since the last watch; GPL-3.0 projects; read, not built or measured here):
033c372c: a packed word written to all four channels is stored as an integer, not a float, so texels whose bits look like NaN no longer come out 0 on NVIDIA (black splotches). ~82 lines with a test. Picture.3fed39f8: keeps 512 MB of the card's budget free of texture copies; its message reports an 8 GiB card reaching 7.8 GiB and a device removal (0x887A0007) before. ~87 lines. Device loss / VRAM placement.5a1c053f: slot eviction looks for victims off the submitting thread; its message reports 57–104 ms per sweep about once a second on an RTX 4080 16 GB. ~362 lines (would need splitting). Frame-time stalls from texture streaming.ceb0c96(a cherry-pick of another project change): unread BVH nodes no longer page-fault. ~89 lines with tests. Ray tracing.66124155: draws can wait for their pipeline (another project). ~48 lines, no numbers. Pipelines.06657ea: exact synchronous submission completion for native DXR builds on NVIDIA. ~7 lines, no numbers.None of the new commits states a speed-up by a multiple; C88 and C90 look the most useful for XCL's NVIDIA runs. Not claimed by us (our claim stays C57).
AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T22:07:03Z.
another project (GPL-3.0, one squashed commit from today; read, not run): a heavy rewrite of another project. Its README claims about 29 fps calm / 17 fps busy on an RTX 5060 8 GB; per its TODO that is the Series S profile at 1080p without DLSS or frame generation, with ray tracing off (an ambient stand-in), wave64 programs run as 32-lane halves, some compute programs still dropped, and two passes left out by default. Two items for this list:
its leave-out switch). XCL has the mechanism for this in #3026 / #3302 (XCL_RT_LEAVE_OUT); worth measuring the same two passes here.another project-gpu/src/cardrank.rs), the same idea as #1766, which we are running in the world now; compare before porting.Its busy-scene breakdown (about 57 ms a frame, about 22 ms of it in the title's compute programs) is a useful yardstick for our profile run.
AI use: Claude Code (Claude Opus 5.5), with a Claude Sonnet 5.5 sub-agent reading the code.
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T22:16:25Z.
Releasing C57 (folded wave64): steps 1–3 are open as #3529 → #3530 → #3543 and stay there for anyone to pick up or review, but we park further steps until a profile shows the wave64 programs are worth it.
claim: C88 (another project
033c372c: a packed word written to all four channels stored as an integer, so NaN-pattern texels survive on NVIDIA), as a re-implementation in XCL's translator if XCL has the same store path; I'll say here if it does not apply.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T22:17:07Z.
Releasing C88: it does not apply to XCL. another project chose the store type at translate time (float by default) and needed a pattern match for the integer store; XCL picks it at run time from the class of the view's own format in both paths (HLSL
emit.rsimage store: uint/int views getuint4/int4stores, only float views useasfloat; direct DXILlower_image.rs: bits go to f32 only when the component type is F32). A NaN-pattern word written to an R32_UINT image is therefore stored as an integer already. Two small leftovers for whoever wants them: no test pins a NaN-pattern word through an integer image store (tests-only, ~40 lines per path), and a NaN pattern written to a float view still goes throughasfloat(not seen in a title; a separate change).AI use: Claude Code (Claude Opus 5.5), with a Claude Fable 5.2 sub-agent reading the code (nothing run).
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T22:17:51Z.
Correction to my release above: we keep C57 (folded wave64). Steps 1–3 are open as #3529 → #3530 → #3543, and the next steps follow once our GPU-time profile (running tonight) shows how much time the wave64 programs take. Sorry for the noise.
AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-11-30T23:39:37Z.
New upstream candidates, all from another project (another project, GPL-3.0-or-later). Note: another project took in about 1,060 commits since the last watch and the files these touch (
pipeline/make.rs,emit/lower.rs,shader_cache.rs) are another project paths, so it seems to have moved onto another project base; ports would be re-implementations. Read, not built or measured here:19be563: after the first presented frame no frame waits for a compile (a draw waits at most 50 ms, a full-screen pass 100 ms; compute pipelines on a worker). Its message: with a cold driver cache, from 2–3 fps to no per-frame stall. ~104 lines. Pipelines / frame time.9bba2a2: a wave64 program with no other form on 32-lane GPUs takes the wave-wide form; 77 of 79 refused programs translate, indirect light and shadows come back (about 23 fps vs 29 on the same walk, ray tracing off). ~65 lines. Wave64 on 32-lane GPUs / picture.c9c5354: green/black textures on 8 GB cards: a neutral (0.5) stand-in instead of null for waiting or evicted slots, eviction threshold clamped. ~50 lines. Picture / VRAM.4ffb47b: render-target aliasing off by default (block artifacts). ~16 lines; check what XCL does first.7cc0d15: the translator indexes two per-program lookups once per lowering; its message: a 13,890-block program from 25 s to 2.6 s. ~45 lines. Translation time (relevant to our hour-long cold starts).3983a1c: one giant compile (≥ 5 s) at a time, held while frames play; message cites a 41 s pipeline. ~90 lines. Pipeline stalls / watchdog risk.C96, C100 and C101 aim at the same pain as #3528/#3499 and the cold starts; C97 at the dark world.
AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T02:39:14Z.
New upstream candidates (GPL-3.0; read, not built or measured here):
ba69a9b6: turns off a default that let the GPU read the title's memory in place over the bus. Its message: 2.6–3.3 fps (about 300 ms of GPU time a frame) with it, 18.5–18.9 fps without. ~29 lines. This looks like the same kind of cost as ours: our profile on an RTX 4080 (#1766) shows about 0.8 s of GPU time per frame with even tiny programs costing milliseconds per call, which fits GPU reads of system memory. Worth checking first what XCL'sXCL_UMA_DRIVER/ coherent windows put in system memory.9c2fd42f: windows used through the heap pass count as used, so their copies are not left in PC memory (its numbers: 266 windows, 1,140 MB). ~55 lines. Memory placement.6ca29bc(ported there from another project; check provenance): host copies return their buffers to COMMON afterwards; its message: the debug layer flagged this 369,094 times in a run, ~29 copies a frame. ~200 lines.d9d53e7: no pipeline library under Wine on NVIDIA (compiles 0.4–5 fps for ~45 s before). Wine only; check XCL's path.9e405ccb: keeps 512 MB below 4 GiB for the title's 32-bit reservations (a 185 MB reservation was refused before). ~53 lines.1de7f34f: slot eviction counts dynamic slots as blocking, with a test. ~45 lines.We will look at C102 on our side first (measure where XCL's buffers live during the expensive dispatches); I'll post a claim before any code.
AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T06:47:11Z.
Releasing C57 (folded wave64) with a result: measured in the world on an RTX 4080 it brings no gain (#3543), so I closed the stack #3529 / #3530 / #3543; the branches stay on throny/xcl for anyone who wants to measure it on other hardware.
AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T07:04:21Z.
claim: C102 (another project
ba69a9b6, GPU reading title memory in place over the bus), as an investigation in XCL first: which of the title's buffers the expensive dispatches read (our profile on an RTX 4080 shows tiny programs costing milliseconds per call), whether they sit in the CPU-memory part of the coherent window, and a measured placement change if so. Moving the window's video-memory range by setting alone breaks loading (tried four placements), so this will be a code change.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T08:19:31Z.
C102 update (our claim): the mechanism of
ba69a9b6is not what makes XCL slow on an RTX 4080. XCL's per-drawio/resblocks and root tables do sit in CPU memory (the arena pool at the end of coherent window 3), but moving that pool to video memory (XCL_UMA_DRIVER=mixed:1536:1792,4032:64, no code change) left the per-call GPU time of the expensive programs unchanged within a few percent (profiled 900 s world runs). Two other leads from the same profile, being measured now:AI use: Claude Code (Claude Opus 5.5), investigation and runs by a Claude Fable 5.2 sub-agent.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T08:39:05Z.
New upstream candidates from another project (GPL-3.0; read, not built here):
2c53574+9f5dcdf: the title's ray tracing on the PC's own ray-tracing hardware (a PC ray query over structures built on the card from the title's builds), now on by default there. Its numbers: nine ray programs 3.4 ms instead of 33–190 ms on one recorded frame (RTX 4070). Large (+12.5k lines); XCL emulates the node test in HLSL today.c606106: gives up PC structures no top level names for 300 frames: structures ~630 MB over 20 minutes instead of 5.6 GB and a lost card at 13.6 min; structure-making 2–6 ms a frame instead of 21–92. Belongs with C108.Their README names what holds their frame rate now: video memory over budget (12.4–14.7 GB in use against ~10 GB on a 12 GB card), with every card pass running several times slower over budget. That matches what our profile shows on an RTX 4080 (in the world XCL stays 3.5–4 GB over the 15.3 GB budget, and full-screen passes cost 4.5–10 ms whatever the program size); our runs with less reserved video memory are on the GPU now.
AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T11:39:11Z.
New upstream candidates (GPL-3.0; read, not built here):
90f62a6: ray-tracing structure pools (32 MB chunks) with nothing in use for 120 frames go back to the card; its README: 800 MB given back in a 10-minute session. ~66 lines. The same idle rule would fit XCL's render-target pools: our runs hold about 1 GB of free target pools while 3.3 GB over the video-memory budget (#505).f9e80ae(#149 there): texture ladder, video-memory eviction and a budget pass on by default. Its own numbers show no frame-rate change (21.0 fps either way, 2–3 GB free on its test PC). ~345 lines. Low priority unless a card is over budget.ad9f92d: a per-frame texture-stream ledger line (counters only, diagnostics). ~340 lines.another project's README adds a caution worth knowing: in its open world, frames are about as slow just over budget as far over it, so it does not call the overrun the cause there. Our own data points the other way on an RTX 4080 (residency priority #3156: +50 % presents/s with the same over-budget footprint; Series S under budget: per-call times 2.5–3× lower), so the two may differ by card or by scene.
AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T19:34:24Z.
Proposal for the next large work package: the title's ray tracing on the PC's ray-tracing hardware.
Why now: another project moved the one step the console does in hardware (the ray/node test inside the title's own BVH walk) onto a PC
RayQueryover PC acceleration structures built right after the title's builds (C108/C109,2c53574,9f5dcdf,c606106). Their numbers on an RTX 4070: the frame's nine ray programs 3.4 ms instead of 33–190 ms, ~36,000 real hits instead of a few hundred, and the picture whole. XCL still emulates the node test in HLSL, and native hardware features are where all current projects leave the most on the table (wave64 on 32-lane GPUs, two-pass mesh, emulated ray tests).What exists in XCL already: @rison1337's stack (#2186 → #2187 → #2188 → #2189, plus #1815's timing test) builds native acceleration structures and connects one verified shadow traversal to an opt-in
RayQuerybound for #1751. It conflicts withmainnow, and #2189 says no retail fps gain is established yet.Suggested shape (each a PR under the size rules):
RayQuery, behind a switch, as another project does — the title's walk, hit filters and shading unchanged;XCL_GPU_PROFILE), presents/s, and the dark-world rate.@rison1337, would you lead or co-lead this, since it builds on your stack? We can run every step in the world on an RTX 4080 and do merge checks. Please say here who takes which step before coding, so nobody duplicates it.
AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-01T20:13:11Z.
@throny +1 to making this the next package. Here is where we stand, and why we think it is essential rather than an extra.
What we have been chasing (RTX 5090, the first interior scene). Our goal has been the dark areas: the cell's window, its walls, the characters, the grain.
Why ray tracing is most likely essential. In the build we run, the title's indirect light (probes, bounce, reflections) and the shadows of its lamps and sun come from its own ray tracing in compute code: builder programs that build and refit its structures every frame, trace programs that walk them, and the one node test (
IMAGE_BVH*_INTERSECT_RAY) that is hardware on the console. A prior implementation's notes say the same and describe the result without working hits: everything the sun does not reach directly goes black (interiors, the shaded side of a face, lamp-lit rooms). That is exactly our picture: the sunlit yard looks right; the room and the characters' shaded sides do not. We have found no path in this build that lights interiors without it, so we do not expect a correct world without ray tracing. We read it as part of "the picture is right", not only as a speed-up.What a first look at xcl shows (code + our logs, not yet a world measurement).
What we are doing now / can take.
In short: we think ray tracing has to stay on for the title to be playable (without it the interiors and everything out of direct sun stay black), and we don't think the project reaches the performance it is looking for unless the ray programs get far cheaper than today's emulated node test. Both point at the same package: correct hits first, then hardware-speed ray tests.
One note on the source: the fork you cite is no longer reachable on GitHub (HTTP 451 for us today), and we found no public mirror with C108/C109 (
2c53574,9f5dcdf,c606106). So unless someone still holds those commits under their GPL-3.0 terms, step 2 likely means rebuilding the approach from your description on top of rison1337's stack rather than porting it; given the takedown, a clean rebuild may be the safer route for XCL anyway.AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T20:15:59Z.
@KDenKC thanks, that settles why: if the title's interior light and lamp shadows come from its own ray tracing, then a node test that misses (or builder stages running on stand-ins) gives exactly our picture, sunlit yard right and rooms black. One data point from our side that fits: on an RTX 4080 our runs alternate between a dark and a lit start room (about a quarter dark today), so a partial structure build decided once per run is a good suspect for that too.
Split as you propose: you take the module tagging, the bit-exact node-test reference and step 4 on the 5090; we run every step in the world on the RTX 4080 (Ada, 16 GB) with
XCL_GPU_PROFILEand the dark/lit grade, and do merge checks. Steps 1–3 wait for @rison1337's answer on whether he leads them on top of his stack; if he does not answer by tomorrow, we'll start step 1 (rebasing #2186/#2187) and claim it here first.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-01T20:16:29Z.
@throny one addition to the comment above, since edits don't notify: in short, we think ray tracing has to stay on for the title to be playable, and that the project won't reach its performance target unless the ray programs get far cheaper than today's emulated node test. Also, the fork you cite answers HTTP 451 for us now and we found no public mirror with C108/C109, so step 2 likely means a clean rebuild of the approach rather than a port. Details are in the edit.
AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-01T20:18:46Z.
@throny on ordering: before we take a ray-tracing step, we have committed to the unified native mesh path you asked for under C4. @Kalmarv's direct-DXIL wave64 mesh translator will come as its own PR stacked on our #3327 (runtime / PSO / ExecuteIndirect plumbing and the two-pass fallback; rebased on
maintoday, head1e65e6a2), and we review and test that pair in the world first. Until then, on ray tracing we keep to measuring (the pipeline counts and the whole-frame trace above) and the step-4 runs; we'll say here before starting any code step so it doesn't overlap with @rison1337 or anyone else.AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T20:39:12Z.
New upstream candidates from another project (another project, GPL-3.0; read, not built; no numbers in their messages):
3cf0c18: when a texture's mips are marked dirty, read only the byte span of the selected subresources from title memory instead of the whole texture (falls back to a full copy otherwise), with a test against the full detile. ~170 lines. Possibly relevant to the missing glyph letters (#1049: CPU-written textures in an unwatched range).606b788: sparse shadow refreshes keep separate ranges per submission instead of one min/max span that merges unrelated ranges. ~415 lines (would need splitting). Same area.e5759a8, host-RAM snapshot pool under memory pressure, is small and host-RAM only.)another project's newest commit is a squashed import of a whole new project ("another project", ~238k lines), nothing to port as such.
AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T22:13:28Z.
@KDenKC agreed on both: ray tracing stays on, and step 2 is a clean re-implementation in XCL, not a port. We read that approach before it went offline, so we can write it up as a short design note here (where the PC structures come from, how the node test is answered from a
RayQuery, the lifetime rule for unnamed structures, the numbers it reported) as a basis for whoever takes step 2 — words and measurements only, no code. I'll post it tomorrow unless you already have one.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-01T22:17:33Z.
@throny findings so far on our side of the split (RTX 5090, read from our logs and code; the in-world runs that test the fixes are next on our rig).
The title's own ray tracing runs here, so true ray tracing is open to us. Layers that turn ray tracing off on NVIDIA do so because the title's BVH builder (64-lane programs) is refused there; every ray then misses and the interiors need a stand-in light. In XCL on the 5090 nothing is refused: in our room run 1,531 compute pipelines were made, 0 refused, and the 64-lane programs run in XCL's split 2x32 form (106 programs), with console threads taken from a group counter, so NVIDIA's 2-D warp layout does not split console waves wrongly. So the job here is to make the title's own rays correct (and then fast, your step 2), not to replace them.
What is wrong today, found so far:
bvh_intersectand the direct-DXIL lowering check the barycentric signs but never the sign of the distance; hardware reports hits ahead only. A shadow ray that starts on a surface then counts the triangles behind it as blockers, which would darken exactly the indirect-lit and lamp-shadowed areas. Fix: 9 lines (t >= 0 for det > 0, t <= 0 for det < 0), with our own test (a triangle ahead is hit, one behind the origin is missed, both windings, both shader paths); it fails without the fix. Checked against a broader set of ray/node cases, behind-origin hits went to 0 and agreement rose from 436 to 448 of 474; the rest differ at exact box faces, triangle edges and node kinds the instruction doesn't read, reported not asserted. PR after the in-world run.XCL_RAY_UNMAPPED=1: node tests, nodes outside every window, nodes on unmapped tiles, plus box/triangle tests and hits) is in the next runs; if it is high, a fault-drain (map what rays asked for, next frame) is the next build.Module tagging (our step): builder pipelines are tagged at creation (console compute slot 62) and every builder dispatch is counted, including the ones that ran on a stand-in while their pipeline compiled; the first 16 such are logged with the present they hit. That should show directly whether a run's structures were built in part, which fits your "about a quarter of starts dark" on the RTX 4080.
Whole-frame trace: each pass is tagged as a ray program when one of its shaders has the node test, and the room's lighting inputs are followed back to the ray passes that wrote them, so the first runs show whether the interior's light depends on them, pass by pass.
Next on our rig (in order): (a) the node-test fix + the mesh-dispatch switch on a tree without #3282 (does the room brighten; hit shares and unmapped counts), (b) the same on our best tree, (c) Pipodi's #3282 placement check. We'll post the numbers here and the dark/lit grade per run.
AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T22:23:51Z.
@KDenKC the behind-origin hits are a strong lead for the dark rooms. As soon as the node-test fix and the mesh-dispatch switch are on a branch or PR, we'll run them first on the RTX 4080 (it goes ahead of our baseline runs): same save and inputs, 900 s, lit/dark grade on the wall cells, presents/s and the profile of the ray programs. Tonight's queue is measuring the dark-start rate on current
main+ #3617 as the baseline for exactly that comparison.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T02:13:58Z.
Baseline for the ray-tracing comparison, as promised: current
main1c8b5514+ #3617, RTX 4080 16 GB,XCL_RESIDENCY_PRIORITY=1, six 900 s runs of the same save and inputs overnight: 1 of 6 starts dark (left wall cells 13 % bright vs 43–66 % in the lit ones), no device removal, no draws skipped, 3.01–3.23 presents/s. When the node-test fix and the mesh-dispatch switch exist on a branch, we run the same six-run block on them.AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T02:39:45Z.
New upstream candidates (another project each; read, not built here):
5e5b56c: lazily committed allocations are split into sections of at most 64 MB, so a thread no longer waits on one large section's lock per page; its message: 225 such waits took 342 of 367 ms in one profiled stretch. ~230 lines. Worth a look if XCL's large lazy allocations hit the same single-section lock (check first).2092559: the submit thread finds the view copies that reach a written range through a sorted index instead of scanning all of them (~3,900 copies, 1.35 ms a frame saved). Large (+2.1k lines, five parts); only the index idea is worth taking, with its own measurement of XCL's copy scan.AI use: Claude Code (Claude Opus 5.5), with a Claude Haiku 5.5 sub-agent reading the commits.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T06:25:34Z.
#3011 step 2: answering the ray/node test from a PC RayQuery
Based on another project's approach (since offline), read before it went down. Numbers are its reported ones (one RTX 4070), not XCL measurements.
What the node test returns, and what XCL does today
One instruction tests one 64-byte node against one ray and returns four dwords:
XCL emulates this per node (HLSL emitter and direct-DXIL lowering), reading console-format nodes from title memory: one dependent memory step per node. Its triangle test has no
t >= 0check, so triangles behind the origin can be reported as hits.Where the PC structures come from
The title builds its structures into title memory with its own compute builder. Right after each build, two small passes read the nodes and write PC-builder input:
2n+tis triangletof noden. One PC BLAS per title BLAS, keyed by title address; a title refit is a PC refit, a title copy a copy.How the node test is answered; the walk stays the title's
Every triangle is a candidate (no culling, no opaque decision, no procedural), so the title's masks, culling, any-hit code and shading run unchanged. One RayQuery per instruction site:
The walk visits two nodes per hit triangle instead of every box. This relies on the standard console walk: its stack takes any children and stops when a pop finds none. The PC order is not strictly nearest first; the title's own nearest-hit logic keeps the closest committed hit.
Lifetime rule
The first version never gave structures up: 5.6 GB of card memory, a lost card at 13.6 minutes. Rule:
Numbers reported
Requirements
DXR tier 1.1 (checked at start; otherwise the emulated path stays), a shader-visible table of TLAS roots (16 reserved view slots), and a switch, off at first.
Risks for XCL
Suggested PR split (each under ~400 lines)
@KDenKC @rison1337 as promised; corrections welcome before anyone claims step 2.
AI use: Claude Code (Claude Opus 5.5); drafted by a Claude Sonnet 5.5 sub-agent from a read of that code, no code copied.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T07:57:26Z.
Candidates from a read of another project's code (GPL-3.0; read, not built or run; its numbers, not ours). The headline: on an RTX 4060 Ti 16 GB at 1440p output it reports 50–56 ms of GPU time per frame (16–18 rendered fps, ~10,500 draws, frame generation not counted), against ~0.8 s per frame for XCL on an RTX 4080 at 4K Series X — and its GPU time barely changes between 1080p and 1440p, so the gap is not resolution. Its per-draw cost is ~4 µs; XCL's small operations cost ~45 µs each in our profile.
RayQuery), one report 22–25 fps vs 6 in software — the same direction as the design note above.AI use: Claude Code (Claude Opus 5.5), with a Claude Sonnet 5.5 sub-agent reading the code.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T08:00:08Z.
claim: C117 (whole-program paired-lane wave64 form, including memory and LDS, on 32-lane GPUs), as a re-implementation in XCL's direct-DXIL translator. First only a prototype behind a switch on the most expensive "split in halves" program of our profile, with one in-world A/B; the PR series follows only if that program gets substantially cheaper. Builds on our earlier folded-form work (#3529/#3530/#3543).
AI use: Claude Code (Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T09:16:57Z.
C117 prototype result, and releasing the claim: a paired-lane form (one 32-lane host wave runs a whole 64-lane console wave, memory, LDS, DPP, swizzle and permlanex included) was built for the most expensive "split in halves" program of our profile and matches the split form bit for bit in a GPU test. In the world (RTX 4080, 900 s each) that program cost 19.0 ms per call paired vs 20.0 ms split — its time is its own work, not the exchange between halves. Applied to all programs it could take (154), the run got slower (3.19 → 1.06 presents/s): programs with several console waves per group (16x16x1, 256x1x1) cost 32–100 ms per call paired, cause not investigated. So on this card the exchange is not where the time goes, and a PR series is not worth it for speed as measured; the code stays on our side if someone wants to pick up the multi-wave case.
AI use: Claude Code (Claude Opus 5.5); the prototype and runs by a Claude Fable 5.2 sub-agent.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T17:43:33Z.
New candidates from another project's commits, 2026-12-02. Words only; none has been checked here yet.
bebdd4cbf+ the sender code it switches on;32331a664records the compare on that thread, +116/-2): prepared command lists are submitted by a thread of their own, not the title's. Its own numbers, one PC: frame median −0.8 to −2.0 ms, submitting thread −1.3 to −2.5 ms.2ce2bafe3+ the code it switches on): the write-watch journal is recorded in parts with its own locks, so threads wait on it less. Its own numbers: frame median −1.4 ms, submitting thread −0.8 to −1.3 ms.Low priority for XCL now: we spend ~330 ms per frame (~3 presents/s), so a 1–2 ms gain does not show yet. These are worth taking once the frame is near 33 ms. Not taken: full shader and pipeline precompilation by default (
e71aa0ef1; launcher only, no numbers), but it is close to our slow-start problem (pipelines the driver evicted are rebuilt at ~5/s, see #3633).AI use: Claude Code. Claude Haiku 5.5 read the commits; Claude Opus 5.5 wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T23:39:12Z.
New candidates from other projects' commits, 2026-12-03. Words only, not checked here yet.
3d23727, +320/-92): 64-lane programs that reach across their halves run as pairs (one host thread runs two console lanes, so the whole wave stays in one host wave); halves are used only where nothing crosses. This targets XCL's split-wave64 problem on 32-lane GPUs: halves falling out of step after skipped swaps and reading zeros (see #505,XCL_X64_ALL_MASKS). Our own paired-lane prototype (C117) showed no speed gain, but correctness is the point here.0b2b861, +316/-32): a real-GPU timing test of halves vs pairs per program. It would let us choose the layout per program by measurement.aa1aaf1/f09cb86): a fence-retired texture pool (16 MiB) and two-tier pooling, for memory over the video budget. Caution: the same project reverted its decommit part in4549a57because it broke pictures, so only the pooling is a candidate.AI use: Claude Code. Claude Haiku 5.5 read the commits; Claude Opus 5.5 wrote this.
Imported from ivall/xcl. Originally posted by throny on 2026-12-03T05:39:28Z.
New candidate from another project's commits, 2026-12-03. Words only, not checked here yet.
5ccd6e4, about 180 lines of its library code is the portable part): the pipeline library is split into a read-only base and a delta that takes the new pipelines, so a save writes only the delta. Its message: 800 MB to 1.35 GB of library rewrites in mid-game are gone. It also batches the pipeline build by shader (pixel first). This fits #3633 (runtimeruntime.plib): today that file is rewritten as a whole every 30 s while it grows (over 1 GB on the retail title). It does not make a translator change cheaper: that project also rebuilds everything after a translator bump, only faster and in parallel.AI use: Claude Code. Claude Haiku 5.5 read the commit; Claude Opus 5.5 wrote this.
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-03T06:27:41Z.
@Grimkaaah: is the FFX upscaler claim above still active? I can't find the first draft PR yet. Here is a measurement that adds to the case for it, from NVIDIA (wave32), where today's path is the recompiled console FSR4 network.
Measured: one interior frame of the retail game, PIX GPU capture, replayed with
pixtool save-event-listand NVIDIA's plugin counters (gpu__cycles_elapsed.sumper event; PIX's own timing collection fails on this capture). Total 1,752.6 M GPU cycles.dot4AddPacked, 296textureLoadin its DXIL). 99 % of its warp stalls are long-scoreboard, with one 256-thread group per SM.XCL_GPU_PROFILEput the same pass at 175-200 ms per call.Live ceiling (local ablation, not a fix): a build that leaves all 20 FSPX dispatches out (
XCL_SKIP_CSextended to console-list dispatches; the upscaled image is wrong by design) showed 827 presents over 500-1300 s of the world against 674 for the same build without the skip (+22.7 %), one 1300 s run each. A second run without the skip gave 679. That is what an interception could gain at most here, before the cost of the replacement upscaler.Setup: RTX 2070 SUPER (driver 621.40), Windows 11 26300, release build of a diagnostics branch on top of 775f6dce plus
XCL_PIX_MARKERS(b9e5c45e),XCL_DIRECT_DXIL=0(the FSPX passes through the HLSL path), Series S device type. The replay serialises events and the frame exceeds this card's VRAM, so take the shares, not absolute times.Not tested: AMD, other scenes, any replacement upscaler. These are shares from one replayed frame.
Hardware for the live runs: same RTX 2070 SUPER, build 1b93a9f5 (775f6dce plus Prime1997's split-wave64 PRs),
XCL_DIRECT_DXIL=0, 1300 s runs with scripted presses, presents counted fromXCL_ACTIVITYlines.Tool: Claude Code (Claude Opus 5.5) ran the replays and the timed runs, did the aggregation and drafted this. The PIX capture was taken by hand.
Imported from ivall/xcl. Originally posted by throny on 2026-12-03T07:50:36Z.
New candidates from today's upstream commits (screened from commit messages and diffs; not yet compared in depth with XCL's code):
631b2ed(only its AMD part): drops a phantom ~2.56 GiB reservation from the video-memory room it keeps, reuses pooled shared buffers for exact views on AMD, retires recycled command lists in one locked batch instead of one lock per list, and shrinks the spare pools on low-RAM systems instead of turning them off. About 120 lines. No numbers given. Possible fit: AMD residency and lock overhead; check against the AMD frame-time work first.3bea97f4: a load from an image the shader also stores to goes through the write view (channels picked by the destination swizzle), with a check that the host can load every UAV format. +144/-31, with tests. Fit: load/store aliasing in one shader, if XCL refuses or mistranslates that shape.d2cfd081(builds on C127): a load that may alias a store picks the read or the write view per console slot at run time instead of refusing. +146/-50. Port after C127 if that one helps.Skipped: a DRED device-removal report (XCL already has it under
XCL_DRED=1), audio, menus, and the rest.AI use: Claude Code (Claude Haiku 5.5 read the commits; Claude Opus 5.5 checked against XCL and wrote this).