CanadaZigZagBoi1/ScarlettPort
Native PC port layer for an Xbox Series X|S title: the game's x64 code runs on your CPU and its RDNA2 GPU code is recompiled for your graphics card. Bring your own files.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Ngày
#1 Repository Của Ngày
#1 Repository Của Ngày
ScarlettPort
A native Windows port layer for a next-gen Xbox Series X|S open-world title, running from your own files. No emulator. No streaming. The game's own x64 code runs on your CPU, and its RDNA2 GPU code is recompiled for your graphics card on the fly.
Progress to playable
█████░░░░░░░░░░░░░░░ 25%
boots ✅ → intro & menus ✅ → world loads ✅ → world renders 🔨 → gameplay ⏳ → 30 fps 1:1 ⏳
PayPal: please send as Friends & Family to avoid holds and fees.
📸 Running right now
🆕 First open-world geometry on an NVIDIA GPU

Captured from inside the open world on an RTX 3060 (Series S profile): one of the game's own render passes drawing the ground in true 3D perspective. It's an internal pass, not the final lit image yet, but it's the world rendering. Next step: the geometry passes that feed the final image.
The title's own artwork, menus and loading screens, drawn natively on an RTX 3060 at a locked 30 fps:
| Title artwork | Loading screen | Loading screen |
|---|---|---|
![]() | ![]() | ![]() |
| Lucia loading screen | ||
|---|---|---|
![]() |
| First-boot setup | Legal notices | Terms & policies |
|---|---|---|
![]() | ![]() | ![]() |
Gameplay screenshots go here the moment the world renders. Watch the repo ⭐ so you see it first.
🚦 Where we are
| Stage | Status | Notes |
|---|---|---|
| Executable loads, imports bind | ✅ | 0 missing imports; the game's 16 console DLLs load |
| Intro, setup and menus | ✅ | 30 fps, audio plays |
| Shaders translate | ✅ | all 26,084 programs in the pack translate (XCL) |
| Exposure / tonemapping chain | ✅ | all 36 luminance & tonemap shaders translate |
| Open world loads | ✅ | world packs stream in through DirectStorage |
| Open world renders | 🔨 | the current wall: black screen after loading (see below) |
| Gameplay | ⏳ | |
| 1:1 at 30 fps on a mid-range PC | ⏳ | the goal |
The current wall: the first seconds in the world
The game boots, runs its menus, loads the open world (peds and cars spawn, and the in-world audio plays), and then dies within seconds. We've narrowed down why:
- When the world starts, the game asks for ~10,000 GPU programs at once. Compiling them on NVIDIA takes far longer than the game will wait.
- If those draws wait for their programs, the game's own 30-second watchdog decides it has hung and quits.
- If those draws are skipped, their outputs are never written. Later GPU work reads that garbage (e.g. indirect draw counts), runs far past Windows' 2-second GPU timeout, and the device resets.
The fix is to have every program compiled before the game starts. setup.ps1 -Game <dump> now precompiles the whole shader pack and the GPU pipelines once (about 45 minutes; it's resumable). Making that faster and complete is task #1 below.
New: play.ps1 now turns off the game's stall watchdog (XCL_NO_WATCHDOG), so the game waits out slow first-time shader builds in the world instead of quitting. The first world load is slow while the cache fills, but it no longer dies.
Latest (Nov 24):
- World asset streaming fixed. Map, prop and VFX files failed to load once the world started, because requests went out before the game had filled in where the data goes, and the game then waited forever. Requests now wait briefly for the game to finish, and the runs since have had zero failed loads.
- Unlit mode (
XCL_FLAT=1). Big lighting shaders get a tiny flat grey stand-in, so the world can show without waiting on NVIDIA's slow compiles. Menus and loading screens keep their real shaders. - Pipeline journal. Every GPU pipeline the game creates is recorded, even in runs that crash, and
xcl pipelines <game>builds them all ahead of time. This is the path to a one-time "build shaders" step instead of compiling at world start. - Native launcher. One exe with the runtime built in: download it from Releases.
- World-start GPU crash fixed. A two-pass mesh draw used to fall back to a draw that read from address 0 and reset the GPU. That draw is now skipped safely (upstream #1124 plus our indirect-draw guard), and the game survives 7+ minutes in the world on an RTX 3060.
- New in the runtime: a boot splash from your own game files, click-to-capture mouse with a remappable keyboard layout, local profiles, achievement recording with pop-ups, windowed/borderless/fullscreen with an FPS cap, mute on Alt+Tab, and automatic crash reports.
- Launcher: a Display settings page, automatic save backups before each Play, and a crash notice.
- Current wall: the world's draws now run, but the final image stays black, and memory reaches ~29 GB committed at world start. Drawing the two-pass mesh calls (
XCL_TWO_PASS_INDIRECT=1, off by default) still resets the GPU on some runs.
Already fixed in this repo's runtime: the 64-bit wait ordering (black screen), the BCPack texture decoder (empty world textures), the CopyFromSubresource crash at the end of loading, and runaway shader loops.
🚀 Run it
You need your own unpacked Xbox Series copy of the game. This repo contains no game files of any kind, and never will.
Requirements: Windows 10/11 x64 · a D3D12 GPU with Shader Model 6.6 and mesh shaders (RTX 20-series / RX 6000 or newer) · 32 GB RAM recommended · Rust (stable MSVC) · Windows SDK (for DXC)
git clone https://github.com/ZigZagBoi1/ScarlettPort.git
cd ScarlettPort
.\scripts\setup.ps1 -Game "D:\path\to\your\dump" # build + Agility SDK + precompile all shaders (~45 min, once)
.\scripts\play.ps1 -Game "D:\path\to\your\dump" -AutoMenu
-AutoMenupresses A for you so the menus advance without a controller.- While the game runs, write button names into
press.txt(e.g.DOWN DOWN A) to press them. Handy for scripting and for AI agents testing a build. - Logs go to
logs\. Attach one when you open an issue. - Controls: an Xbox controller works best. On keyboard and mouse, Enter = A, Esc = B, WASD = left stick, and the mouse moves the right stick.
Want the build that currently shows the menus? See docs/RUNTIMES.md.
🤖 Task board: grab one, send a PR
Every task is sized for one person + one AI coding agent. Pick one, comment on its issue to claim it, and send a PR. Read CONTRIBUTING.md first (it takes two minutes).
🔥 Critical path to gameplay
- #1 Zero shader compiles at world load.
setup.ps1 -Gameprecompiles the pack; make sure the world's programs are then all cache hits at runtime (compiling shaders: N doneshould stay at 0). Find what still misses (graphics pipelines, mesh passes, split-wave64 variants) and precompile those too. - #2 Keep the watchdog fed. While a program is still building, keep the game's main-thread heartbeat alive without skipping work. See
pso_async.rsand issue #505 in the XCL repo for the watchdog's address and logic. - #3 Never read garbage from a skipped dispatch. When a dispatch is skipped, zero or clamp the indirect-argument buffers it would have written, so an
ExecuteIndirectcan't run for minutes. - #4 Mesh pipelines with the MS in the AS slot. The game uses these and upstream XCL refuses them; an experimental translation exists in the git history. Make them draw correctly.
🎨 Rendering
- #5 Why do VIctory's newer wave64 builds render black menus? VIctory PR #439 and #414 builds draw black, while the older
wave64-emulationbuild shows the menus. Bisect it. - #6 Clear VIctory's remaining shader failures. The biggest groups are SGPR addresses that aren't root parameters (195), wave64 groups larger than 64 threads (155), and descriptors read from computed VGPRs (138).
- #7 Faster wave64 on NVIDIA. Console 64-lane programs run as two 32-lane halves. Profile them and cut the overhead.
⚡ Performance
- #8 Memory copy bottleneck. Up to ~600 ms per frame goes to copying title memory in world scenes. Batch it, use async copy queues, or skip clean pages.
- #9 Shader cache warm-up script. Ship a script that fills the cache offline so first launch isn't a slideshow.
🧰 Tooling & docs
- #10 One-click launcher. A
.bator small GUI that finds the dump, runs setup if needed, and starts the game. - #11 Hardware reports. Run it on your GPU and post results (GPU, driver, fps, how far it got) to the pinned issue.
- #12 CI. Build both runtimes on Windows on every PR.
🗂️ What's in here
ScarlettPort/
├── scripts/ setup.ps1, play.ps1: build and run
├── runtime/
│ ├── xcl/ main runtime: console OS, D3D12.X, RDNA2 → HLSL → DXIL recompiler
│ └── victory/ second runtime: RDNA2 → DXIL directly; currently shows the menus
├── patches/ our changes to each runtime, as plain diffs (easy to review and upstream)
├── docs/ STATUS, RUNTIMES, technical findings
└── assets/ screenshots
⚖️ Legal
- This project contains no code, assets or files from the game or its publisher, and no console SDK code. You must own the game and provide your own dump.
- Nothing here decrypts, unpacks or bypasses DRM.
runtime/xclis GPL-2.0-only, © the XCL authors.runtime/victoryis GPL-3.0-or-later, © the VIctory authors. Each keeps its ownLICENSE. SeeLICENSE.md.
If this got you hyped, star it ⭐ and share it. Every PR gets us closer to playable.
Similar Projects
Discover other similar projects and AI models.
Silent Hill: Downpour — native Windows PC port via static recompilation of the Xbox 360 binary. v1.0 stable: 60 FPS unlocked, ROV warm-cache, standalone launcher, DualSense adaptive triggers, portable saves. Tested on USA + Europe X360 dumps.
Zelda: Tears of the Kingdom (TotK) 1.0.0 recompiled to native Windows and Vulkan. Frame cap up to 240, DLSS option, mouse and keyboard. Open source, mostly written by AI agents. You build it from your own dump; no game files included. Measured on one PC so far.
Native Windows PC port of God of War (PS2), built by statically recompiling MIPS R5900 code to C++ with PS2Recomp. Includes an installer launcher, one-click build, fan-translation support and a 60 fps target. No game files included: you need your own copy.
Native Windows port of Dead or Alive Xtreme Beach Volleyball (Xbox), built by static recompilation with a hand-written runtime. Requires your own copy of the game.
Deadly Premonition (Xbox 360) native PC port by static recompilation - v2.0.14: native DirectX 12 renderer ready for testing (up to 4x internal resolution); 60 FPS, mouse look, keyboard driving, FSR 3, ISO installer, PAL + USA
Ratchet & Clank: Tools of Destruction native PC port (PS3 static recompilation) – 4K, 60 fps, DualSense, Windows
Estacado: a native PC recompilation of The Darkness (Xbox 360). Unofficial fan port; bring your own copy of the game.
Unofficial native Windows port of Star Wars: Episode III - Revenge of the Sith (Xbox). Bring your own copy.
Xbox Series compatibility layer for Windows - runs console game code natively, reimplements the console system libraries and recompiles RDNA2 shaders to DXIL






