diff --git a/README.md b/README.md index 1bebe23..819253a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ A performance- and low-memory-tuned fork of [VIctory-NVIDIA](https://github.com/ - **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. +- **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). @@ -133,13 +133,14 @@ All numbers below were measured on the same Windows 11 gaming laptop (**Intel Co | Metric | Before (Stock `VIctory-NVIDIA` on 6 GB / 16 GB) | After (This Fork + Tuned Preset) | Change | | :--- | :---: | :---: | :---: | | **Shader-warm frame stall** | `1.9 fps` (`520 ms` pipeline wait stalls) | `0` stalls (`VICTORY_PIPELINE_WAIT_MS=50`) | **Eliminated** | -| **CPU `preparing` per frame** | `94.2 ms` | **`45.0 ms`** *(720p)* / **`53.7 ms`** *(1080p)* | **−52% (2.1× faster)** | -| **GPU idle bubbles (waiting on CPU)** | `24.2 ms` *(with `FAST_CORES=2`)* | **`8.4 ms`** *(1080p)* / **`16.7 ms`** *(720p)* | **GPU 97–99% busy** | -| **Standard open-world scene (~6k draws, real FPS)** | `8.5 fps` real (`117.8 ms`) | **`10.1–10.4 fps` real** *(720p)* / **`9.0–9.8 fps`** *(sharp 1080p + all visuals)* | **+19% to +22% real** | -| **Heavy open-world scene (~11k draws, real FPS)** | `4.8 fps` real (`208 ms`) | **`7.3 fps` real** *(720p)* / **`6.0 fps` real** *(sharp 1080p)* | **+25% to +52% real** | -| **With FSR 3 2X Frame Gen (HUD-less)** | `17.0 fps` displayed (`8.5` base) | **`18.0–19.6 fps`** *(sharp 1080p, 96/96 HUD-less)* | **+15% + cleaner pacing** | -| **VRAM usage (6 GB card, 5.2 GiB DXGI budget)** | `5,291 MiB` peak *(hitting `no room` stalls)* | **`4,604–4,872 MiB` avg** | **Up to −687 MiB VRAM** | -| **System RAM (16 GB host)** | `16,513 MiB` private commit | **`14,703–14,900 MiB`** private / **`5.1–6.4 GiB`** working set | **−1.6 to −1.8 GiB RAM** | +| **CPU `preparing` per frame** | `94.2 ms` | **`43.5–44.2 ms`** *(1080p)* / **`45.0 ms`** *(720p)* | **−54% (2.17× faster)** | +| **Texture refresh CPU time (all threads)** | `33.4 ms` (`6.6 ms` watch/guards) | **`17.8 ms`** (`1.7–2.3 ms` watch/guards) | **−47% (−65% watch)** | +| **GPU idle bubbles (waiting on CPU)** | `24.2 ms` *(with `FAST_CORES=2`)* | **`4.4–8.5 ms`** *(1080p)* | **GPU 95–99% busy** | +| **Standard open-world scene (~6k draws, real FPS)** | `8.5 fps` real (`117.8 ms`) | **`9.5–9.9 fps` real** *(sharp 1080p + all visuals)* / **`10.1–10.4 fps`** *(720p)* | **+15% to +22% real** | +| **Heavy open-world scene (~11k draws, real FPS)** | `4.8 fps` real (`208 ms`) | **`6.5–6.7 fps` real** *(sharp 1080p)* / **`7.3 fps` real** *(720p)* | **+35% to +52% real** | +| **With FSR 3 2X Frame Gen (HUD-less)** | `17.0 fps` displayed (`8.5` base) | **`19.0–19.8 fps`** *(sharp 1080p, 100/100 HUD-less)* | **+16% + cleaner pacing** | +| **VRAM usage (6 GB card, 5.2 GiB DXGI budget)** | `5,291 MiB` peak *(hitting `no room` stalls)* | **`4,604–4,965 MiB` avg** | **Up to −687 MiB VRAM** | +| **System RAM (16 GB host)** | `16,513 MiB` private commit | **`14,703–14,900 MiB`** private / **`4.1–5.1 GiB`** working set | **−1.6 to −1.8 GiB RAM** | | **Texture eviction `sweep()` overhead** | `8.0 ms/frame` *(when `ROOM% > SLOT_EVICT%`)* | **`0.3 ms/frame`** *(aligned `85% / 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.