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 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.

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 ivall/xcl

Environment Variables Reference

  • 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_LAZY_PSO=0: Disables background pso_async::lazy compilation for synchronous PSO testing.
  • XCL_DRED=1: Enables Direct3D 12 Device Removed Extended Data breadcrumbs to pinpoint GPU page faults or hangs.
  • XCL_FRAME_DUMP=<N>: Captures render targets and state on frame N when diagnosing missing draws.

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.

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?

By default XCL uses pso_async::lazy to compile pipeline state objects on background threads while returning a temporary stand-in PSO so menus appear in ~4 seconds. Setting XCL_LAZY_PSO=0 forces synchronous pipeline creation on the calling thread for deterministic shader debugging.