[OFFICIAL] Swarm: ports from the VIctory line (GPL-3.0) into XCL #3011
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#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?
@throny on GitHub · 2026-11-27 12:11 UTC · original
Goal
Coordinate ports from the VIctory 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 (https://github.com/vuyp/gta6-pc-race) lists about 37 projects ahead of XCL on this title; nearly all descend from one Rust code line: VIctory, victory-fork and, built on them, Vice-Tay, 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)
THIRD_PARTY.md. GPL-3.0-only files stay GPL-3.0-only inside XCL.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 VIctory 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.
@throny on GitHub · 2026-11-27 12:18 UTC · original
Candidates: what the VIctory line does differently, and what to port first. From a read-only comparison of Vice-Tay
1f69d67(with VIctory63bcca4and victory-fork9a9091dwhere 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 programsvictory-gpu/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.victory-shader/src/emit/lower.rs,emit/mod.rs(~500 lines on their IR)victory-gpu/src/pipeline/make.rs(~40 lines)emit/lower.rs,pipeline/host.rs,draw.rsvictory-gpu/src/residency.rs+ rules intexture.rsvictory-loader/src/console_insn.rs(~160 lines; the file's base was ported from XCL)victory-loader/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) andvictory-formats/src/texture.rs(AMD addrlib); a Wine patch underlinux/(do not port); credits to the Belobug and fxceless 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 Vice-Tay
1f69d67victory-gpu/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 on GitHub · 2026-11-27 12:21 UTC · original
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.