Repository navigation
Description
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)
- A port is a normal PR: one logical change, under ~400 lines where it can be split, tests, the whole suite, smoke blocks, Tested / Not tested, AI use named.
- Port the mechanism, not the tree: adapt to XCL's modules and switches (new behaviour behind a switch first when it changes what a title sees).
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)
- GPU-bound frames: about 2 presents per second in the world with the GPU at 100 %; a GPU profile by another tester puts nearly half of the title's GPU time into the pieces of split compute programs.
- Memory: 45-58 GB of process commit and video memory at the budget, because the title's GPU heaps and textures are backed 1:1.
- Pipelines: large compute pipelines take 10-30 s each to create on some drivers even from a stored blob; draws and dispatches are skipped or stall meanwhile.
- Two-pass geometry buffers hit their cap and drop draws.
- Stability: device removal at the driver's shader-heap limit (NVIDIA: the device is removed when the pipelines in use need more than 512 MB of shader code (0x887a0005) #2403), and a black world on Intel CPUs since PE loader: a title's CLZERO loops run as native code on a CPU without CLZERO #2892 (being looked at there).
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
- The licence itself (Licence question: GPL-3.0 (or 2.0-or-later) so code can move between XCL and the other project line? #3002).
- Work that is not a port: the existing official issues stay where they are ([OFFICIAL] Swarm: cold PSO compilation to first playable frame #2088 for cold pipeline compilation).
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.
Activity
throny commentedon Nov 27, 2026
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.
VolenNakov commentedon Nov 27, 2026
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.
throny commentedon Nov 27, 2026
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.
throny commentedon Nov 27, 2026
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).ClosetPie107 commentedon Nov 27, 2026
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 D3D12.X: share dispatch-chain root signatures per device and key compute blobs on NodeMask #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 (Shader: key every heap handle cache by element type (#177 on main, fixes the NVIDIA compute-pipeline crash) 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.
coolpersonnn commentedon Nov 27, 2026
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.
VolenNakov commentedon Nov 27, 2026
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.
vitor127wt commentedon Nov 27, 2026
Thats weird. The VItory repo seems stalled, not a single merge or commit in days.
throny commentedon Nov 27, 2026
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).
tiagonleal commentedon Nov 27, 2026
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.
tiagonleal commentedon Nov 27, 2026
Draft PR for the claim above: #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.
Decodere commentedon Nov 27, 2026
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.
UncommonDLL commentedon Nov 27, 2026
@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.
throny commentedon Nov 27, 2026
@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).pvfreis commentedon Nov 27, 2026
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.
99 remaining items
Shaders: a short list of earlier-used shaders no longer shrinks prepa…
[-][OFFICIAL] Swarm: ports from the VIctory line (GPL-3.0) into XCL[/-][+][OFFICIAL] Swarm: ports from other GPL-3.0 projects into XCL[/+]Recompiler: align two-pass mesh group indices to whole waves
throny commentedon Dec 1, 2026
@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).
KDenKC commentedon Dec 1, 2026
@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.
throny commentedon Dec 1, 2026
@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).
Recompiler: align two-pass mesh group indices to whole waves
Shaders: a short list of earlier-used shaders no longer shrinks prepa…
throny commentedon Dec 2, 2026
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).
throny commentedon Dec 2, 2026
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.
Recompiler: align two-pass mesh group indices to whole waves
throny commentedon Dec 2, 2026
#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.
throny commentedon Dec 2, 2026
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.
throny commentedon Dec 2, 2026
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).
throny commentedon Dec 2, 2026
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.