- C++ 66.5%
- Python 21.3%
- PowerShell 12.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Fresh compiles per run are flat at 221/211/239 while only 16-31 driver blobs persist, so each run redoes the same work and the cache frontier does not advance. In-flight maximum is 1 from 180 s onward at ~20 s per compile (~3/min), which is why raising the stall tolerance moves the abort rather than the load. The rate curve falls 290/137/9/5/2/1 per minute and never rises. Levers: persist more blobs (5 ms vs 20 s) and admit more concurrent compiles; patience is arithmetically short. |
||
| .github | ||
| docs | ||
| patches/xcl | ||
| tools | ||
| .gitattributes | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| POSTING-POLICY.md | ||
| README.md | ||
xbox-hle-lab
Tools and methods for Xbox Series compatibility testing: GPU-PV VMs, capture probes, root-signature oracles, source watching, and the lab playbook.
Nothing here contains game binaries, game assets, decryption keys, or leaked packages. XCL changes are distributed as patches against the upstream GPL-2.0 project, not as a fork.
Status
The title now runs at 30 FPS by the runtime's own present-rate counter: 30.7 presents/s
instantaneous and 17.8 presents/s averaged over a full run, against a previous best of 8.4/s and
2.5/s on most runs. The run is upstream main 63cdc25 plus our sub-2^40 placement fix alone — no
compute-wait bound, no tolerance patch. The 40-bit BVH address wall is cleared in that same run
(XDXR count 0, four acceleration structures accepted, the first at 0xed8b010000), and the GPU
driver's compiled pipeline blobs now persist and replay: N compute pipelines made from the driver's blob of an earlier run (kept on disk), with per-PSO lines reading like … (86776 B DXIL, 5 ms, the driver's blob of an earlier build) where the same pipeline cost 681 ms to build cold.
What is still missing is the picture. The screen shows front-end key art and menus, never a world
render, and a run still ends when the title's own stall detector fires: 0xc0000005 at
+0x23cf683 after a ~40 s stall. The last run presented 1 639 frames in 133 s. See
docs/WHAT-STOPS-THE-LOAD.md for the mechanism and what is ruled out,
and docs/STALL-DETECTOR.md for the two rules behind the abort. The compile
load that fills that stall is priced in docs/PIPELINE-DEMAND.md: ~200
fresh compiles per run, one in flight after startup, ~3 per minute.
Three changes produced this run, and only three. Payload integrity: the payload is staged and
checked before the title starts, so these figures describe the title's own behaviour. Address
placement: the runtime now decides where its large write-watched reservations go, keeping their GPU
views below 2^40, instead of walking eight fixed hints into the block it had just placed
(docs/BVH-WALL-CLEARED.md). Driver blob cache: pipeline blobs
written by an earlier run are found and reused — 5 ms replay against 681 ms cold, 29 → 56 entries
across two runs — so a run spends its time presenting rather than rebuilding pipelines.
Cleared batches are published by a deterministic runner and merged automatically when the pull request head is exactly the cleared commit; external pull requests are reviewed by hand.
Contents
| Path | What |
|---|---|
tools/gpu_probe/ |
device/UMA/present probes, root-signature deserializer oracle |
tools/vm/ |
App Sandbox VM automation (create, GPU assign, exec, file push) |
tools/watch/ |
source registry + head/delta watcher |
docs/ |
lab playbook, race kit, verification reports |
patches/xcl/ |
GPL-2.0 patches for ivall/xcl (d3d12_xs VM config, xmem virtual alloc) |
Quickstart
1. Build the probes
tools/gpu_probe/*.cpp are single-file programs. From an x64 Native Tools prompt (MSVC
2019/2022), in tools/gpu_probe:
cl /nologo /O2 /MT /EHsc main.cpp /link d3d12.lib dxgi.lib user32.lib
cl /nologo /O2 /MT /EHsc uma_probe.cpp /link d3d12.lib dxgi.lib user32.lib
cl /nologo /O2 /MT /EHsc present_probe.cpp /link d3d12.lib dxgi.lib user32.lib
cl /nologo /O2 /MT /EHsc rootsig_check.cpp /link d3d12.lib user32.lib
/MT (static CRT) is deliberate: a VC++ runtime DLL dropped beside a game folder can be
misclassified as a game DLL and break the loader. Then:
gpu_probe.exe :: adapters, VRAM, feature level, wave lanes, tiers
uma_probe.exe :: 4 GiB-aligned 2 GB region as a D3D12 heap
present_probe.exe 12 0 :: 12 s clear/present, sync interval 0
rootsig_check.exe blob.bin :: deserialize a root signature blob
2. Point the VM scripts at a lab root
Set LAB; nothing else needs editing:
$env:LAB = "C:\lab"
Expected layout under LAB: tools\appsandbox\extracted\headless-api (App Sandbox asb SDK),
iso\Windows.iso (guest installer), and vm\appsandbox-vm.json (generated connection record —
git-ignored, never commit). With LAB unset the scripts resolve relative to the current directory.
python tools\vm\create_vm.py # create guest, wait up to 40 min for it online
python tools\vm\assign_gpu.py # snapshot, stop, gpuMode=1, boot
python tools\vm\vm_exec.py "cmd /c ver" 60 # one command over SSH (session 0)
python tools\vm\push_file_cmd.py build\gpu_probe.exe C:/lab/gpu_probe.exe
3. Watch upstream heads
powershell -File tools\watch\sweep.ps1
Needs git on PATH and network; ~20–40 s; spawns no agents. Writes
notes\watch\state.json and notes\watch\latest.json, and appends
notes\watch\deltas.md. These generated files are git-ignored.
Principles
- Evidence before claims: every result carries a hash, a log, or a measurement.
- No host execution of untrusted console binaries; VMs only.
- Console flags are captured before sanitising; null-backend results are rejected as evidence.
- No game data in this repository, ever.
Contributing
Read CONTRIBUTING.md before opening a pull request. Bug reports and first-run
reports have templates in .github/ISSUE_TEMPLATE/.
Licence
Licences apply per scope; each covers only its own paths.
| Scope | Licence | File |
|---|---|---|
tools/** — original code |
MIT | LICENSE |
docs/** — documentation |
CC BY 4.0 | docs/LICENSE |
patches/xcl/** — xcl patches |
GPL-2.0 | patches/xcl/COPYING |
The root MIT licence does not relicense the GPL-2.0 patches, and the documentation licence covers prose, not code.