ScarlettPort v0.5.0 on an RTX 3060 (Series S profile, ray tracing off).
## What it is
A bring-your-own-copy compatibility layer, in the spirit of Wine and Proton. No emulator, no streaming: the title's own x64 code runs on your CPU, and its RDNA2 GPU code is recompiled for your graphics card on the fly.
You supply a dump of your own legally purchased copy. Nothing of any title is included here.
## Status

```
██████████████████░░ 90%
```
**Done:** boots, gets through menus, saves and legal screens, reaches the world (in 178 s in 0.5.0) and gives you control in the opening area, with the full picture: lit rooms, ambient and sky light, complete textures.
**Remaining:**
- **Frame rate:** about 7-8 fps in the world on an RTX 3060 12 GB + Ryzen 5 5600X with a warm cache (v0.5.2, Series S profile). The goal is a playable 30 fps.
- **Stability over long sessions:** no long run has been recorded yet.
**New in 0.5.8** (fixes merged after 0.5.7, thanks to Dune, FictionHub, ifBars, FreddyxS and TalonEye):
- **Shorter frames:** landed lists are reset on a helper thread beside the relay, 15 to 22 percent shorter frames in two A/B runs. `SCARLETT_LAND_ASIDE=0` turns it off ([#587](https://github.com/ZigZagBoi1/ScarlettPort/pull/587)).
- **Fewer first-run stutters:** Prepare builds the pipelines a run is most likely to need first, seeded from the game's own pipeline cache, so the first Prepare takes longer (about 20 minutes). The launcher then builds the rest while it is idle on AC power; Play, battery or the Settings toggle stops it, and Pause now pauses every process ([#641](https://github.com/ZigZagBoi1/ScarlettPort/pull/641), [#643](https://github.com/ZigZagBoi1/ScarlettPort/pull/643), [#623](https://github.com/ZigZagBoi1/ScarlettPort/pull/623)-[#626](https://github.com/ZigZagBoi1/ScarlettPort/pull/626), [#664](https://github.com/ZigZagBoi1/ScarlettPort/pull/664)).
- **Crash and stability fixes:** the right graphics card on PCs with two, while laptops keep the dedicated one ([#596](https://github.com/ZigZagBoi1/ScarlettPort/pull/596)); one retry when D3D12 runs out of memory ([#612](https://github.com/ZigZagBoi1/ScarlettPort/pull/612)); a pipeline asked for by two threads is made once ([#607](https://github.com/ZigZagBoi1/ScarlettPort/pull/607)); a stuck shader warm-up stops after 120 s ([#600](https://github.com/ZigZagBoi1/ScarlettPort/pull/600)); a damaged scarlett.toml is set aside ([#606](https://github.com/ZigZagBoi1/ScarlettPort/pull/606)); a 32-bit DLL beside the game is passed over ([#601](https://github.com/ZigZagBoi1/ScarlettPort/pull/601)); clearer out-of-memory messages ([#605](https://github.com/ZigZagBoi1/ScarlettPort/pull/605)); run logs capped at 10 MB ([#611](https://github.com/ZigZagBoi1/ScarlettPort/pull/611)).
- **Rendering:** pixel shaders keep the console's early depth test ([#662](https://github.com/ZigZagBoi1/ScarlettPort/pull/662)), constant buffer views off 256 bytes ([#621](https://github.com/ZigZagBoi1/ScarlettPort/pull/621)), command queue suspend and resume ([#620](https://github.com/ZigZagBoi1/ScarlettPort/pull/620)), hull, domain and geometry shaders in the warm-up ([#613](https://github.com/ZigZagBoi1/ScarlettPort/pull/613)).
- **Mods folder** (off by default): files in a mods folder replace game files when they are read, never written into the game folder ([#629](https://github.com/ZigZagBoi1/ScarlettPort/pull/629)).
- Launcher: solid scrollbars in Settings ([#591](https://github.com/ZigZagBoi1/ScarlettPort/pull/591)); the hardware report form keeps launcher details ([#599](https://github.com/ZigZagBoi1/ScarlettPort/pull/599)).
**New in 0.5.7** (fixes merged after 0.5.6):
- **Less memory, fewer out-of-memory crashes:** when Windows memory is close to its limit, the engine now frees spare memory and trims its caches, and a texture table that only ever grew is cleaned up as memory is freed. This targets the most common crash in reports and the slow fps drop over long sessions ([#370](https://github.com/ZigZagBoi1/ScarlettPort/pull/370)).
- **Mouse look** now starts after a click in the game and lets go on Alt+Tab, when the pointer leaves the window, or while you move or resize it (from TalonEye, [#474](https://github.com/ZigZagBoi1/ScarlettPort/pull/474)).
- The shader validator search skips Windows SDKs whose validator is too old (from ZephyrWusky, [#447](https://github.com/ZigZagBoi1/ScarlettPort/pull/447)). Shaders are translated once more after this update.
- README: AVX2 and page file advice in the requirements, and a FAQ entry for 0xC0000135 ([#446](https://github.com/ZigZagBoi1/ScarlettPort/pull/446)).
**New in 0.5.6** (fixes merged after 0.5.5):
- **About 60% more fps:** the game spends a big part of every frame preparing geometry for ray tracing, which is off. That work is now skipped. On an RTX 3060, three in-session tests went from 7.4-8.1 fps to 12.2-13.6 fps with the same picture. `SCARLETT_BVH_INPUT_SKIP=0` turns it off ([#399](https://github.com/ZigZagBoi1/ScarlettPort/pull/399)).
- **13th and 14th gen Intel:** an AMD-only instruction the game uses was handled through a slow fault on Intel CPUs. It now runs about 570 times faster, which should fix the startup stop on those CPUs ([#377](https://github.com/ZigZagBoi1/ScarlettPort/pull/377), [#350](https://github.com/ZigZagBoi1/ScarlettPort/issues/350)).
- **Fewer stutters on later starts:** the pipeline library is now saved while the game runs, not only on a clean exit, so pipelines are kept even when the game is stopped or crashes ([#367](https://github.com/ZigZagBoi1/ScarlettPort/pull/367)).
- **Borderless and fullscreen** from the launcher's Display page now work with the ScarlettPort runtime; F11 still switches back (from Lyuu17, [#386](https://github.com/ZigZagBoi1/ScarlettPort/pull/386), [#387](https://github.com/ZigZagBoi1/ScarlettPort/pull/387)). The pointer is hidden during mouse look ([#385](https://github.com/ZigZagBoi1/ScarlettPort/pull/385)).
- **Crash and setup fixes:** FSR divide-by-zero on the loading screen, a loader bug behind "malformed image" errors, a cache folder that doesn't exist yet, a cache on a network drive, a missing game file shown plainly ([#358](https://github.com/ZigZagBoi1/ScarlettPort/pull/358)), and the launcher stops with a clear message when the D3D12 files are missing ([#395](https://github.com/ZigZagBoi1/ScarlettPort/pull/395)).
- **Proof of origin:** every file now has a signed GitHub build attestation, and the README explains antivirus warnings ([#416](https://github.com/ZigZagBoi1/ScarlettPort/pull/416)).
- Pipelines keyed by only the blend state D3D12 reads (from Dune), and GPU test fixes ([#425](https://github.com/ZigZagBoi1/ScarlettPort/pull/425)).
**New in 0.5.5** (fixes merged after 0.5.4; built and unit-tested):
- Laptops with integrated and dedicated graphics: the engine now runs on the high-performance GPU and logs its name, instead of the default adapter, which is the integrated one ([#292](https://github.com/ZigZagBoi1/ScarlettPort/pull/292), [#274](https://github.com/ZigZagBoi1/ScarlettPort/issues/274)).
- The launcher finds FSR from the game's own AMD upscaler DLL in the game folder ([#164](https://github.com/ZigZagBoi1/ScarlettPort/pull/164), [#160](https://github.com/ZigZagBoi1/ScarlettPort/issues/160)).
- Ported from trustno1-coder/VIctory-NVIDIA with credit: console shader lanes spread over several host waves take their threads from a group counter (`SCARLETT_THREAD_TICKET=0` restores the old numbering), the violet patches on lit paper are gone, dynamic descriptor slots go back only to their own heap; opt-in `SCARLETT_HELPER_PRIORITY`, `SCARLETT_RAW_VIEW_CLAMP` and `SCARLETT_SKIP_BINK` ([#304](https://github.com/ZigZagBoi1/ScarlettPort/pull/304)).
- Without ray tracing, the translucent back-light is cleared after the final gather (`SCARLETT_TRANSLUCENT_BACKLIGHT=1` keeps the old look) ([#222](https://github.com/ZigZagBoi1/ScarlettPort/pull/222)).
- `scarlett pipeline-cache` reads the game's own precompiled pipeline cache from your files and can seed and fill the pipeline library ahead of a first run (`--seed`, `--fill`; Prepare makes the likely-needed part of it ahead of a first run) ([#223](https://github.com/ZigZagBoi1/ScarlettPort/pull/223), [#249](https://github.com/ZigZagBoi1/ScarlettPort/pull/249)-[#254](https://github.com/ZigZagBoi1/ScarlettPort/pull/254)).
- Shader warm-up stops scanning at its deadline ([#200](https://github.com/ZigZagBoi1/ScarlettPort/pull/200)).
**New in 0.5.4** (fixes merged after 0.5.3; built and unit-tested):
- Black skin on AMD: a pipeline listed as bad after one crash while warming is built again on its own at every Prepare and taken off the list when it builds, so no pipeline stays skipped for good ([#146](https://github.com/ZigZagBoi1/ScarlettPort/pull/146), [#92](https://github.com/ZigZagBoi1/ScarlettPort/issues/92)).
- The launcher minimizes while the game runs and comes back when it closes or crashes, then offers to send a crash report (a prefilled GitHub issue you check before submitting) ([#141](https://github.com/ZigZagBoi1/ScarlettPort/pull/141)).
- The launcher's main tab no longer says shaders are ready when the cache isn't prepared for the current driver and preset ([#141](https://github.com/ZigZagBoi1/ScarlettPort/pull/141), [#135](https://github.com/ZigZagBoi1/ScarlettPort/issues/135)).
- A damaged game file is named in the log and the crash log, with how to check it ([#127](https://github.com/ZigZagBoi1/ScarlettPort/pull/127)).
- Game folders behind symbolic links are found, shader scans are faster, split-storage verify fixed ([#134](https://github.com/ZigZagBoi1/ScarlettPort/pull/134)); a CLI-built shader cache is reused only when its translator matches ([#153](https://github.com/ZigZagBoi1/ScarlettPort/pull/153)).
- Read-only CLI commands no longer move old data folders ([#131](https://github.com/ZigZagBoi1/ScarlettPort/pull/131)); embedded shader containers keep their hashes ([#114](https://github.com/ZigZagBoi1/ScarlettPort/pull/114)); a misleading "pipeline missing" warning removed ([#147](https://github.com/ZigZagBoi1/ScarlettPort/pull/147)).
**New in 0.5.3** (fixes merged after 0.5.2; built and unit-tested, the AMD fixes not checked on those cards by us):
- RX 6000 (RDNA 2): mesh pipelines are made one at a time on AMD and the mapped pipeline library is kept ([#88](https://github.com/ZigZagBoi1/ScarlettPort/pull/88)).
- RX 9000 (RDNA 4): a raw view's size is read through its own handle, plus the newer device ids ([#93](https://github.com/ZigZagBoi1/ScarlettPort/pull/93)).
- AMD driver crashes while warming shaders: a pipeline is retried alone before it is listed as bad ([#104](https://github.com/ZigZagBoi1/ScarlettPort/pull/104)).
- BC7 textures: the channel rotation is read only in modes 4 and 5, which swapped alpha into a colour channel in some textures ([#108](https://github.com/ZigZagBoi1/ScarlettPort/pull/108)).
- Indirect draws whose arguments were written late are clamped one by one ([#101](https://github.com/ZigZagBoi1/ScarlettPort/pull/101)); every refused pipeline logs its reason.
- NVIDIA frame-time work from Belobug and avatarmanz, fewer heap re-sets; F11 toggles borderless fullscreen ([#95](https://github.com/ZigZagBoi1/ScarlettPort/pull/95)).
- Launcher 0.5.3: names the discrete GPU in hardware reports and shows the right bundled runtime version.
**New in 0.5.2** (built and unit-tested, not yet measured in a game run on our RTX 3060):
- No more black screen after loading on the Stable preset: the engine uses the game's own upscaler and falls back to it when the AMD one is missing ([#60](https://github.com/ZigZagBoi1/ScarlettPort/pull/60), [#61](https://github.com/ZigZagBoi1/ScarlettPort/issues/61)).
- No 500 ms wait per frame for pipelines still building on first runs.
- Levels on demand finally take effect: 18.9 to 22.0 fps median on an RX 9060 XT ([#64](https://github.com/ZigZagBoi1/ScarlettPort/pull/64)).
- 40 shader variants restored, integer-target blending repaired, the voxel visibility shader recovered (from DexNom/VIctory); a shader size query no longer reused, which crashed AMD's compiler on 29 compute pipelines (from Belobug/VIctory-Belobug-AMD).
- Mouse and keyboard: opt-in PC-style layout with mouse look (`SCARLETT_KBM=1`); DualSense and DualShock 4 pads read directly.
- Clear out-of-memory message in the log ([#54](https://github.com/ZigZagBoi1/ScarlettPort/pull/54)), more GPU detail in player logs, shader progress every 100 shaders.
- Launcher 0.5.2: live shader progress that reaches 100%, two cores left free for the desktop, an update banner with one-click Update now.
**New in 0.5.0** (RTX 3060 12 GB, Ryzen 5 5600X, 32 GB, one boot each, 0.4.x defaults against 0.5.0 defaults):
- The save emulation no longer sleeps retrying old save folders it cannot delete (it slept about 243 s per boot).
- The upscaler's 24 MB network buffer is kept in card memory: its slowest pass takes 0.10-0.28 ms per frame instead of 55.7-70.8 ms.
- Two shader translation fixes are on by default (the first run rebuilds the shader cache once).
- World reached in 178 s instead of 244 s (one boot each; load times vary from boot to boot), and 3.4 fps in the world instead of 1.6. The 95th-percentile frame did not improve (4,464 ms against 4,250 ms).
- Load work (read-ahead, unpaced loading frames, `scarlett prepare`) is opt-in in the Experimental preset; not measured on its own yet.
- Launcher 0.5.0: a first-run setup (game folder search, player name, one-time shader preparation).
- Launcher 0.5.1: a calmer game check (the dump's own file list is advisory), a Setup page with every step's status and a way back into setup, mouse look with sensitivity, the game below normal priority so the PC stays responsive, a shader bar that reaches 100%, scrolling pages, and one-click Update now.
**Known issues:** haze indoors; NVIDIA cards are still slow (3-6 fps); on 16 GB RAM, set a larger Windows paging file ([#51](https://github.com/ZigZagBoi1/ScarlettPort/issues/51)).
### Community results
Hardware reports from testers. These are **their own measurements**, not ours.
- **RX 9060 XT 16 GB + Ryzen 7 7700X**, 0.5.2 (levels on demand fixed): 22.0 fps median (45.4 ms), up from 18.9. [#64](https://github.com/ZigZagBoi1/ScarlettPort/pull/64)
- **RX 9060 XT 16 GB + Ryzen 7 7700X**, v0.4.9 after warm: 18.7 fps median (53.4 ms; best 32.9 ms), up 3.3x from v0.4.4. [#53](https://github.com/ZigZagBoi1/ScarlettPort/issues/53)
- **RTX 3070 8 GB + Ryzen 7 5700X**, v0.5.2: 1 h 20 min without a crash, 8.5 fps in the world, 30 in menus (warm cache). [#106](https://github.com/ZigZagBoi1/ScarlettPort/issues/106)
- **RTX 3060 + Core i5-11400**, v0.5.2: 9.1 fps average (2.9-30). [#109](https://github.com/ZigZagBoi1/ScarlettPort/issues/109)
- **RTX 5060 8 GB + Core i5-14400F**, v0.5.2: up to 15 fps in the prologue, about 8 in the police scene. [#107](https://github.com/ZigZagBoi1/ScarlettPort/issues/107)
- **RTX 5070 Ti + Ryzen 5 7600X**, v0.5.3: 12.8 fps average in the jail scene. [#138](https://github.com/ZigZagBoi1/ScarlettPort/issues/138)
- **RTX 3070 8 GB**, v0.5.3: 9.3 fps world median, up from 8.3 on v0.5.2. [#118](https://github.com/ZigZagBoi1/ScarlettPort/issues/118)
- **RTX 4070 Ti + Core i5-13600KF**, v0.5.1: 13.4 fps average (3.3-30.1). [#76](https://github.com/ZigZagBoi1/ScarlettPort/issues/76)
- **RTX 4060 Laptop 8 GB + Core i9-13980HX**, v0.5.1: 5-7 fps in the cell, 3-4 walking (215 ms of 275 on the GPU). [#68](https://github.com/ZigZagBoi1/ScarlettPort/issues/68)
- **RTX 4070 12 GB + Ryzen 9 3900X**, v0.5.0: whole prologue played, 3-6 fps in the world, 30 fps in menus. [#56](https://github.com/ZigZagBoi1/ScarlettPort/issues/56)
- **RTX 5070 12 GB + Ryzen 7 5800X3D**, v0.4.6: 7-8 fps. [#33](https://github.com/ZigZagBoi1/ScarlettPort/issues/33)
- **RX 9060 XT**, v0.4.4: 5.3-6.0 fps. [#43](https://github.com/ZigZagBoi1/ScarlettPort/issues/43)
- **RTX 3080 10 GB:** 3-4 fps in the world, through the prologue into the first mission. [#26](https://github.com/ZigZagBoi1/ScarlettPort/issues/26)
- **RTX 3060 12 GB**, v0.4.5: about 3 fps. [#47](https://github.com/ZigZagBoi1/ScarlettPort/issues/47)
- **Ours, RTX 3060 12 GB + Ryzen 5 5600X + 32 GB**, v0.5.0: 3.4 fps in the world (1.6 fps with the 0.4.x defaults in the same test).
ScarlettPort v0.5.0 on an RTX 3060 (Series S profile, ray tracing off).
**Gameplay view, lit (earlier build)**
**Opening cell on an RTX 3060, default settings**
The v0.4.3 runtime on an RTX 3060 under Windows 10, ray tracing off, while walking and turning: warm rim light through the fence, hair and bunks drawn. Measured at about 5 fps in this scene.
**Opening cell, ray tracing on (contributor's capture, PR #25)**
Before, then after:
Before the title's own lighting translated: a stand-in lighting pass (sky, a sun, fog) over the world's own geometry buffers. Fences, a bin and props are drawn; terrain and most surface colours are missing.
**First gameplay frame (earlier build)**
The title's own movement hint, drawn over a still-black 3D picture because the lighting shaders did not all translate yet in that build.
**First world geometry (earlier build)**
One of the title's own render passes drawing the ground in 3D perspective. An internal pass, not a final image.
**First-boot settings screen**
A first-boot settings screen drawn by the title on the runtime; the window caption shows 30 fps. Other screens (title artwork, loading screens, legal notices) are left out of this repo on purpose.