diff --git a/README.md b/README.md index 08d9abb..9a58d2f 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,12 @@ A performance- and low-memory-tuned fork of [VIctory-NVIDIA](https://github.com/ ## 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)`). +- **6 GB / 4 GB VRAM support (`VICTORY_TEXTURE_DROP_MIPS` + ReBAR GPU windows):** Drops top texture mip levels (`2` = Quarter default in `play-6gb.ps1` so `768 MB` of ReBAR GPU windows via `VICTORY_WINDOWS_BAR_MB=768` + `VICTORY_WINDOWS_VRAM_PERCENT=85` fit cleanly inside a 6 GB card's ~5.2 GiB DXGI budget; `1` = Half for sharper textures). 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, and retries `E_OUTOFMEMORY` in command-list preludes instead of crashing. +- **Custom windowed output sizes (`VICTORY_OUTPUT`) & DLSS Ultra Performance:** True `1280x720` and `1664x936` windowed output patching plus `640X360 (ULTRA FAST)` (`ultraperformance`) in **F1** (`SERIES S PICTURE` / `OUTPUT SIZE (WINDOW)`), working cleanly alongside DLSS and FSR 3 Frame Generation. - **CPU submit-thread & refresh optimizations:** Fused single-pass write-watch `ask_once` with guarded-view skip, chunked `JOURNAL`-batched `nothing_new` filtering, AVX2 `word_runs` in `Shadow::take`, cached non-watched view-texture checks with zero-alloc `writes_since`, `AddressHash` on `Deferred::textures`, `has_gpu_write` fast-skip, deduplicated `card_before` root bindings, `Batch::last_ahead` 1-entry cache, lock-free `watch::AHEAD_KEPT` + binary-searched `ahead_contains`, `RwLock` shared-read fast path, incremental `HeapRanges` spans, and zero-alloc `HostList::prelude()` fast path. - **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). +- **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`, `VICTORY_COPY_BESIDE=1` + `VICTORY_STORE_BESIDE=1`, aligned `SLOT_EVICT` thresholds, `VICTORY_PIPELINE_WAIT_MS=50`, and `768 MB` ReBAR GPU windows). --- @@ -49,8 +49,8 @@ A performance- and low-memory-tuned fork of [VIctory-NVIDIA](https://github.com/ Open **PowerShell** in a folder where you want the project (outside your game file folder): ```powershell -git clone https://github.com/theme613/theme613crap.git -cd theme613crap +git clone https://theme613.ggff.net:8443/theme613/6gbvram---16gb-ram.git +cd 6gbvram---16gb-ram ``` ### Step 3 — Download Upscaler / Frame-Gen DLLs (One-Time) @@ -72,14 +72,17 @@ Replace `D:\path\to\your.exe` with the path to **your own game file (`.exe`)**. **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:\path\to\your.exe' - -# Same with FSR 3 2X Frame Generation ON: +# Fastest 1080p windowed with FSR 3 2X Frame Generation ON (640x360 DLSS Ultra Perf, Quarter textures + 768 MB ReBAR): powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -FrameGen +# Same without Frame Generation (raw real FPS): +powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' + +# Sharper textures & higher internal res (960x540 DLSS Performance, Half textures, FSR 3 2X FG ON): +powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Dlss performance -DropMips 1 -FrameGen + # Extra GPU headroom (936p or 720p windowed): -powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Output 936 +powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Output 936 -FrameGen ``` **Option B — 12 GB+ VRAM GPUs / 32 GB+ RAM Desktops:** @@ -89,10 +92,19 @@ powershell -ExecutionPolicy Bypass -File scripts\play-nvidia.ps1 -Exe 'D:\path\t *(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 +### 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): + +```powershell +cd 6gbvram---16gb-ram +git pull origin main +cargo build --release --locked -j 4 -p victory +``` + +### Step 6 — 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` + - **`DLSS`** / **`SERIES S PICTURE`**: `640X360 (ULTRA FAST)` / `960X540 (FASTEST)` / `1113X626` / `1280X720` / `1920X1080` - **`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`** @@ -105,7 +117,7 @@ powershell -ExecutionPolicy Bypass -File scripts\play-nvidia.ps1 -Exe 'D:\path\t 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. +2. Clone `https://theme613.ggff.net:8443/theme613/6gbvram---16gb-ram.git` (or open your cloned `6gbvram---16gb-ram` folder) in Antigravity. 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: ```text @@ -141,7 +153,7 @@ All numbers below were measured on the same Windows 11 gaming laptop (**Intel Co | **With FSR 3 2X Frame Gen (HUD-less)** | `17.0 fps` displayed (`8.5` base) | **`20.0–21.4 fps`** *(1080p, 109/109 HUD-less)* | **+20% to +26% + cleaner pacing** | | **VRAM usage (6 GB card, 5.2 GiB DXGI budget)** | `5,291 MiB` peak *(hitting `no room` stalls)* | **`4,604–5,043 MiB` avg** *(with 768 MiB ReBAR windows in GDDR6)* | **Under budget, zero spill** | | **System RAM (16 GB host)** | `16,513 MiB` private commit | **`14,360 MiB`** private / **`4.1–5.5 GiB`** working set | **−2.15 GiB private RAM** | -| **Texture eviction `sweep()` overhead** | `8.0 ms/frame` *(when `ROOM% > SLOT_EVICT%`)* | **`0.3 ms/frame`** *(aligned `85% / 92%`)* | **26× faster** | +| **Texture eviction `sweep()` overhead** | `8.0 ms/frame` *(when `ROOM% > SLOT_EVICT%`)* | **`0.3 ms/frame`** *(aligned `72–75% / 92%`)* | **26× faster** | > **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. @@ -159,7 +171,7 @@ All numbers below were measured on the same Windows 11 gaming laptop (**Intel Co ## 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. +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.