XCLGTA6.wiki Can I Run XCL?

How to Build XCL: Cargo, DXC 1.9 & Setup

Pick your workflow, Windows version and PSO compilation mode below to generate the exact PowerShell snippet from the xcl-dev/xcl (formerly ivall/xcl) README. Remember: you must supply unpacked files from an Xbox Series game you legally own.

Commands come straight from the ivall/xcl README. XCL never alters your unpacked game folder.

Binary outputtarget\release\xcl.exe
Overlay & logs%LOCALAPPDATA%\XCL\
Recommended DXC1.8+ or 1.9

PowerShell build & run snippet

$env:XCL_DXC_DIR = "C:\dxc_1.9\bin\x64"
cargo build --release --workspace
target\release\xcl.exe run D:\Game
Tip: Opening xcl.exe from Explorer shows a game picker

Running xcl.exe without arguments opens a small menu ('Choose a game...' or 'Run again') and writes logs\report.json after every run.

Advertisement

Why Standalone DXC 1.9 Cuts Startup & PSO Time (Issue #156)

XCL loads dxcompiler.dll and dxil.dll at runtime to compile generated HLSL into Shader Model 6.6 DXIL. If you only have an older Windows 10/11 SDK installed, XCL may pick up DXC 1.7, whose aggressive loop unrolling inflates complex RDNA2 compute shaders.

Benchmarks documented in issue #156 show why downloading the latest standalone DirectXShaderCompiler 1.8+ / 1.9 release and setting XCL_DXC_DIR is strongly recommended, especially on NVIDIA RTX cards:

Metric (#156 Benchmark)Old Windows SDK (DXC 1.7)Standalone DXC 1.9
Compiled compute DXIL size~106 KB (2.0x to 2.7x larger)~39 KB (compact loops)
NVIDIA CreateComputePipelineState1.4x to 2.2x slower driver compileBaseline fast driver compile
SM 6.6 Wave64 codegen stabilityOlder optimizer quirksRecommended by xcl-dev/xcl

Environment Variables & New CLI Tools

  • XCL_DXC_DIR: Folder containing standalone dxcompiler.dll and dxil.dll (DXC 1.8+ / 1.9).
  • XCL_D3D12_DIR: Folder containing Microsoft D3D12 Agility SDK (D3D12Core.dll) on Windows 10.
  • XCL_DIRECT_DXIL=1 & XCL_PER_LANE=1: Direct DXIL compute speedup & whole-wave vs per-lane branch toggle (PR #1836 / #1910).
  • XCL_HUGE_PSO_BYTES / XCL_HUGE_PSO_CONCURRENCY / XCL_PSO_TRACE=1: Controls background worker throttling for 4 MiB+ DXIL pipelines.
  • XCL_DSTORAGE_PARALLEL_DECOMPRESS=1: Enables 4-worker parallel DirectStorage decompression (32 MiB budget).
  • XCL_LAZY_PSO=0, XCL_DRED=1, XCL_FRAME_DUMP=<N>: Synchronous PSO mode, D3D12 crash breadcrumbs and frame dumps, plus xcl disasm & xcl rpf CLI subcommands.

Keyboard, Mouse & Controller Mapping (xcl.toml)

Any XInput controller works automatically through GameInput. Without a controller plugged in, XCL maps keyboard and mouse inputs to a virtual Xbox Series pad (customizable in xcl.toml):

Xbox ControlDefault PC Key / Input
Left StickW A S D
Right StickArrow keys or Mouse look
A / B / X / YSpace / E / R / F
LB / RB & LT / RTQ / C & Mouse buttons / Z X
Menu / ViewEnter / Tab

Read-Only Game Folder & logs\report.json

Whether you launch via target\release\xcl.exe run D:\Game or pick a folder from Explorer, XCL mounts an overlay directory at:

%LOCALAPPDATA%\XCL\<title>\overlay\
%LOCALAPPDATA%\XCL\<title>\logs\report.json

Your original game files stay untouched, and every run writes a clean JSON summary of loaded console DLLs, translated shader counts and any stubbed imports so contributors can compare runs reproducibly.

Advertisement

Build, DXC & Configuration FAQ

Why should I install DXC 1.9 instead of using the Windows SDK dxcompiler.dll?

In ivall/xcl issue #156, Windows SDK's older DXC 1.7 emitted 2.0x to 2.7x larger compute DXIL blobs (for example 106 KB vs 39 KB) because its loop unroller bloated wave64 shaders, making NVIDIA's driver take 1.4x to 2.2x longer to create compute PSOs. Pointing XCL_DXC_DIR at standalone DXC 1.8+ or 1.9 eliminates that bloat.

What happens if I double-click xcl.exe in File Explorer?

Running target\release\xcl.exe with no CLI arguments opens XCL's built-in game picker ('Choose a game...' or 'Run again' for recent folders) and writes a structured logs\report.json after each session.

Where does XCL store save files, shader caches and crash logs?

Everything lives under %LOCALAPPDATA%\XCL\<title>\: writes from the game go into overlay\, and diagnostic reports go into logs\report.json. Your unpacked game directory is never altered.

How do I play with keyboard and mouse if I have no Xbox controller?

XCL supports both XInput controllers and a clean keyboard/mouse gamepad mapping configured via an optional xcl.toml file next to your run directory (WASD left stick, Arrow keys or mouse look right stick, Space = A, E = B, R = X, F = Y).

What does XCL_LAZY_PSO=0 do, and how are huge 4 MiB+ shaders handled?

By default XCL uses pso_async::lazy to compile pipeline state objects on background xcl-pso* threads while returning a temporary stand-in PSO so menus appear in ~4 seconds, gating 4 MiB+ DXIL blobs onto a dedicated lane requiring 3 GB of free commit. Setting XCL_LAZY_PSO=0 forces synchronous pipeline creation on the calling thread.

What do XCL_DIRECT_DXIL=1, xcl disasm and xcl rpf do?

Added in xcl-dev/xcl PR #1836 and #1910, XCL_DIRECT_DXIL=1 enables direct DXIL emission with whole-wave native compute branches (pair with XCL_PER_LANE=1 to test per-lane lowering). On the CLI, xcl disasm inspects RDNA2 shader disassembly and xcl rpf lists or inspects RPF archive entries.