Latest on ivall/xcl (7,280+ stars, PR #1211+): lazy background PSO creation (pso_async::lazy) is now default on main, all 26,698 retail shaders translate, and menus start in ~4 s at 30 fps.
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.
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
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 CreateComputePipelineState | 1.4x to 2.2x slower driver compile | Baseline fast driver compile |
| SM 6.6 Wave64 codegen stability | Older optimizer quirks | Recommended by ivall/xcl |
Environment Variables Reference
XCL_DXC_DIR: Folder containing standalonedxcompiler.dllanddxil.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 backgroundpso_async::lazycompilation 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 frameNwhen 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 Control | Default PC Key / Input |
|---|---|
| Left Stick | W A S D |
| Right Stick | Arrow keys or Mouse look |
| A / B / X / Y | Space / E / R / F |
| LB / RB & LT / RT | Q / C & Mouse buttons / Z X |
| Menu / View | Enter / 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.