A performance- and low-memory-tuned fork of [VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA) (built on [foxhound](https://github.com/readmet3xt-lab/foxhound) / [VIctory](https://github.com/Marvisak/VIctory)) that runs an Xbox Series title natively on Windows from files **you** supply.
> **This repository contains no game files, code, or assets.** You must supply your own legally obtained copy of the title (build v1.0.2.1, `game_scarlett_master.exe`). Not affiliated with or endorsed by the title's developer/publisher, NVIDIA, or AMD. See [docs/asset-policy.md](docs/asset-policy.md).
- **6 GB / 4 GB VRAM support (`VICTORY_TEXTURE_DROP_MIPS`):** Drops top texture mip levels (`1` = Half for 6 GB GPUs, `2` = Quarter for 4 GB GPUs) to keep VRAM comfortably under budget. Toggleable in the **F1** menu (`TEXTURE SCALE (VRAM)`).
- **16 GB RAM stability & OOM recovery:** Caps idle upload/list pools automatically on `<= 32 GB` hosts, drains idle pools under critical commit pressure, and retries `E_OUTOFMEMORY` in command-list preludes instead of crashing.
- **Custom windowed output sizes (`VICTORY_OUTPUT`):** True `1280x720` and `1664x936` output patching that works cleanly alongside DLSS and FSR 3 Frame Generation. Toggleable in **F1** (`OUTPUT SIZE (WINDOW)`).
> **16 GB RAM users:** Windows needs virtual commit headroom while streaming open-world textures. Before playing on a 16 GB PC, set a **32–48 GB custom pagefile** on your SSD (*System Properties → Advanced → Performance Settings → Advanced → Virtual Memory*).
NVIDIA's and AMD's redistributables are not stored in this repo — run the included helper scripts to fetch them directly from NVIDIA / AMD's official GitHub releases:
```powershell
# For NVIDIA RTX cards (DLSS Super Resolution + DLSS FG on RTX 40/50):
# For RTX 20/30 or AMD/Intel cards wanting FSR 3 2X Frame Generation:
.\Get-AMD-FSR.cmd
```
*(Windows 10 users only: also run `scripts\get-d3d12.ps1` once to fetch Microsoft's D3D12 Agility SDK with Shader Model 6.6+.)*
### Step 4 — Build & Launch
Replace `D:\Games\MyDump\game_scarlett_master.exe` with the path to **your own** dump of `game_scarlett_master.exe`. The first launch builds `target\release\victory.exe` automatically (takes a few minutes).
*(Optional: C: drive low on space? Run `setx VICTORY_HOME D:\victory` once and open a new PowerShell window — caches, saves, settings, and logs will go there instead of `%LOCALAPPDATA%\victory`.)*
## Don't Know How to Set It Up? Use Antigravity + This AI Prompt
If you don't want to mess with Rust, PowerShell, pagefiles, or tuning flags by hand:
1. Download and open **Google Antigravity**.
2. Clone or open this repository folder in Antigravity.
3. Paste the prompt below (just replace the path with your own `game_scarlett_master.exe` path) and let Antigravity set up, build, and tune everything for your exact PC:
```text
Please set up and optimize this VIctory repository for my PC so I can play with a one-click launcher.
My legally obtained title executable is at: D:\Games\MyDump\game_scarlett_master.exe
Please do the following step by step:
1. Check my PC specs (Windows version, CPU core layout, RAM + pagefile commit limit, GPU model, VRAM budget, and current GPU power limit).
2. Check if Rust and Visual Studio C++ Build Tools are installed (tell me if anything is missing).
3. Fetch the right runtime DLLs for my GPU/OS using the repo's scripts:
- Run Get-NVIDIA-DLSS.cmd if I have an NVIDIA RTX card.
- Run Get-AMD-FSR.cmd if I want FSR 3 2X Frame Generation (especially on RTX 20/30 or non-NVIDIA GPUs).
- Run scripts\get-d3d12.ps1 if I am on Windows 10.
5. Create a clean one-click windowed `.cmd` launcher tailored to my exact GPU VRAM, RAM, and CPU (using scripts\play-6gb.ps1 as a base for 6-8 GB VRAM / 16 GB RAM, or scripts\play-nvidia.ps1 for 12 GB+ VRAM / 32 GB+ RAM; use VICTORY_FAST_CORES=0 on hybrid P+E CPUs like Intel 12th-14th gen).
6. Tell me if my pagefile or laptop GPU power mode needs adjustment for best stability and FPS.
All numbers below were measured on the same Windows 11 gaming laptop (**Intel Core i5-12450HX [4 P-cores + 4 E-cores], 16 GB RAM, NVIDIA GeForce RTX 3050 6 GB Laptop GPU** — measured even while GPU power was capped at **26–30 W**) in the open-world Chapter 1 boat/shoreline scene (`0` crashes, `0` OOMs):
| Metric | Before (Stock `VIctory-NVIDIA` on 6 GB / 16 GB) | After (This Fork + Tuned Preset) | Change |
> **Hybrid CPU note (`i5-12450HX` 4P + 4E):** Switching `VICTORY_FAST_CORES=2` → `0` alone lifted real FPS from **`8.9 → 10.1 fps`** (**+13.5%**, peak `10.4`) on ~6k-draw views and **`6.3 → 7.3 fps`** (**+16%**) on heavy ~11k-draw views, while cutting CPU `preparing` from `59.4 → 45.0 ms` with zero visual loss. Unlocking a 30 W-capped laptop GPU up to its full 65 W Performance Mode adds further real-FPS headroom on top of these numbers.
1.**Use AC Power + Performance Mode (`Fn + Q` / OEM control panel):** Many gaming laptops cap the GPU to 30–35 W in Balanced mode even when capable of 65–115 W. Unlocking GPU TGP + raising fan speed gives a direct real-FPS boost.
2.**Don't choke CPU wattage in Custom Mode:** This compatibility layer uses all CPU cores heavily. Keep CPU cross-loading power limit generous (45–55 W+) and keep Windows Power Plan on High Performance / 100% min processor state on AC.
3.**Close background apps before launching:** Browsers, Discord, and IDEs eat RAM and CPU cores on 16 GB systems.
4.**First-time shader warm-up:** New open-world areas compile pipelines on first visit (capped to 50 ms/frame in `play-6gb.ps1` to avoid long stalls) and run smoothly once cached.
- **Hardware ray tracing is off by default** (`RAY TRACING` in F1 is slow/broken on current builds); indirect lighting and reflections use the emulator's `LIGHT ESTIMATE` + `REFLECTION ESTIMATE` + `WATER LIGHT` shaders instead.
- **Frame generation only generates frames while the game window is focused.**
- See [docs/windows-memory.md](docs/windows-memory.md) for detailed low-RAM / low-VRAM troubleshooting and [docs/findings.md](docs/findings.md) for upstream technical measurements.