Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

PastiiJay/klbf-lab

Games

Run an Xbox Series build of a GDK game on Windows from your own files, with AMD-focused rendering fixes.

62
7
Rust
GPL-3.0
new today

What it is

KLBF Lab is a Rust-based GDK compatibility layer that lets the Xbox Series X|S (Scarlett) build of a supported game run natively on a Windows PC, using the files from your own legally obtained copy. It implements kernelx, xgameruntime and d3d12_xs on top of host D3D12, translates RDNA2 shaders to DXIL, and folds in fixes from several open compatibility projects plus its own AMD Radeon, water-physics and pipeline-prebuild changes. Optional AMD FSR upscaling is wired through AMD's official FidelityFX SDK.

The project is derived from VIctory and fxceless/victory-fork and keeps their GPL-3.0 notices; ported fixes include work from myokex/victory-amd.

Current status

The published results cover one machine: an RX 9070 XT 16 GB, Ryzen 7 9800X3D, 32 GB RAM on Windows 11. With the recommended settings the title renders at 1280×720 and FSR upscales to 1080p, reaching roughly 7.3 fps in the opening cell and about 5.7 fps through the prologue; native resolution is around 5 fps. The prologue and Jason's first mission plus free roam were reached, with no crash in one 74-minute test of Lab 35 with the camera held still, or in 77 minutes of play on test build Lab 39. Rendering is still imperfect: purple tints on some flat objects, deformed faces, faint diagonal lines, and at night magenta vegetation with a very dark ground. HUD, menus and subtitles are broken in the main version and fixed in test builds on the beta branch.

Build and run

Prerequisites: Rust/Cargo, a Windows PC, your own copy of the game, and AMD's FidelityFX SDK v2.4.0 from the official releases if you want FSR. Point VICTORY_FFX_DIR at the SDK's Kits\FidelityFX\signedbin folder, which contains amd_fidelityfx_loader_dx12.dll; without it the game crashes once upscaling starts.

Build the release binary, then pre-build the shader pipelines once (several minutes, rerun until it ends without a crash):

cargo build --release
$env:VICTORY_SHADER_OPT = '0'
$env:VICTORY_SKIP_PIPELINES = (Get-Content docs\klbf\skip-amd.txt -Raw).Trim()
target\release\victory.exe translate --cache --pipelines --jobs 8 <game dir>\shaders.rpf

Then launch the title with the recommended Series S settings:

$env:VICTORY_SHADER_OPT = '0'
$env:VICTORY_SKIP_PIPELINES = (Get-Content docs\klbf\skip-amd.txt -Raw).Trim()
$env:VICTORY_LATE_WAIT = '1'
$env:VICTORY_WIDE_BACK = '1'
$env:VICTORY_PIPELINE_WAIT_MS = '24'
$env:VICTORY_RELAY_COPY_QUEUE = '0'
$env:VICTORY_FFX_DIR = '<FidelityFX SDK>\Kits\FidelityFX\signedbin'
target\release\victory.exe run --console series-s <game dir>\<title exe> --execute

With these settings the start screen and main menu stay black while the title runs behind them; press A on a controller (plugged in before launch) or Enter on the keyboard. If the device is lost shortly after world loading, try VICTORY_LATE_WAIT=0. Water checkpoints can be skipped by failing them three times on this version, since the water-physics fix only exists in test build Lab 39.

Constraints

  • You must supply your own legally obtained game files; none are included.
  • Tested on a single AMD card so far. NVIDIA, Intel and other AMD GPUs are unverified aside from a few tester reports on the archived klbf-lab-beta repository, including an RX 6900 XT, RX 6800 and a report on an RX 9070 non-XT losing the device (issue #6).
  • Performance is very low, in the single-digit fps range at the tested settings, and scene loading drops to about 0.5–1 fps.
  • Expect visual defects, occasional missing walls and the HUD/menu issues described above.
  • Several environment variables affect stability and rendering; changing them can break the picture, as noted for VICTORY_TEXTURE_BUDGET_MB.
  • Licensed GPL-3.0; redistribute under the same terms.

Reporting results

Issues with GPU, driver, runtime length, fps and visual problems go in the repository issue tracker; patch notes are in CHANGELOG.md and full logs in results.md.

HotRepo's take

No daily ranking, star curve or Hacker News discussion is recorded for this repository, so there is no popularity signal to weigh. What the material does show is a narrowly scoped, single-machine experiment: the published frame rates, stability runs and rendering bugs all come from one RX 9070 XT setup, and fixes are landing incrementally across Lab builds. For anyone considering it, the practical read is that this is a work-in-progress compatibility layer whose behaviour on other GPUs is still an open question, not a finished player-facing product.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. xcl-dev/xclRun Xbox Series X|S GDK games you own on Windows through native x64 execution and RDNA2-to-DXIL shader translation.Rust7,470
  2. boykopovar/AnyBoxA GPL-2.0 C++ compatibility layer for running Xbox Series X|S executables on Windows, still in early development.C++142
  3. Belobug/VIctory-Belobug-AMDA work-in-progress AMD Radeon fork of the VIctory compatibility layer that runs GTA VI's Xbox Series code on Windows.Rust219
  4. ivall/xclRuns unpacked Xbox Series X|S games you own natively on Windows by reimplementing console system libraries and recompiling RDNA2 shaders to DXIL.Rust7,815
  5. Freminet/ScarlettXAn experimental high-level emulator that runs legally obtained Xbox Series X|S GDK titles on Windows x64.C++105