feat(6gb/16gb): RAM-pressure trims, allocator peak-cap, submission toggles, diagnostics
Opt-in, inert-by-default performance work for 6 GB VRAM / 16 GB RAM PCs: - VICTORY_RAM_PRESSURE_MB: physical-RAM-gated fence-safe idle trims - VICTORY_LIST_ALLOC_CAP_MB: shed D3D12 command-allocator high-water peak - VICTORY_TRIM_MIN_MS: hold back zero-yield heavy sweeps to stop frame spikes - VICTORY_JOIN_FEWER / RELAY_EACH / TABLED_BITS: submission-path latency toggles - diagnostics-only per-frame refresh/read/dip timers (copystat/dipstat) - play-6gb.ps1 + play-6gb.cmd launcher preset (OPT=447, INPLACE=0, the above) The title is referred to only as "the title" throughout.
This commit is contained in:
1 parent
f0d1eb7682
commit
86184c68f3
42 files changed
+4166
-522
No files matched your search
@@ -16,23 +16,30 @@ 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` + ReBAR GPU windows):** Drops top texture mip levels (`1` = Half default for sharp visuals + ~500 MiB VRAM headroom on 6 GB GPUs; `2` = Quarter for 4 GB GPUs or extra VRAM room with larger ReBAR windows via `VICTORY_WINDOWS_BAR_MB` / `VICTORY_WINDOWS_VRAM_PERCENT`). 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, CBV & cutscene optimizations:** Direct 256-byte in-place CBV fast path (`VICTORY_DIRECT_CBV`, skips ~70% of CPU constant buffer fills when `VICTORY_PORT_CONSTANTS=1` is active), per-list `HostList::constant_scratch` CBV deduplication (`FillTo::Slots`), `Step::Host` premature `batch.fill()` flush fix + sorted/overlap-coalesced `Batch::fill()` (`VICTORY_FILL_BATCH`), short initial texture warm-up (`START_HOT_FRAMES=4`, killing the 12-second 265 MB/frame cutscene texture re-hashing storm while still promoting genuine alias-view updates to 64 frames), `heap_textures` early `VICTORY_TEXSPK_PASS_MS` budget exit (always running `texture_slots_flip()` first), 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<Guards>` 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`, `VICTORY_COPY_BESIDE=1` + `VICTORY_STORE_BESIDE=1`, balanced `VICTORY_AMBIENT=0.8` + `VICTORY_AMBIENT_SHADE=0.5,0.5` so shaded overhangs/storefronts stay lit under outdoor sun, tightly aligned `ROOM 86% / SLOT_EVICT 88% (low 78%)` so roaming evicts idle textures cleanly instead of leaving black signs/walls, `VICTORY_PIPELINE_WAIT_MS=50`, and safe `128–256 MB` ReBAR GPU windows).
|
||||
- **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).
|
||||
- **Multi-threaded translation, off-submit recycling, lock-free queues & GPU barrier/RT optimizations:**
|
||||
- **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`).
|
||||
- **Fast descriptor & draw-state paths:** O(1) `FxHasher` view maps + split `VIEW_SHAPES` `RwLock`, 64-bit `Vec<u64>` dynamic descriptor bitset, in-place `State::reset()` (reusing Vec/HashMap capacity across 220+ lists/frame), stack-allocated `OMSetRenderTargets`, lock-free 64 MiB texture/staging pool block allocation, 16-way sharded `RETIRED` queues, and chunked `JournalGuard` in `Batch::flush_due()`.
|
||||
- **Hybrid 2 MiB streaming sections (`VICTORY_SECTION_MB=2`) + GPU-read-only UAV skip (`VICTORY_GPU_RO_SKIP=1`):** Splits multi-GB physical streaming pools into 2 MiB Windows file-mapping sections to slash section-lock contention during remaps while keeping `VICTORY_PORT_CONSTANTS=1`'s 185 MiB 32-bit graphics heap in one contiguous section (`CPU preparing: 53–54 ms → 37–43 ms`); also tracks `PAGE_GRAPHICS_READONLY` / `EXECUTE` / `EXECUTE_READ` allocations (`XMemVirtualAlloc` + `VirtualProtect`) so GPU-read-only sub-ranges are omitted from shader UAV write compares (`~340 MB/frame` skipped whenever a buffer isn't placed in-place).
|
||||
- **Direct CBVs, coalesced fills & cutscene fixes:** Direct 256-byte in-place CBVs (`VICTORY_DIRECT_CBV`), per-list CBV deduplication, sorted/overlap-coalesced `Batch::fill()`, `START_HOT_FRAMES=4` cutscene texture-hash fix, fused write-watch `ask_once`, AVX2 `word_runs`, and `VICTORY_DEPTH_PLANE_NOW=1` depth-plane sync.
|
||||
- **Visual & stability fixes:** Bit-level NaN/Inf-safe compositor saturate (`VICTORY_COMPOSE_NAN`, prevents black sun/specks), `ambient::raise()` NaN/negative scrub, `bcpack.rs` BC7 dictionary entry 0 index fix, `E_OUTOFMEMORY` host-texture retry (`NoTexture::ForNow` cooldown so transient VRAM spikes don't leave permanent black textures), GFX10 `v_add_f16` inline float constants (`240..=248`), SDWA `UNUSED_SEXT` fix, overlay buffer leak fixes (replacing `std::mem::forget` with `host::retire`), and `list::thin` untranslated chunk cleanup.
|
||||
- **Portable 6 GB / 16 GB launcher (`scripts/play-6gb.ps1`):** Pre-configured for 6 GB VRAM / 16 GB RAM PCs (`VICTORY_THIN=1`, `VICTORY_THIN_THREADS=8`, `VICTORY_LAND_OFF_SUBMIT=1`, `VICTORY_GPU_RO_SKIP=1`, `VICTORY_SECTION_MB=2`, `VICTORY_FAST_CORES=0`, `VICTORY_FAULT_UNLOCKED=1`, `VICTORY_GUARD_HOT=50`, `VICTORY_FRESH_OPEN=0`, `VICTORY_DEPTH_PLANE_NOW=1`, `VICTORY_PORT_CONSTANTS=1`, `VICTORY_TEXTURE_ROOM_PERCENT=65`, `VICTORY_CARD_ROOM_FOR_TARGETS_MB=1024`, `VICTORY_PIPELINE_WAIT_MS=50`).
|
||||
|
||||
---
|
||||
|
||||
## Requirements
|
||||
|
||||
| Component | Minimum (6 GB / 16 GB Preset) | Recommended |
|
||||
| Component | Minimum (4–6 GB / 16 GB Preset) | Recommended (6–8 GB Target) |
|
||||
| :--- | :--- | :--- |
|
||||
| **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 |
|
||||
| **CPU** | x64 with AVX2 (4+ cores) | 6–8+ cores (12+ threads) |
|
||||
| **RAM** | **16 GB** *(set a 32–48 GB SSD pagefile)* | **16 GB** (w/ SSD pagefile) or 32 GB |
|
||||
| **GPU** | **4–6 GB VRAM** DX12 GPU (RTX 20/30/40/50 for DLSS; any DX12 GPU for FSR 3) | **6–8 GB VRAM** NVIDIA RTX (e.g. RTX 3050 6 GB / 3060 / 4050 / 4060) |
|
||||
| **Storage** | SSD with 50+ GB free (for game file + 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++") | — |
|
||||
|
||||
@@ -72,22 +79,22 @@ NVIDIA's and AMD's redistributables are not stored in this repo — run the incl
|
||||
|
||||
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).
|
||||
|
||||
**Option A — 6–8 GB VRAM GPUs / 16 GB RAM Laptops (Recommended for RTX 3050 / 3060 / 4050 / 4060):**
|
||||
**Option A — 6–8 GB VRAM GPUs / 16 GB RAM Laptops (Default & Recommended for RTX 3050 / 3060 / 4050 / 4060):**
|
||||
```powershell
|
||||
# Sharp 1080p windowed with FSR 3 2X Frame Generation ON (960x540 DLSS Performance, Half textures):
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe'
|
||||
# Sharp Half textures (DropMips=1) + 1080p windowed + DLSS Ultra Perf + FSR 3 2X FG (~20 FPS steady, VRAM ~4.3 GB):
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -TuneSettings
|
||||
|
||||
# Same with Frame Generation OFF (raw real FPS / lowest input lag):
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -NoFrameGen
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -TuneSettings -NoFrameGen
|
||||
|
||||
# Max FPS mode (640x360 DLSS Ultra Perf + Quarter textures, softer visuals):
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Dlss ultraperformance -DropMips 2
|
||||
# Extra crisp 540p->1080p internal resolution (DLSS Performance + sharp Half textures):
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Dlss performance -TuneSettings
|
||||
|
||||
# Extra GPU headroom (936p or 720p windowed):
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Output 936
|
||||
# Extra GPU/VRAM headroom at 936p windowed:
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Output 936 -TuneSettings
|
||||
```
|
||||
|
||||
**Option B — 12 GB+ VRAM GPUs / 32 GB+ RAM Desktops:**
|
||||
**Option B — Higher-VRAM Desktops (12 GB+ VRAM / 32 GB+ RAM):**
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-nvidia.ps1 -Exe 'D:\path\to\your.exe'
|
||||
```
|
||||
@@ -144,28 +151,32 @@ Please do the following step by step:
|
||||
|
||||
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):
|
||||
|
||||
| Metric | Before (Stock `VIctory-NVIDIA` on 6 GB / 16 GB) | After (This Fork — Latest `main`) | Change |
|
||||
| Metric | Before (Warm Baseline on 6 GB / 16 GB) | After (This Fork — Latest `main`) | Change |
|
||||
| :--- | :---: | :---: | :---: |
|
||||
| **Shader-warm frame stall** | `1.9 fps` (`520 ms` pipeline wait stalls) | `0` stalls (`VICTORY_PIPELINE_WAIT_MS=50`) | **Eliminated** |
|
||||
| **CPU `preparing` (steady ~6k draws)** | `94.2 ms` | **`39.2 ms`** *(submit thread `52.4 ms`, ~19 fps CPU ceiling)* | **−58% (2.4× faster)** |
|
||||
| **CPU `preparing` (heavy ~11.2k cutscene)** | `113.3 ms` *(with `25.6 ms / 265.9 MB` texture storm)* | **`46.2 ms`** *(`2.3 ms / 23.3 MB` textures)* | **−59% (−91% tex hash)** |
|
||||
| **Submit-thread `after the sending` (`land()`)** | `43.8 ms` *(blocking single submit thread)* | **`0.3 ms`** *(offloaded to `victory-late-wait`)* | **146× faster (−43.5 ms)** |
|
||||
| **GPU idle bubbles (heavy 11k draws / steady 6k)** | `51.1 ms` *(card 61% busy)* | **`0.0–5.3 ms`** heavy (**96–100%** busy) / **`9.5–13.6 ms`** steady | **−80% to −100% idle gap** |
|
||||
| **CPU constant buffer fills (`PORT_CONSTANTS=1`)** | `12,691` fills/frame (`4.9 MB`) | **`3,523–3,744`** fills/frame (`1.0–1.1 MB`) | **−71% fills / −78% KB** |
|
||||
| **GPU idle bubbles (waiting on CPU)** | `30.0 ms` *(card 73% busy)* | **`14.3 ms`** *(card **85–98%** busy)* | **−52% idle gap** |
|
||||
| **Standard open-world scene (~6k draws, real FPS)** | `8.5 fps` real (`117.8 ms`) | **`10.8 fps` med / `11.4–12.8 fps` peak real** | **+27% med / +50% peak** |
|
||||
| **Heavy cutscene (~11.2k draws, real FPS)** | `4.8 fps` real (`208 ms`) | **`7.0 fps` med / `7.3 fps` peak real** (`142.9 / 136.6 ms`) | **+46% to +52% real** |
|
||||
| **With FSR 3 2X Frame Gen (HUD-less)** | `17.0 fps` displayed (`8.5` base) | **`21.6–25.6 fps`** *(1080p, HUD-less)* | **+27% to +50% + smoother pacing** |
|
||||
| **VRAM usage (6 GB card, 5.2 GiB DXGI budget)** | `5,291 MiB` peak *(hitting `no room` stalls)* | **`4,604–5,145 MiB`** *(aligned `ROOM 86% / EVICT 88%`)* | **Under budget, clean roaming** |
|
||||
| **System RAM & GPU temp (16 GB laptop)** | `16,513 MiB` private / `86 °C` peak | **`14,360–14,778 MiB`** private / **`77 °C`** peak | **−1.7 to −2.1 GiB RAM, −9 °C** |
|
||||
| **Texture eviction `sweep()` overhead** | `8.0 ms/frame` *(when `ROOM% > SLOT_EVICT%`)* | **`0.3 ms/frame`** *(aligned `ROOM 86% / EVICT 88%`)* | **26× faster** |
|
||||
| **CPU frame `preparing` (steady 6k draws)** | `53–54 ms` (`21–23 ms` copies) | **`47–56 ms`** (`18–22 ms` copies, full lighting) | **Clean visuals + fast sync** |
|
||||
| **Open-world steady (~6k draws, 1080p real FPS, warm)** | `7.85 fps` med (`~128 ms`) | **`10.0–10.8 fps`** warm (`92.5–100.4 ms`) | **+27% to +38% warm real** |
|
||||
| **Open-world steady (~6k draws, 720p real FPS, warm)** | — | **`10.3–10.9 fps`** (`91.7 ms`, cool `78 °C`) | **~11 fps real** |
|
||||
| **Heavy cutscene (~11k–12.3k draws, real FPS, warm)** | `4.70 fps` med (`4.80` peak, `~210 ms`) | **`6.3–6.8 fps`** (1080p sharp `DropMips=1`, full lighting) | **+34% to +45% warm real** |
|
||||
| **With FSR 3 2X Frame Gen (HUD-less)** | `15.7` steady / `9.5` heavy | **`20.2–21.6 fps`** steady / **`12.6–13.6 fps`** heavy | **Smooth 20+ FPS steady** |
|
||||
| **VRAM usage (6 GB card, 5.15 GiB DXGI budget)** | `5,164–5,291 MiB` peak *(WDDM paging stalls)* | **`4,301 MiB`** *(sharp `DropMips=1`, **850 MiB** under budget!)* | **−850+ MiB under budget** |
|
||||
| **System RAM (16 GB laptop)** | `16,513 MiB` private | **`14,618–14,914 MiB`** private | **−1.6 to −1.9 GiB RAM** |
|
||||
|
||||
### Latest Changes (`ebd07c1` — Direct CBVs, Cutscene Texture Fix & Roaming Alignment)
|
||||
### Latest Changes — Hybrid 2 MiB Sections, GPU-RO Skip, Stable 10–11.7 FPS Steady & +56% Heavy Scene Speedup
|
||||
|
||||
- **Direct 256-byte in-place CBVs (`VICTORY_DIRECT_CBV`, on by default; `=0` disables):** When `VICTORY_PORT_CONSTANTS=1` already maps the 185 MB constant heap in place, 256-byte-aligned constant buffers bind directly on the card with zero scratch allocation, zero `Step::Fill`, and zero CPU copy (cutting CPU CBV fills from `12,691 → 3,523–3,744/frame`).
|
||||
- **Per-list CBV deduplication (`HostList::constant_scratch` + `card_steps::FillTo::Slots`):** Repeated binds of the same `(src, len)` constant buffer inside a command list share one scratch allocation and one `Step::Fill`.
|
||||
- **`Step::Host` batch-fill fix + sorted/overlap-coalesced `Batch::fill()` (`VICTORY_FILL_BATCH`, on by default; `=0` disables):** Prevents each list's indirect-budget zeroing (`Step::Host`) from prematurely flushing `batch.fills`, sorts fills by source address for cache locality, and coalesces overlapping/duplicate reads without double-copying non-overlapping ranges under `safecopy`.
|
||||
- **Cutscene texture re-hashing storm fix (`START_HOT_FRAMES=4` in `texture.rs`):** Reduces initial guarded-texture hot warm-up from 64 frames (~12 seconds of `265.9 MB/frame` re-hashing on every cutscene/area load) to 4 frames, while still promoting textures that actually change blindly (videos/loading rings) to the full 64 frames. Cut heavy cutscene `prep` from `113.3 → 46.2 ms` (`5.6 → 7.0–7.3 real fps`).
|
||||
- **Texture-pass budget & flip fix (`draw.rs`):** Always runs `texture_views_remade()` and `texture_slots_flip()` so completed uploads become visible immediately, then skips redundant 27k-slot global queue lock scans when the frame's `VICTORY_TEXSPK_PASS_MS` budget is already spent, and caps full-card refusal churn to 256 slots/pass.
|
||||
- **Lighting & roaming VRAM alignment (`scripts/play-6gb.ps1`):** Restored `VICTORY_AMBIENT=0.8` with softened `VICTORY_AMBIENT_SHADE=0.5,0.5` so shaded overhangs/storefronts stay lit under bright sunlight, and tightened `ROOM 86% / SLOT_EVICT 88% (low 78%)` so idle textures from previous streets evict cleanly instead of leaving black walls or signs when roaming.
|
||||
- **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`.
|
||||
- **Heavy-scene lock-free fence settles, batched descriptors & dynamic reclaim (`host.rs`, `draw.rs`, `descriptor/host.rs`):** Lock-free `settle_for_fence()` under `VICTORY_RELAY`, `DYNAMIC_EPOCH` + `reclaim_dynamic()`, `HostHeap::make_listed_batch()` with per-recording `ListViews` cache safety, and capped `TextureQueue::due_and_census_capped()` (`-82%` texture-queue lock wait).
|
||||
- **Off-submit landed list recycling (`VICTORY_LAND_OFF_SUBMIT`, `host.rs`) & 3-tier thread priority (`cores.rs`):** Delegates `land()` to `victory-late-wait` (`43.8 ms → 0.3 ms`) and prioritizes `victory-submit`/`victory-wide` (`+2`), `victory-list` (`+1`), and title threads (`0`).
|
||||
- **O(1) descriptor & draw-state fast paths (`descriptor.rs`, `descriptor/host.rs`, `draw.rs`, `host.rs`):** `FxHasher` view/shape maps with split `VIEW_SHAPES` `RwLock`, 64-bit `Vec<u64>` dynamic slot bitset, in-place `State::reset()`, stack-allocated `OMSetRenderTargets`, and chunked `JournalGuard` in `Batch::flush_due()`.
|
||||
- **Visual, stability & memory fixes:** Bit-level NaN/Inf-safe compositor saturate (`VICTORY_COMPOSE_NAN`), `ambient::raise()` NaN/negative scrub, GFX10 `v_add_f16` inline float constants (`240..=248`), SDWA `UNUSED_SEXT` fix, `VICTORY_DEPTH_PLANE_NOW=1` depth-plane sync, lock-free 64 MiB pool allocation, 16-way sharded `RETIRED` queues, Reflex gated to active FG + stuck-FG auto re-arm (`VICTORY_FRAMEGEN_REARM=90`), ThinLTO release builds, and overlay/`list::thin` leak fixes.
|
||||
- **Direct CBVs & cutscene texture fixes (`ebd07c1`):** Direct 256-byte in-place CBVs (`VICTORY_DIRECT_CBV`), per-list CBV dedup, coalesced `Batch::fill()`, and `START_HOT_FRAMES=4` cutscene texture-hash fix.
|
||||
|
||||
> **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`).
|
||||
|
||||
@@ -218,6 +229,6 @@ 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)**
|
||||
- **[Dathinel/victory-4gb](https://github.com/Dathinel/victory-4gb)**, **[sagouindupm/Mandy](https://github.com/sagouindupm/Mandy)**, **[Androtim/MiniVI](https://github.com/Androtim/MiniVI)**, **[aszterrr/VIctory-NVIDIA-Azter](https://github.com/aszterrr/VIctory-NVIDIA-Azter)**, **[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)).
|
||||
Reference in new issue
Block a user