# VIctory — 6 GB VRAM / 16 GB RAM & NVIDIA RTX Edition > ### Support Me a Coffee > If this fork helped you get the game running smoother on a 6–8 GB GPU or 16 GB RAM laptop, you can buy me a coffee: > > - **SOL:** `Cep7cZA8LPMUAWckR2JyUfvwhSpm9yzUqUWZxN3MY8LP` > - **USDT (ERC-20 / EVM):** `0xf3feaf58c2f467508e4fd5d5abf2c1495a74b424` 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). --- ## What This Fork Adds - **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)`). - **CPU submit-thread optimizations:** Lock-free `watch::AHEAD_KEPT` + binary-searched `ahead_contains`, `RwLock` shared-read fast path, lock-free `Shadow::pending_len` & `Card::before`, merged `copied`/`ranged` lock, incremental `HeapRanges` spans, zero-alloc `HostList::prelude()` fast path, and reused `Batch` scratch buffers. - **DLSS Super Resolution + AMD FSR 3 / DLSS Frame Generation:** Full F1 settings menu, F3 stats panel, HUD-less FSR 3 2X Frame Generation for RTX 20/30 and non-NVIDIA DX12 GPUs, and DLSS FG (2x–6x) for RTX 40/50. - **Portable 6 GB / 16 GB launcher (`scripts/play-6gb.ps1`):** Pre-configured with verified settings (`VICTORY_FAST_CORES=0` for hybrid P+E CPUs, `VICTORY_PORT_CONSTANTS=1`, aligned `SLOT_EVICT` thresholds, `VICTORY_PIPELINE_WAIT_MS=50`, and ReBAR GPU windows). --- ## Requirements | Component | Minimum (6 GB / 16 GB Preset) | Recommended | | :--- | :--- | :--- | | **OS** | Windows 10 or 11 (64-bit) | Windows 11 (64-bit) | | **CPU** | x64 with AVX2 (4+ cores) | 6–8+ cores | | **RAM** | **16 GB** *(set a 32–48 GB SSD pagefile)* | 32 GB or more | | **GPU** | **6 GB VRAM** DX12 GPU (RTX 20/30/40/50 for DLSS; any DX12 GPU for FSR 3) | 12 GB+ NVIDIA RTX | | **Storage** | SSD with 50+ GB free (for game + pagefile + shader cache) | NVMe SSD | | **Build Tools** | [Rust](https://rustup.rs) + [VS Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) ("Desktop development with C++") | — | > **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*). --- ## Step-by-Step: How to Build & Run ### Step 1 — Install Prerequisites 1. Install **[Rust](https://rustup.rs)** (the toolchain version is pinned automatically by `rust-toolchain.toml`). 2. Install **[Visual Studio Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)** and check **"Desktop development with C++"**. 3. Make sure your GPU driver is up to date. ### Step 2 — Clone the Repository Open **PowerShell** in a folder where you want the project (outside your game folder): ```powershell git clone https://github.com/theme613/theme613crap.git cd theme613crap ``` ### Step 3 — Download Upscaler / Frame-Gen DLLs (One-Time) 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): .\Get-NVIDIA-DLSS.cmd # 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). **Option A — 6–8 GB VRAM GPUs / 16 GB RAM Laptops (Recommended for RTX 3050 / 3060 / 4050 / 4060):** ```powershell # Sharp 1080p windowed (960x540 DLSS Perf, Half textures, FG off): powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' # Same with FSR 3 2X Frame Generation ON: powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' -FrameGen # Extra GPU headroom (936p or 720p windowed): powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' -Output 936 ``` **Option B — 12 GB+ VRAM GPUs / 32 GB+ RAM Desktops:** ```powershell powershell -ExecutionPolicy Bypass -File scripts\play-nvidia.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' ``` *(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`.)* ### Step 5 — In-Game Controls & Tuning - Press **`F1`** anytime to open the **Settings Menu** (Arrow keys to navigate, Enter to select, `SAVE AND RESTART NOW` to apply): - **`OUTPUT SIZE (WINDOW)`**: `1080P (DEFAULT)` / `936P` / `720P (FASTEST)` - **`DLSS`** / **`SERIES S PICTURE`**: `960X540 (FASTEST)` / `1113X626` / `1280X720` - **`TEXTURE SCALE (VRAM)`**: `FULL` / `HALF (6GB GPU)` / `QUARTER (4GB GPU)` - **`FRAME GENERATION`**: `OFF` / `2X` (FSR 3 on RTX 20/30 or any DX12 card; DLSS FG 2x–6x on RTX 40/50) - **`WATER LIGHT`**, **`LIGHT ESTIMATE`**, **`REFLECTION ESTIMATE`**, **`FOG CAP`** - **`FULLSCREEN (NO BORDER)`**: `OFF` (windowed) / `ON` - Press **`F3`** to toggle the live **Stats Panel** (FPS, FG FPS, draw count, GPU/CPU times, RAM & VRAM). --- ## Frame Generation Compatibility | Your GPU | Frame Generation | Notes | | :--- | :--- | :--- | | **GeForce RTX 40 / 50** | **DLSS Frame Generation** | 2x on RTX 40; up to 6x on RTX 50 | | **GeForce RTX 20 / 30** | **AMD FSR 3 Frame Generation** | Up to **2x** (with DLSS Super Resolution) | | **AMD / Intel DX12 GPUs** | **AMD FSR 3 Frame Generation** | Up to **2x** (use Series S profile in F1) | --- ## Tips for Gaming Laptops (6 GB VRAM / 16 GB RAM) 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. --- ## Known Limitations - **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. --- ## Credits & License Built on the work of the community: - **[VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA)** — NVIDIA Streamline DLSS/FG, FSR 3 FG, F1 settings menu, F3 stats panel - **[foxhound](https://github.com/readmet3xt-lab/foxhound)** — fast descriptor sync, card-side compares, ambient/reflection estimates - **[VIctory](https://github.com/Marvisak/VIctory)** — core loader, runtime services, D3D12 backend, shader recompiler - **[Dathinel/victory-4gb](https://github.com/Dathinel/victory-4gb)**, **[fxceless/victory-fork](https://github.com/fxceless/victory-fork)**, **[avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX)**, **[codec-d/cool_fox](https://github.com/codec-d/cool_fox)**, **[Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD)**, **[DexNom/VIctory](https://github.com/DexNom/VIctory)** Licensed under **GPL-3.0-or-later** (see [LICENSE](LICENSE)).