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 a game file natively on Windows from files **you** supply.
> **This repository contains no game files, code, or assets.** You must supply your own legally obtained game file (`.exe`). Not affiliated with or endorsed by any 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` = sharp Half textures default in `play-6gb.ps1`, keeping peak VRAM around `4.3 GB` — **850 MiB** below the 5.15 GiB DXGI budget with zero WDDM paging; `2` = Quarter for 4 GB cards). Toggleable in the **F1** menu (`TEXTURE SCALE (VRAM)`).
- **16 GB RAM stability & OOM recovery:** Automatically caps idle `STAGING`, upload `send::SPARE` (`128 MiB`), and CPU snapshot (`128 MiB`) pools on `<= 20 GB` / `<= 32 GB` RAM hosts, drains idle pools under critical commit pressure, tracks pagefile-growth commit headroom, retries `E_OUTOFMEMORY` in command-list preludes, and uses ThinLTO release builds (`opt-in --features mimalloc` kept off by default on 16 GB RAM).
- **Custom windowed output sizes (`VICTORY_OUTPUT`) & DLSS Ultra Performance:** True `1280x720` and `1664x936` windowed output patching plus `640X360 (ULTRA FAST)` (`ultraperformance`, default in `play-6gb.ps1` for stable 10+ FPS even when a gaming laptop is heatsoaked) in **F1** (`SERIES S PICTURE` / `OUTPUT SIZE (WINDOW)`), working cleanly alongside DLSS and FSR 3 Frame Generation (with Reflex gated to active FG and automatic stuck-FG re-arm).
- **Off-submit landed list recycling (`VICTORY_LAND_OFF_SUBMIT`, on by default):** Moves `land()` (resetting 220+ command lists/allocators per frame) off the single submitting thread onto the dedicated `victory-late-wait` thread (`after the sending`: `43.8 ms → 0.3 ms`).
- **Zero-convoy command recording (`uav_buffer_for_list`, lock-free `queue::behind` unfold, `PLACED_TEXTURES``RwLock`):** Removes `victory-ahead`'s global `mapped()` copy-queue fence wait from command-list scratch buffers (`make_card_budget`, `batch_place`, `indirect_scratch`), moves `queue::behind::Lane` unfolding outside the lane mutex, and switches `PLACED_TEXTURES` lookups to a read-only `RwLock` fast path (`list::thin` CPU time `-20%`, heavy-scene GPU busy `96–100%`).
- **Lock-free fence settles, batched descriptor copies & fast dynamic reclaim:** `settle_for_fence()` waits only for target flights via `relay_wait` without holding `host.submitted`; `reclaim_dynamic()` recycles landed dynamic slots on `DYNAMIC_EPOCH`; `make_listed_batch()` batches contiguous `CopyDescriptors` with per-recording `ListViews` safety; `TextureQueue::due_and_census_capped()` cuts texture-queue lock waits by `82%`.
- **3-tier thread priority (`cores.rs`):** Runs `victory-submit` / `victory-wide` at `+2` (`HIGHEST`), `VICTORY_THIN=1` (`8``victory-list` workers) at `+1` (`ABOVE_NORMAL`), and title spin-threads at `0` (`NORMAL`).
> **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):
Replace `D:\path\to\your.exe` with the path to **your own game file (`.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`.)*
### Step 5 — Updating Later (`git pull` & Rebuild)
Whenever new updates are pushed, pull `main` and rebuild `victory.exe` (since `play-6gb.ps1` only auto-builds when `target\release\victory.exe` does not exist yet):
3. Paste the prompt below (just replace the path with your own game file `.exe` path) and let Antigravity set up, build, and tune everything for your exact PC:
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–31 W**) in an open-world test scene (`0` crashes, `0` OOMs, full lighting ON):
- **Hybrid 2 MiB streaming sections (`VICTORY_SECTION_MB=2`, `xmem.rs` — after `RyanCase94` / `fxceless#1274` / `sagouindupm/Mandy`):** Splits multi-GB physical streaming pools into 2 MiB `CreateFileMappingW` sections while keeping `VICTORY_PORT_CONSTANTS=1`'s 185 MiB 32-bit graphics heap in one contiguous section (preserving `84` hash passes/frame instead of `337` and keeping 1080p real open-world FPS at **`10.0–10.8 fps`** with full lighting intact).
- **GPU-read-only UAV skip (`VICTORY_GPU_RO_SKIP=1`, `xmem.rs`, `shadow.rs`, `host.rs`, `draw.rs`, `memory.rs` — after `mikael-jarvinen` / `VIctory-NVIDIA#1014` / `sagouindupm/Mandy`):** Tracks console `PAGE_GRAPHICS_READONLY` / `EXECUTE` / `EXECUTE_READ` intervals across `XMemVirtualAlloc` and `VirtualProtect` and subtracts them from shader UAV write declarations (plus `VICTORY_GPU_RO_CHECK=1` verification mode), clipping `~340 MB/frame` of CPU-written constant pools whenever a buffer isn't placed in-place.
- **BC7 dictionary entry 0 & `E_OUTOFMEMORY` texture retry (`bcpack.rs`, `resource.rs` — from `sagouindupm/Mandy` / upstream `VIctory#3198`):** Fixes `bcpack.rs` skipping entry 0's leading index and changes `E_OUTOFMEMORY` host-texture creation failures from permanent black refusal into a 1-second cooldown retry (`NoTexture::ForNow`).
- **Zero-convoy command recording (`host.rs`, `ahead.rs`, `queue/behind.rs`, `resource.rs`):** Added `uav_buffer_for_list()` / `shared_buffer_now_unmapped()` to eliminate `50–86 ms` stalls behind `victory-ahead` on the global `mapped()` copy-queue mutex; moved `queue::behind::Lane` unfolding outside the lane lock (eliminating `22–50 ms` lock convoys across all 8 list workers, title submits, and `victory-late-wait`); converted `PLACED_TEXTURES` to a read-only-fast-path `RwLock`.
> **Hybrid CPU & stronger GPU note:** On Intel 12th–14th gen hybrid CPUs (`i5-12450HX` 4P + 4E), `VICTORY_FAST_CORES=0` adds `+13.5%` real FPS over `FAST_CORES=2`. With the submit thread now down to **`52.4 ms`** (~19 real FPS CPU ceiling), higher-wattage RTX 3060 / 4050 / 4060 6–8 GB GPUs can push toward **15–19 real FPS** (`30–38 FPS` with 2× FG), while 30–35 W RTX 3050 6 GB laptops are now primarily GPU-bound (`85%` card utilization at `10.8–12.8 real fps`).
1.**Use AC Power + Performance / Max Fan Mode (`Fn + Q` / OEM control panel):** Many gaming laptops cap the GPU to 30–35 W in Balanced mode or thermally throttle the CPU once the heatsink reaches 85–86 °C on long sessions. Keeping fans on Performance/Max and elevating the back of the laptop for airflow sustains peak FPS.
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.
- **[Wrong F1 settings / pitch-black indoors — How to reset `victory-settings.txt`](docs/troubleshooting.md#2-wrong-or-broken-f1-settings-how-to-reset)**
- **[Blinding sun, indoor flashing, white dots, blurry graphics, or missing heads](docs/troubleshooting.md#3-graphics--lighting-issues)**
- **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.