[RTX 3080 10 GB / 7800X3D / 32 GB RAM] Live log & screenshots: 512-702 FPS menu, 2.9-3.6 FPS & missing cutscenes/heads/HUD glyphs, 10.3s wait_resident stalls — comparison + 7 patches from a modified VIctory-Belobug-AMD fork (happy to PR) #1023

Closed
opened 2026-11-28 14:31:55 +00:00 by github-bot · 1 comment
Owner

@⁠ToolxMaster on GitHub · 2026-11-28 11:19 UTC · original

Hardware & Test Setup

  • GPU: NVIDIA GeForce RTX 3080 10 GB (vendor=0x10de, device=0x2206, DXGI local VRAM budget: 9,283 MiB)
  • CPU: AMD Ryzen 7 7800X3D (8 cores / 16 threads, with integrated AMD Radeon Graphics present)
  • RAM: 32 GB DDR5
  • OS: Windows 11
  • Tested build: VIctory-NVIDIA-2026.11.28.01 (cargo build --release --locked -p victory), launched via victory.exe play game_scarlett_master.exe with an isolated VICTORY_HOME (default launch profile: Series X, 2560x1440, --fps 1000, no Streamline DLLs -> title upscaling).
  • Comparison baseline: Our heavily modified version of VIctory-Belobug-AMD (adapted with custom NVIDIA Wave32 lowering, WDDM physical residency, VICTORY_WAIT_RESIDENT=textures, screen-compute prioritization, row_run detiling, and dynamic descriptor reclaim) tested on the exact same PC, OS, driver, and game dump.

Visual Observations (Screenshots)

First, credit where it's due: VIctory-NVIDIA's lighting and shadow rendering look noticeably cleaner than our VIctory-Belobug-AMD fork — no weird triangle artifacts and no glitching shadows once the room renders.

However, out of the box on this RTX 3080 10 GB / Ryzen 7 7800X3D / 32 GB RAM setup, the opening sequence hits four major visual issues:

  1. Opening cutscene fails to render (~90 seconds at 2.9–3.6 FPS): Shows only a solid blue sky/fog gradient with subtitles (Could I have another ice water, please? at 3.5 fps, 1256 draws/frame) and heavy noisy haze behind the PROLOGUE card (3.2 fps, 4461 draws/frame) while cold pipelines compile.
  2. Missing character heads (VICTORY_THIN=1): In the prison cell, both Lucia and her cellmate render without heads (only floating eyeballs, teeth, hair, and glasses remain). Note that host/menu.rs:186-189 mentions this happening on a 6-core CPU — it also reproduces on an 8-core / 16-thread Ryzen 7 7800X3D.
  3. Corrupted / missing HUD button-prompt text glyphs: Prompts drop most characters (e.g., H ld [LT] t i t t instead of Hold [LT] to interact).
Screenshot 2026-11-28 125430 Screenshot 2026-11-28 125420 Screenshot 2026-11-28 125345 Screenshot 2026-11-28 125321 Screenshot 2026-11-28 125257

Live Measured Comparison: Stock VIctory-NVIDIA vs. Heavily Modified VIctory-Belobug-AMD

From the VIctory-NVIDIA-2026.11.28.01 log (victory-nvidia-play-20261128-105142-19480.log) vs. our modified VIctory-Belobug-AMD release logs (filtering in-world frames with >500 draws/frame):

Metric (Same PC: RTX 3080 10 GB / 7800X3D / 32 GB RAM) Stock VIctory-NVIDIA (2026.11.28.01, release) Modified VIctory-Belobug-AMD (release)
Menu FPS 512.2 – 702.7 fps (1.4 – 2.0 ms/frame) Capped / controlled cleanly
Opening world / cutscene (~90s cold window) 2.9 – 3.6 fps (281.0 – 342.3 ms/frame, 18 consecutive 5s windows) Immediate cutscene rendering (SCREEN_COMPUTE=1)
Draws dropped without host pipeline 3,094 -> 318 draws/frame dropped (still 318–332 after warm) 0 missing cutscene compute passes (SCREEN_COMPUTE=1)
Post-compile world FPS 10.7 – 13.5 fps (final 3 windows, 39.8 – 51.4 ms on GPU, 6,257–6,501 draws) Run 15: 14.6 median / 22.9 max fps (64 intervals)
Run 20: 13.2 median / 17.7 max fps (5,393–11,801 draws)
GPU Busy % (in-world end) 92–93% (6.4–6.5 ms idle behind CPU submit) 89–92% median
new card memory waited for until mapped 19,000 waits, 1,928.4 ms total (longest 65.0 ms) 800 waits, 123.0 – 146.4 ms total (longest 11.6 – 13.7 ms)
new memory waited for (CreateCommittedResource / host) 20,000 waits, 8,386.8 ms total (longest 866.0 ms) < 1,000 waits (0 logs hit in Run 20; ~10s+ eliminated)
card_steps GPU fills per frame 10,678 – 11,117 fills/frame (4,577 – 4,798 KB/frame) 54.4 – 73.0 fills/frame (27.2 – 36.9 KB/frame, ~150x fewer)
our passes over copies per frame 136–145 hash passes + 356 compare passes, 1,611 MiB buffer mirror span Near-zero constant heap mirroring (VICTORY_PORT_CONSTANTS=1)
WDDM commit pressure warning (< 4 GiB commit) Triggered at frame=14889 (physical_free_mib=3335, available_commit_mib=3947) Avoided false throttling via VICTORY_RESIDENCY_PHYSICAL_ONLY=1

Here is the log for VIctory-NVIDIA:

victory-nvidia-play-20261128-105142-19480.log

Here are our logs:

victory-belobug-run15.log
victory-belobug-run20.log


What VIctory-NVIDIA Already Does Really Well

From inspecting VIctory-NVIDIA-2026.11.28.01:

  • hardware_adapter() (crates/victory-shader/src/emit/host.rs:78-119) cleanly picked the RTX 3080 over the 7800X3D iGPU (adapter=NVIDIA GeForce RTX 3080).
  • Native DLSS + DLSS FG / AMD FSR 3 FG + F1 settings menu + victory preload (apps/victory/src/play.rs, crates/victory-gpu/src/host/menu.rs).
  • Rendering & lifetime engineering: VICTORY_AMBIENT_SPECULAR=1 (crates/victory-gpu/src/ambient.rs), VICTORY_EARLY_DEPTH=1, VICTORY_LEAVE_OUT, Detached::release_tables(), make_at write_stride (crates/victory-gpu/src/descriptor/host.rs:3528), and the CS_AlphTransmissionPrefilterMip resource-tracer fix.

Root Causes Observed in the Live VIctory-NVIDIA Log

  1. 10.3+ Seconds of VICTORY_WAIT_RESIDENT Stalls (crates/victory-gpu/src/host.rs:230-359)

    • wait_resident() defaults ON for both mapped() (19,000 waits = 1,928.4 ms) and resident() (20,000 waits = 8,386.8 ms, single worst stall 866.0 ms).
    • Scoping D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT + mapping waits to texture pool heaps and depth twins (VICTORY_WAIT_RESIDENT=textures) cut waits by ~13x–15x (800 waits / 123–146 ms) with zero corruption on face/skin bakes.
  2. VICTORY_PORT_CONSTANTS=1 Off by Default (apps/victory/src/play.rs:55-116, crates/victory-gpu/src/port.rs:2)

    • Without it enabled in SETTINGS, card_steps executed 11,117 fills/frame (4,798 KB/frame), our passes over copies ran 136–145 hash passes + 356 compare passes/frame, and buffer_mirror_span_mib sat at 1,611 MiB out of a 9,283 MiB VRAM budget.
    • Turning on VICTORY_PORT_CONSTANTS=1 dropped card_steps on the same scenes to 54–73 fills/frame (27–37 KB/frame).
  3. Cold Pipeline Queue Starving Cutscene Compute Shaders (crates/victory-gpu/src/pipeline/make.rs:135-167)

    • For the first ~90 seconds in-world, VIctory-NVIDIA ran at 2.9 – 3.6 fps with 0.0 on the GPU in 14/18 5-second intervals while dropping 1,099 – 3,094 draws/frame.
    • scene_input() only prioritizes 6 hardcoded shader hashes + BAKE_PIXEL_SHADERS, leaving core shadow/lighting/probe compute shaders queued behind 1,000+ regular world pipelines.
  4. WDDM Commit-Charge Throttling on 32 GB RAM / 10 GB VRAM (crates/victory-gpu/src/residency.rs:45-160)

    • At frame=14889, VIctory-NVIDIA logged:
      host memory pressure: limiting texture prefetch and idle upload storage pid=19480 frame=14889 physical_free_mib=3335 available_commit_mib=3947 buffer_mirror_span_mib=1611 texture_staging_mib=37 spare_scratch_mib=23 game_filled_gpu_texture_mib=2990
    • Because Windows WDDM mirrors VRAM allocations 1:1 in ullAvailPageFile and residency.rs enforces commit <= 4 GiB pressure / < 1536 MiB critical commit, texture prefetch gets throttled even when 3.3 GiB physical RAM is still free.
  5. Conservative Wave64-on-Wave32 Widening (crates/victory-shader/src/emit/mod.rs:655-685, lower.rs:1800)

    • emit/mod.rs restricts widening to a 6-digest allowlist (scene_kernel) to avoid the ptfx_CS_lightAtlas_Sprite/_Trail TDR, leaving other Wave64 lighting/shadow/probe shaders on slower fallback paths, while lower.rs:1800 still excludes ds_bpermute from exact 32-lane wave splitting.
  6. Defaults in apps/victory/src/play.rs:55-186 Triggering Missing Heads & Glyph Drops on 8-Core / 10 GB Hosts

    • VICTORY_THIN=1 is enabled by default in SETTINGS, which causes missing heads not just on 6-core CPUs (host/menu.rs:186-189) but also on an 8C/16T 7800X3D, alongside dropped HUD text glyphs and res = "1440" + --fps 1000 (512–702 FPS menus, VRAM pressure on 10 GB cards).

Changes from Our Heavily Modified VIctory-Belobug-AMD Fork You Can Test

These are the specific modifications we made to VIctory-Belobug-AMD that produced the numbers above — sharing them so you can try whether they improve performance, warmup, and memory headroom in VIctory-NVIDIA too:

1. WDDM Physical-RAM Residency Mode & Tunable Commit Floor (crates/victory-gpu/src/residency.rs)

Judge normal host pressure by free physical RAM (VICTORY_RESIDENCY_PHYSICAL_ONLY=1) so WDDM's 1:1 VRAM commit doesn't prematurely choke texture prefetch, and allow lowering the emergency commit floor (VICTORY_RESIDENCY_CRITICAL_COMMIT_MB=256 instead of 1536 MiB):

/// `VICTORY_RESIDENCY_PHYSICAL_ONLY=1`: judge normal host-memory pressure by
/// free physical RAM alone so Windows WDDM's 1:1 VRAM commit charge does not
/// falsely throttle texture prefetching on 32 GiB hosts with ample free RAM.
fn physical_only() -> bool {
    static ON: OnceLock<bool> = OnceLock::new();
    *ON.get_or_init(|| std::env::var_os("VICTORY_RESIDENCY_PHYSICAL_ONLY").is_some_and(|v| v == "1"))
}

/// Emergency OS commit floor in bytes for [`critical_commit`]
/// (`VICTORY_RESIDENCY_CRITICAL_COMMIT_MB`, default `1536`, min `128`).
fn critical_commit_bytes() -> u64 {
    static BYTES: OnceLock<u64> = OnceLock::new();
    *BYTES.get_or_init(|| {
        std::env::var("VICTORY_RESIDENCY_CRITICAL_COMMIT_MB")
            .ok()
            .and_then(|v| v.trim().parse::<u64>().ok())
            .map_or(1536 * MIB, |mb| mb.max(128) * MIB)
    })
}

fn next_pressure_for(was: bool, physical: u64, commit: u64, phys_only: bool) -> bool {
    if phys_only {
        if was { physical < 5 * GIB } else { physical <= 3 * GIB }
    } else if was {
        physical < 5 * GIB || commit < 6 * GIB
    } else {
        physical <= 3 * GIB || commit <= 4 * GIB
    }
}

And in refresh() / critical_commit():

HEADROOM.store(if physical_only() { physical } else { physical.min(commit) }, Ordering::Relaxed);
let pressure = next_pressure_for(was, physical, commit, physical_only());
// ...
pub(crate) fn critical_commit() -> bool {
    let now = crate::host::coarse_ms();
    now < RETRY_UPLOAD_AT.load(Ordering::Relaxed) || sample_commit(now) < critical_commit_bytes()
}

(We also pair this with VICTORY_TEXTURE_ROOM_PERCENT=75 / VICTORY_VRAM_KEEP_PERCENT=75 on <= 10 GiB cards.)


2. Scoped VICTORY_WAIT_RESIDENT=textures (crates/victory-gpu/src/host.rs)

Keeps D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT + resident() + mapped() on texture pool heaps (pool.rs) and depth/texture twins (resource.rs), while letting committed buffers (host.rs) skip the global ASIDE copy-queue mutex (which cost 8.39s + 1.93s in the benchmark above):

/// Whether committed buffers also wait for residency and GPU mapping
/// (`VICTORY_WAIT_RESIDENT=textures` keeps residency waits on texture pool
/// heaps and depth twins while skipping per-buffer stalls).
fn wait_resident_buffers() -> bool {
    static ON: OnceLock<bool> = OnceLock::new();
    *ON.get_or_init(|| {
        std::env::var("VICTORY_WAIT_RESIDENT")
            .ok()
            .is_none_or(|v| !matches!(v.trim(), "0" | "textures"))
    })
}

pub(crate) fn not_resident() -> D3D12_HEAP_FLAGS {
    if wait_resident() { D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT } else { D3D12_HEAP_FLAG_NONE }
}

fn not_resident_buffer() -> D3D12_HEAP_FLAGS {
    if wait_resident_buffers() { D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT } else { D3D12_HEAP_FLAG_NONE }
}

3. Safe Wave64-on-Wave32 Widening (VICTORY_WAVE_WIDE=safe), LDS Region Barriers (VICTORY_LDS_REGION_RACE=1), and ds_bpermute Wave32 Fix (crates/victory-shader)

a) safe_to_widen() in crates/victory-shader/src/emit/mod.rs
Instead of restricting widening to 6 digests, VICTORY_WAVE_WIDE=safe widens all wave64 shaders except ptfx_CS_lightAtlas_*:

/// Whether `c` is safe to widen with `VICTORY_WAVE_WIDE=safe` (excludes `ptfx_CS_lightAtlas_*`).
fn safe_to_widen(c: &Container) -> bool {
    const EXCLUDE: &[u8] = b"ptfx_CS_lightAtlas_";
    !c.parts
        .iter()
        .any(|part| part.data.windows(EXCLUDE.len()).any(|w| w == EXCLUDE))
}

Tested on RTX 3080: 16/16 eligible shaders widen cleanly and both ptfx_CS_lightAtlas_* shaders are excluded with 0 TDRs.

b) lds_meetings(..., allow_race: bool) (VICTORY_LDS_REGION_RACE=1) in crates/victory-shader/src/emit/lower.rs
Keeps all-lane entry/exit group barriers around mixed read/write lane-branch LDS regions rather than aborting translation:

    let flags_on = std::env::var_os("VICTORY_LDS_FLAGS").is_none_or(|v| v != "0");
    if !allow_race {
        for r in (0..n).filter(|&r| reads[r] && writes[r]).collect::<Vec<_>>() {
            let blocks: Vec<usize> = (0..n).filter(|&b| !all[b] && find(&mut region, b) == r).collect();
            if !(flags_on && lds_flag_region(p, st, &blocks)) {
                return None;
            }
        }
    }

c) Remove ds_bpermute from crosses (crates/victory-shader/src/emit/lower.rs:1800)
On GFX10, ds_bpermute is confined to each 32-lane half under thread relabelling (only ds_permute crosses halves), so removing || n.starts_with("ds_bpermute") from crosses avoids forcing those shaders off exact Wave32 splitting.


4. Pixel Shader s_wqm Live-Quad Mask Propagation + VICTORY_NAN_GUARD=1 & VICTORY_D16_BITS=1

a) s_wqm Live-Quad Mask (crates/victory-shader/src/structure.rs)
VIctory-NVIDIA/crates/victory-shader/src/structure.rs defines Atom::Quad(Value), but doesn't yet track quad_sources into scc_lane:

// Collect sources of `s_wqm_b*` instructions:
if inst.name().starts_with("s_wqm_b") {
    quad_sources.extend(
        inst.uses.iter().filter_map(|u| match u { Operand::Value(v) => Some(*v), _ => None })
    );
}

// Propagate quad liveness into scc_lane:
if let (Some(scc), Some(mut m)) = (inst.write(Reg::Scc), r.scc) {
    if let Some((k, _)) = r.dst
        && self.quad_sources.contains(&k.0)
        && LIVE_QUADS.get()
    {
        let born = self.born(k.0);
        let q = self.b.atom(Atom::Quad(k.0), born);
        m = self.b.or(m, q);
    }
    self.scc_lane.insert(scc, m);
}

b) VICTORY_NAN_GUARD=1 & VICTORY_D16_BITS=1 (crates/victory-shader/src/emit/lower.rs, keyed in shader_cache.rs)

/// (`VICTORY_NAN_GUARD=1`) Clamps NaN -> 0 and +-inf -> +-65504 on pixel
/// shader float colour exports so bad pixels do not stick in exposure/history
/// targets.
fn nan_guard(&mut self, f: V) -> V {
    if !nan_guard_on() {
        return f;
    }
    let c = self.cur;
    let bits = self.as_int(f);
    let mag = self.s.m.i32(0x7FFF_FFFF);
    let abs = self.s.m.bin(c, Bin::And, bits, mag);
    let inf_bits = self.s.m.i32(0x7F80_0000);
    let nan = self.s.m.cmp(c, pred::IUGT, abs, inf_bits);
    let inf = self.s.m.cmp(c, pred::EQ, abs, inf_bits);
    let sign_bit = self.s.m.i32(0x8000_0000);
    let sign = self.s.m.bin(c, Bin::And, bits, sign_bit);
    let big = self.s.m.i32(65504f32.to_bits());
    let big = self.s.m.bin(c, Bin::Or, sign, big);
    let zero = self.s.m.i32(0);
    let r = self.s.m.select(c, inf, big, bits);
    let r = self.s.m.select(c, nan, zero, r);
    self.as_float(r)
}

/// (`VICTORY_D16_BITS=1`) Keeps low 16 bits for d16 loads/gathers through
/// integer-format views instead of converting denormals/negative ints as float.
fn d16_bits(&mut self, x: V) -> V {
    let c = self.cur;
    let i32t = self.s.t.i32;
    let half = self.s.op(c, "legacyF32ToF16", Attr::ReadNone, i32t, 130, &[x]);
    if !d16_bits_on() {
        return half;
    }
    let bits = self.as_int(x);
    let (top, neg) = (self.s.m.i32(0xFFFF), self.s.m.i32(0xFFFF_7FFF));
    let small = self.s.m.cmp(c, pred::IULE, bits, top);
    let negative = self.s.m.cmp(c, pred::IUGT, bits, neg);
    let integer = self.s.m.bin(c, Bin::Or, small, negative);
    let low = self.s.m.bin(c, Bin::And, bits, top);
    self.s.m.select(c, integer, low, half)
}

(Key "VICTORY_LDS_REGION_RACE", "VICTORY_NAN_GUARD", and "VICTORY_D16_BITS" in shader_cache.rs.)


5. Broad Screen-Compute Priority (VICTORY_SCREEN_COMPUTE=1, crates/victory-gpu/src/pipeline/make.rs)

Generalizes scene_input() so core lighting, shadow, screen-probe, volumetric, SSS, hair, and TAA compute passes compile on the screen workers before world pipelines (while explicitly excluding CS_RaytracingResolve):

const SCREEN_COMPUTE_NAMES: [&[u8]; 19] = [
    b"CS_GenerateShadowMasks",
    b"CS_DenoiseShadowMask",
    b"CS_ScreenProbes_",
    b"CS_ClusterLights",
    b"CS_GatherDiffusion",
    b"CS_SSS",
    b"CS_SceneColorTemporalResolve",
    b"CS_ApplyTemporalAA",
    b"CS_ApplyCombinedDeferred",
    b"CS_IrradianceCache_",
    b"CS_TransmissionVolumetrics_",
    b"CS_Bloom",
    b"CS_ClearTile",
    b"CS_ClearShadowMask",
    b"CS_HairTile",
    b"CS_MaterialTiles",
    b"CS_TemporalResolve",
    b"CS_AccumulateLocalLightInscatteringVolume",
    b"CS_CacheScreenSpaceRadiance",
];

fn is_screen_compute(shaders: &[Arc<Shader>]) -> bool {
    let [shader] = shaders else { return false };
    if shader.stage != "compute" {
        return false;
    }
    let bytes = shader.container_bytes();
    let has = |pat: &[u8]| bytes.windows(pat.len()).any(|w| w == pat);
    !has(b"CS_RaytracingResolve") && SCREEN_COMPUTE_NAMES.iter().any(|pat| has(pat))
}

6. Dynamic Descriptor Reclaim Before Full GPU Settle (crates/victory-gpu/src/host.rs + draw.rs)

Replaces host.dynamic(1).or_else(|| { crate::host::settle_for_fence(); host.dynamic(1) }) in draw.rs:2239 by draining queue::before_sync() + line().landed first before falling back to waiting on in-flight work:

// crates/victory-gpu/src/host.rs
pub(crate) fn reclaim_dynamic_slots() -> bool {
    crate::queue::before_sync();
    let mut reclaimed = false;
    let drained: Vec<_> = {
        let mut line = line();
        line.landed.drain(..).collect()
    };
    if !drained.is_empty() {
        reclaimed = true;
        for (lists, order) in drained {
            crate::list::recycle(lists, &order);
        }
    }
    if !late() {
        return reclaimed;
    }
    if relay() {
        let need_wait = {
            let line = line();
            !line.line.is_empty() || line.settling
        };
        if need_wait {
            relay_wait(WHY_SYNC, |line| line.line.is_empty() && !line.settling);
            reclaimed = true;
        }
    } else if let Some(host) = host()
        && let Ok(mut submitted) = host.submitted.try_lock()
    {
        // settle fallback only if flights are still active
    }
    reclaimed
}

// crates/victory-gpu/src/draw.rs
fn alloc_dynamic(host: &crate::descriptor::host::HostHeap, n: u32) -> Option<u32> {
    host.dynamic(n).or_else(|| {
        crate::host::reclaim_dynamic_slots()
            .then(|| host.dynamic(n))
            .flatten()
    })
}

7. row_run Detiler, QUARANTINE_FRAMES Reuse Pool, and VICTORY_AMBIENT_MOST=0

  1. row_run contiguous-copy detiler (crates/victory-formats/src/texture.rs): Detects contiguous low-X runs inside micro-tiles (while row_run < columns.len() && columns[row_run] == row_run as u32 * element_bytes) and stores run_offsets so detiling copies whole spans per step instead of 1 texel/element at a time.
  2. QUARANTINE_FRAMES = 4 size-bucketed reuse pool (crates/victory-gpu/src/shadow.rs, exact()): Instead of dropping pruned exact-match buffers, holds them in a power-of-two size-bucketed quarantine for 4 full frames before pooling/reusing them, reducing CreateCommittedResource churn.
  3. VICTORY_AMBIENT_MOST=0 (crates/victory-gpu/src/ambient.rs): Lets ambient.rs cleanly replace blocky untraced 16×16 screen-probe tiles indoors with the smooth depth-aware estimate (0 multiple instead of default 4.0 clamp), pairing nicely with VICTORY_AMBIENT_SPECULAR=1.

Quick Workaround for 10 GB RTX 3080 / 8-Core Users Today

Until defaults auto-tune for <= 10 GiB VRAM / 32 GiB WDDM hosts:

.\victory.exe preload "<path-to-game-folder>"
.\victory.exe play "<path-to-game-folder>\game_scarlett_master.exe" --res 1080to1440 --fps 60 --set VICTORY_PORT_CONSTANTS=1 --set VICTORY_WAIT_RESIDENT=0 --set VICTORY_TEXTURE_ROOM_PERCENT=75 --set VICTORY_THIN=0

Happy to Submit Clean Pull Requests

If you want to benchmark or integrate any of these fixes into VIctory-NVIDIA (e.g. VICTORY_WAIT_RESIDENT=textures, VICTORY_RESIDENCY_PHYSICAL_ONLY, VICTORY_WAVE_WIDE=safe, VICTORY_SCREEN_COMPUTE, or reclaim_dynamic_slots), let me know which ones you'd like first and I'd be happy to open clean, focused PRs tested against my RTX 3080 10 GB setup with before/after logs!

**@⁠ToolxMaster** on GitHub · 2026-11-28 11:19 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1023) ### Hardware & Test Setup - **GPU:** NVIDIA GeForce RTX 3080 10 GB (`vendor=0x10de`, `device=0x2206`, DXGI local VRAM budget: `9,283 MiB`) - **CPU:** AMD Ryzen 7 7800X3D (8 cores / 16 threads, with integrated AMD Radeon Graphics present) - **RAM:** 32 GB DDR5 - **OS:** Windows 11 - **Tested build:** `VIctory-NVIDIA-2026.11.28.01` (`cargo build --release --locked -p victory`), launched via `victory.exe play game_scarlett_master.exe` with an isolated `VICTORY_HOME` (default launch profile: Series X, `2560x1440`, `--fps 1000`, no Streamline DLLs -> title upscaling). - **Comparison baseline:** Our **heavily modified version of `VIctory-Belobug-AMD`** (adapted with custom NVIDIA Wave32 lowering, WDDM physical residency, `VICTORY_WAIT_RESIDENT=textures`, screen-compute prioritization, `row_run` detiling, and dynamic descriptor reclaim) tested on the **exact same PC, OS, driver, and game dump**. --- ### Visual Observations (Screenshots) First, credit where it's due: **`VIctory-NVIDIA`'s lighting and shadow rendering look noticeably cleaner than our `VIctory-Belobug-AMD` fork** — no weird triangle artifacts and no glitching shadows once the room renders. However, out of the box on this RTX 3080 10 GB / Ryzen 7 7800X3D / 32 GB RAM setup, the opening sequence hits four major visual issues: 1. **Opening cutscene fails to render (~90 seconds at 2.9–3.6 FPS):** Shows only a solid blue sky/fog gradient with subtitles (`Could I have another ice water, please?` at `3.5 fps`, `1256 draws/frame`) and heavy noisy haze behind the `PROLOGUE` card (`3.2 fps`, `4461 draws/frame`) while cold pipelines compile. 2. **Missing character heads (`VICTORY_THIN=1`):** In the prison cell, both Lucia and her cellmate render without heads (only floating eyeballs, teeth, hair, and glasses remain). Note that `host/menu.rs:186-189` mentions this happening on a 6-core CPU — it also reproduces on an **8-core / 16-thread Ryzen 7 7800X3D**. 3. **Corrupted / missing HUD button-prompt text glyphs:** Prompts drop most characters (e.g., `H ld [LT] t i t t` instead of `Hold [LT] to interact`). > <img width="2465" height="1352" alt="Screenshot 2026-11-28 125430" src="https://github.com/user-attachments/assets/d59e9582-7dc4-4ac4-aa9d-7a7d242e6553" /> <img width="564" height="197" alt="Screenshot 2026-11-28 125420" src="https://github.com/user-attachments/assets/1896d3ab-89c0-4173-9586-6b8f7d98cc61" /> <img width="2467" height="1356" alt="Screenshot 2026-11-28 125345" src="https://github.com/user-attachments/assets/d2320853-f36f-47d7-bf91-3f08424c36b5" /> <img width="2463" height="1348" alt="Screenshot 2026-11-28 125321" src="https://github.com/user-attachments/assets/b8da8622-2b8b-4414-8c6f-c8bc4f6ead5c" /> <img width="2460" height="1351" alt="Screenshot 2026-11-28 125257" src="https://github.com/user-attachments/assets/605983ba-86d4-4202-a638-1f1956ef8ea7" /> --- ### Live Measured Comparison: Stock `VIctory-NVIDIA` vs. Heavily Modified `VIctory-Belobug-AMD` From the `VIctory-NVIDIA-2026.11.28.01` log (`victory-nvidia-play-20261128-105142-19480.log`) vs. our modified `VIctory-Belobug-AMD` `release` logs (filtering in-world frames with `>500 draws/frame`): | Metric (Same PC: RTX 3080 10 GB / 7800X3D / 32 GB RAM) | Stock `VIctory-NVIDIA` (`2026.11.28.01`, `release`) | Modified `VIctory-Belobug-AMD` (`release`) | | --- | --- | --- | | **Menu FPS** | **512.2 – 702.7 fps** (`1.4 – 2.0 ms/frame`) | Capped / controlled cleanly | | **Opening world / cutscene (~90s cold window)** | **2.9 – 3.6 fps** (`281.0 – 342.3 ms/frame`, 18 consecutive 5s windows) | Immediate cutscene rendering (`SCREEN_COMPUTE=1`) | | **Draws dropped without host pipeline** | **3,094 -> 318 draws/frame dropped** (still **318–332** after warm) | 0 missing cutscene compute passes (`SCREEN_COMPUTE=1`) | | **Post-compile world FPS** | **10.7 – 13.5 fps** (final 3 windows, `39.8 – 51.4 ms` on GPU, 6,257–6,501 draws) | **Run 15:** **14.6 median / 22.9 max fps** (64 intervals)<br>**Run 20:** **13.2 median / 17.7 max fps** (5,393–11,801 draws) | | **GPU Busy % (in-world end)** | **92–93%** (`6.4–6.5 ms` idle behind CPU submit) | **89–92% median** | | **`new card memory waited for until mapped`** | **19,000 waits, 1,928.4 ms total** (longest **65.0 ms**) | **800 waits, 123.0 – 146.4 ms total** (longest **11.6 – 13.7 ms**) | | **`new memory waited for` (`CreateCommittedResource` / host)** | **20,000 waits, 8,386.8 ms total** (longest **866.0 ms**) | **< 1,000 waits** (0 logs hit in Run 20; **~10s+ eliminated**) | | **`card_steps` GPU fills per frame** | **10,678 – 11,117 fills/frame** (**4,577 – 4,798 KB/frame**) | **54.4 – 73.0 fills/frame** (**27.2 – 36.9 KB/frame**, **~150x fewer**) | | **`our passes over copies` per frame** | **136–145 hash passes + 356 compare passes**, `1,611 MiB` buffer mirror span | Near-zero constant heap mirroring (`VICTORY_PORT_CONSTANTS=1`) | | **WDDM commit pressure warning (`< 4 GiB` commit)** | Triggered at `frame=14889` (`physical_free_mib=3335`, `available_commit_mib=3947`) | Avoided false throttling via `VICTORY_RESIDENCY_PHYSICAL_ONLY=1` | Here is the log for VIctory-NVIDIA: [victory-nvidia-play-20261128-105142-19480.log](https://github.com/user-attachments/files/35546244/victory-nvidia-play-20261128-105142-19480.log) Here are our logs: [victory-belobug-run15.log](https://github.com/user-attachments/files/35546341/victory-belobug-run15.log) [victory-belobug-run20.log](https://github.com/user-attachments/files/35546342/victory-belobug-run20.log) --- ### What `VIctory-NVIDIA` Already Does Really Well From inspecting `VIctory-NVIDIA-2026.11.28.01`: - **`hardware_adapter()`** (`crates/victory-shader/src/emit/host.rs:78-119`) cleanly picked the RTX 3080 over the 7800X3D iGPU (`adapter=NVIDIA GeForce RTX 3080`). - **Native DLSS + DLSS FG / AMD FSR 3 FG + F1 settings menu + `victory preload`** (`apps/victory/src/play.rs`, `crates/victory-gpu/src/host/menu.rs`). - **Rendering & lifetime engineering:** `VICTORY_AMBIENT_SPECULAR=1` (`crates/victory-gpu/src/ambient.rs`), `VICTORY_EARLY_DEPTH=1`, `VICTORY_LEAVE_OUT`, `Detached::release_tables()`, `make_at` `write_stride` (`crates/victory-gpu/src/descriptor/host.rs:3528`), and the `CS_AlphTransmissionPrefilterMip` resource-tracer fix. --- ### Root Causes Observed in the Live `VIctory-NVIDIA` Log 1. **10.3+ Seconds of `VICTORY_WAIT_RESIDENT` Stalls (`crates/victory-gpu/src/host.rs:230-359`)** - `wait_resident()` defaults ON for both `mapped()` (19,000 waits = **1,928.4 ms**) and `resident()` (20,000 waits = **8,386.8 ms**, single worst stall **866.0 ms**). - Scoping `D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT` + mapping waits to texture pool heaps and depth twins (`VICTORY_WAIT_RESIDENT=textures`) cut waits by **~13x–15x** (`800` waits / `123–146 ms`) with zero corruption on face/skin bakes. 2. **`VICTORY_PORT_CONSTANTS=1` Off by Default (`apps/victory/src/play.rs:55-116`, `crates/victory-gpu/src/port.rs:2`)** - Without it enabled in `SETTINGS`, `card_steps` executed **11,117 fills/frame (4,798 KB/frame)**, `our passes over copies` ran **136–145 hash passes + 356 compare passes/frame**, and `buffer_mirror_span_mib` sat at **1,611 MiB** out of a `9,283 MiB` VRAM budget. - Turning on `VICTORY_PORT_CONSTANTS=1` dropped `card_steps` on the same scenes to **54–73 fills/frame (27–37 KB/frame)**. 3. **Cold Pipeline Queue Starving Cutscene Compute Shaders (`crates/victory-gpu/src/pipeline/make.rs:135-167`)** - For the first ~90 seconds in-world, `VIctory-NVIDIA` ran at **2.9 – 3.6 fps** with **`0.0 on the GPU`** in 14/18 5-second intervals while dropping **1,099 – 3,094 draws/frame**. - `scene_input()` only prioritizes 6 hardcoded shader hashes + `BAKE_PIXEL_SHADERS`, leaving core shadow/lighting/probe compute shaders queued behind 1,000+ regular world pipelines. 4. **WDDM Commit-Charge Throttling on 32 GB RAM / 10 GB VRAM (`crates/victory-gpu/src/residency.rs:45-160`)** - At `frame=14889`, `VIctory-NVIDIA` logged: `host memory pressure: limiting texture prefetch and idle upload storage pid=19480 frame=14889 physical_free_mib=3335 available_commit_mib=3947 buffer_mirror_span_mib=1611 texture_staging_mib=37 spare_scratch_mib=23 game_filled_gpu_texture_mib=2990` - Because Windows WDDM mirrors VRAM allocations 1:1 in `ullAvailPageFile` and `residency.rs` enforces `commit <= 4 GiB` pressure / `< 1536 MiB` critical commit, texture prefetch gets throttled even when `3.3 GiB` physical RAM is still free. 5. **Conservative Wave64-on-Wave32 Widening (`crates/victory-shader/src/emit/mod.rs:655-685`, `lower.rs:1800`)** - `emit/mod.rs` restricts widening to a 6-digest allowlist (`scene_kernel`) to avoid the `ptfx_CS_lightAtlas_Sprite`/`_Trail` TDR, leaving other Wave64 lighting/shadow/probe shaders on slower fallback paths, while `lower.rs:1800` still excludes `ds_bpermute` from exact 32-lane wave splitting. 6. **Defaults in `apps/victory/src/play.rs:55-186` Triggering Missing Heads & Glyph Drops on 8-Core / 10 GB Hosts** - `VICTORY_THIN=1` is enabled by default in `SETTINGS`, which causes missing heads not just on 6-core CPUs (`host/menu.rs:186-189`) but also on an 8C/16T 7800X3D, alongside dropped HUD text glyphs and `res = "1440"` + `--fps 1000` (512–702 FPS menus, VRAM pressure on 10 GB cards). --- ### Changes from Our Heavily Modified `VIctory-Belobug-AMD` Fork You Can Test These are the specific modifications we made to `VIctory-Belobug-AMD` that produced the numbers above — sharing them so you can try whether they improve performance, warmup, and memory headroom in `VIctory-NVIDIA` too: #### 1. WDDM Physical-RAM Residency Mode & Tunable Commit Floor (`crates/victory-gpu/src/residency.rs`) Judge normal host pressure by free physical RAM (`VICTORY_RESIDENCY_PHYSICAL_ONLY=1`) so WDDM's 1:1 VRAM commit doesn't prematurely choke texture prefetch, and allow lowering the emergency commit floor (`VICTORY_RESIDENCY_CRITICAL_COMMIT_MB=256` instead of `1536 MiB`): ```rust /// `VICTORY_RESIDENCY_PHYSICAL_ONLY=1`: judge normal host-memory pressure by /// free physical RAM alone so Windows WDDM's 1:1 VRAM commit charge does not /// falsely throttle texture prefetching on 32 GiB hosts with ample free RAM. fn physical_only() -> bool { static ON: OnceLock<bool> = OnceLock::new(); *ON.get_or_init(|| std::env::var_os("VICTORY_RESIDENCY_PHYSICAL_ONLY").is_some_and(|v| v == "1")) } /// Emergency OS commit floor in bytes for [`critical_commit`] /// (`VICTORY_RESIDENCY_CRITICAL_COMMIT_MB`, default `1536`, min `128`). fn critical_commit_bytes() -> u64 { static BYTES: OnceLock<u64> = OnceLock::new(); *BYTES.get_or_init(|| { std::env::var("VICTORY_RESIDENCY_CRITICAL_COMMIT_MB") .ok() .and_then(|v| v.trim().parse::<u64>().ok()) .map_or(1536 * MIB, |mb| mb.max(128) * MIB) }) } fn next_pressure_for(was: bool, physical: u64, commit: u64, phys_only: bool) -> bool { if phys_only { if was { physical < 5 * GIB } else { physical <= 3 * GIB } } else if was { physical < 5 * GIB || commit < 6 * GIB } else { physical <= 3 * GIB || commit <= 4 * GIB } } ``` And in `refresh()` / `critical_commit()`: ```rust HEADROOM.store(if physical_only() { physical } else { physical.min(commit) }, Ordering::Relaxed); let pressure = next_pressure_for(was, physical, commit, physical_only()); // ... pub(crate) fn critical_commit() -> bool { let now = crate::host::coarse_ms(); now < RETRY_UPLOAD_AT.load(Ordering::Relaxed) || sample_commit(now) < critical_commit_bytes() } ``` *(We also pair this with `VICTORY_TEXTURE_ROOM_PERCENT=75` / `VICTORY_VRAM_KEEP_PERCENT=75` on `<= 10 GiB` cards.)* --- #### 2. Scoped `VICTORY_WAIT_RESIDENT=textures` (`crates/victory-gpu/src/host.rs`) Keeps `D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT` + `resident()` + `mapped()` on texture pool heaps (`pool.rs`) and depth/texture twins (`resource.rs`), while letting committed buffers (`host.rs`) skip the global `ASIDE` copy-queue mutex (which cost **8.39s + 1.93s** in the benchmark above): ```rust /// Whether committed buffers also wait for residency and GPU mapping /// (`VICTORY_WAIT_RESIDENT=textures` keeps residency waits on texture pool /// heaps and depth twins while skipping per-buffer stalls). fn wait_resident_buffers() -> bool { static ON: OnceLock<bool> = OnceLock::new(); *ON.get_or_init(|| { std::env::var("VICTORY_WAIT_RESIDENT") .ok() .is_none_or(|v| !matches!(v.trim(), "0" | "textures")) }) } pub(crate) fn not_resident() -> D3D12_HEAP_FLAGS { if wait_resident() { D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT } else { D3D12_HEAP_FLAG_NONE } } fn not_resident_buffer() -> D3D12_HEAP_FLAGS { if wait_resident_buffers() { D3D12_HEAP_FLAG_CREATE_NOT_RESIDENT } else { D3D12_HEAP_FLAG_NONE } } ``` --- #### 3. Safe Wave64-on-Wave32 Widening (`VICTORY_WAVE_WIDE=safe`), LDS Region Barriers (`VICTORY_LDS_REGION_RACE=1`), and `ds_bpermute` Wave32 Fix (`crates/victory-shader`) **a) `safe_to_widen()` in `crates/victory-shader/src/emit/mod.rs`** Instead of restricting widening to 6 digests, `VICTORY_WAVE_WIDE=safe` widens **all** wave64 shaders *except* `ptfx_CS_lightAtlas_*`: ```rust /// Whether `c` is safe to widen with `VICTORY_WAVE_WIDE=safe` (excludes `ptfx_CS_lightAtlas_*`). fn safe_to_widen(c: &Container) -> bool { const EXCLUDE: &[u8] = b"ptfx_CS_lightAtlas_"; !c.parts .iter() .any(|part| part.data.windows(EXCLUDE.len()).any(|w| w == EXCLUDE)) } ``` Tested on RTX 3080: 16/16 eligible shaders widen cleanly and both `ptfx_CS_lightAtlas_*` shaders are excluded with **0 TDRs**. **b) `lds_meetings(..., allow_race: bool)` (`VICTORY_LDS_REGION_RACE=1`) in `crates/victory-shader/src/emit/lower.rs`** Keeps all-lane entry/exit group barriers around mixed read/write lane-branch LDS regions rather than aborting translation: ```rust let flags_on = std::env::var_os("VICTORY_LDS_FLAGS").is_none_or(|v| v != "0"); if !allow_race { for r in (0..n).filter(|&r| reads[r] && writes[r]).collect::<Vec<_>>() { let blocks: Vec<usize> = (0..n).filter(|&b| !all[b] && find(&mut region, b) == r).collect(); if !(flags_on && lds_flag_region(p, st, &blocks)) { return None; } } } ``` **c) Remove `ds_bpermute` from `crosses` (`crates/victory-shader/src/emit/lower.rs:1800`)** On GFX10, `ds_bpermute` is confined to each 32-lane half under thread relabelling (only `ds_permute` crosses halves), so removing `|| n.starts_with("ds_bpermute")` from `crosses` avoids forcing those shaders off exact Wave32 splitting. --- #### 4. Pixel Shader `s_wqm` Live-Quad Mask Propagation + `VICTORY_NAN_GUARD=1` & `VICTORY_D16_BITS=1` **a) `s_wqm` Live-Quad Mask (`crates/victory-shader/src/structure.rs`)** `VIctory-NVIDIA/crates/victory-shader/src/structure.rs` defines `Atom::Quad(Value)`, but doesn't yet track `quad_sources` into `scc_lane`: ```rust // Collect sources of `s_wqm_b*` instructions: if inst.name().starts_with("s_wqm_b") { quad_sources.extend( inst.uses.iter().filter_map(|u| match u { Operand::Value(v) => Some(*v), _ => None }) ); } // Propagate quad liveness into scc_lane: if let (Some(scc), Some(mut m)) = (inst.write(Reg::Scc), r.scc) { if let Some((k, _)) = r.dst && self.quad_sources.contains(&k.0) && LIVE_QUADS.get() { let born = self.born(k.0); let q = self.b.atom(Atom::Quad(k.0), born); m = self.b.or(m, q); } self.scc_lane.insert(scc, m); } ``` **b) `VICTORY_NAN_GUARD=1` & `VICTORY_D16_BITS=1` (`crates/victory-shader/src/emit/lower.rs`, keyed in `shader_cache.rs`)** ```rust /// (`VICTORY_NAN_GUARD=1`) Clamps NaN -> 0 and +-inf -> +-65504 on pixel /// shader float colour exports so bad pixels do not stick in exposure/history /// targets. fn nan_guard(&mut self, f: V) -> V { if !nan_guard_on() { return f; } let c = self.cur; let bits = self.as_int(f); let mag = self.s.m.i32(0x7FFF_FFFF); let abs = self.s.m.bin(c, Bin::And, bits, mag); let inf_bits = self.s.m.i32(0x7F80_0000); let nan = self.s.m.cmp(c, pred::IUGT, abs, inf_bits); let inf = self.s.m.cmp(c, pred::EQ, abs, inf_bits); let sign_bit = self.s.m.i32(0x8000_0000); let sign = self.s.m.bin(c, Bin::And, bits, sign_bit); let big = self.s.m.i32(65504f32.to_bits()); let big = self.s.m.bin(c, Bin::Or, sign, big); let zero = self.s.m.i32(0); let r = self.s.m.select(c, inf, big, bits); let r = self.s.m.select(c, nan, zero, r); self.as_float(r) } /// (`VICTORY_D16_BITS=1`) Keeps low 16 bits for d16 loads/gathers through /// integer-format views instead of converting denormals/negative ints as float. fn d16_bits(&mut self, x: V) -> V { let c = self.cur; let i32t = self.s.t.i32; let half = self.s.op(c, "legacyF32ToF16", Attr::ReadNone, i32t, 130, &[x]); if !d16_bits_on() { return half; } let bits = self.as_int(x); let (top, neg) = (self.s.m.i32(0xFFFF), self.s.m.i32(0xFFFF_7FFF)); let small = self.s.m.cmp(c, pred::IULE, bits, top); let negative = self.s.m.cmp(c, pred::IUGT, bits, neg); let integer = self.s.m.bin(c, Bin::Or, small, negative); let low = self.s.m.bin(c, Bin::And, bits, top); self.s.m.select(c, integer, low, half) } ``` *(Key `"VICTORY_LDS_REGION_RACE"`, `"VICTORY_NAN_GUARD"`, and `"VICTORY_D16_BITS"` in `shader_cache.rs`.)* --- #### 5. Broad Screen-Compute Priority (`VICTORY_SCREEN_COMPUTE=1`, `crates/victory-gpu/src/pipeline/make.rs`) Generalizes `scene_input()` so core lighting, shadow, screen-probe, volumetric, SSS, hair, and TAA compute passes compile on the screen workers before world pipelines (while explicitly excluding `CS_RaytracingResolve`): ```rust const SCREEN_COMPUTE_NAMES: [&[u8]; 19] = [ b"CS_GenerateShadowMasks", b"CS_DenoiseShadowMask", b"CS_ScreenProbes_", b"CS_ClusterLights", b"CS_GatherDiffusion", b"CS_SSS", b"CS_SceneColorTemporalResolve", b"CS_ApplyTemporalAA", b"CS_ApplyCombinedDeferred", b"CS_IrradianceCache_", b"CS_TransmissionVolumetrics_", b"CS_Bloom", b"CS_ClearTile", b"CS_ClearShadowMask", b"CS_HairTile", b"CS_MaterialTiles", b"CS_TemporalResolve", b"CS_AccumulateLocalLightInscatteringVolume", b"CS_CacheScreenSpaceRadiance", ]; fn is_screen_compute(shaders: &[Arc<Shader>]) -> bool { let [shader] = shaders else { return false }; if shader.stage != "compute" { return false; } let bytes = shader.container_bytes(); let has = |pat: &[u8]| bytes.windows(pat.len()).any(|w| w == pat); !has(b"CS_RaytracingResolve") && SCREEN_COMPUTE_NAMES.iter().any(|pat| has(pat)) } ``` --- #### 6. Dynamic Descriptor Reclaim Before Full GPU Settle (`crates/victory-gpu/src/host.rs` + `draw.rs`) Replaces `host.dynamic(1).or_else(|| { crate::host::settle_for_fence(); host.dynamic(1) })` in `draw.rs:2239` by draining `queue::before_sync()` + `line().landed` first before falling back to waiting on in-flight work: ```rust // crates/victory-gpu/src/host.rs pub(crate) fn reclaim_dynamic_slots() -> bool { crate::queue::before_sync(); let mut reclaimed = false; let drained: Vec<_> = { let mut line = line(); line.landed.drain(..).collect() }; if !drained.is_empty() { reclaimed = true; for (lists, order) in drained { crate::list::recycle(lists, &order); } } if !late() { return reclaimed; } if relay() { let need_wait = { let line = line(); !line.line.is_empty() || line.settling }; if need_wait { relay_wait(WHY_SYNC, |line| line.line.is_empty() && !line.settling); reclaimed = true; } } else if let Some(host) = host() && let Ok(mut submitted) = host.submitted.try_lock() { // settle fallback only if flights are still active } reclaimed } // crates/victory-gpu/src/draw.rs fn alloc_dynamic(host: &crate::descriptor::host::HostHeap, n: u32) -> Option<u32> { host.dynamic(n).or_else(|| { crate::host::reclaim_dynamic_slots() .then(|| host.dynamic(n)) .flatten() }) } ``` --- #### 7. `row_run` Detiler, `QUARANTINE_FRAMES` Reuse Pool, and `VICTORY_AMBIENT_MOST=0` 1. **`row_run` contiguous-copy detiler (`crates/victory-formats/src/texture.rs`):** Detects contiguous low-X runs inside micro-tiles (`while row_run < columns.len() && columns[row_run] == row_run as u32 * element_bytes`) and stores `run_offsets` so detiling copies whole spans per step instead of 1 texel/element at a time. 2. **`QUARANTINE_FRAMES = 4` size-bucketed reuse pool (`crates/victory-gpu/src/shadow.rs`, `exact()`):** Instead of dropping pruned exact-match buffers, holds them in a power-of-two size-bucketed quarantine for 4 full frames before pooling/reusing them, reducing `CreateCommittedResource` churn. 3. **`VICTORY_AMBIENT_MOST=0` (`crates/victory-gpu/src/ambient.rs`):** Lets `ambient.rs` cleanly replace blocky untraced 16×16 screen-probe tiles indoors with the smooth depth-aware estimate (`0` multiple instead of default `4.0` clamp), pairing nicely with `VICTORY_AMBIENT_SPECULAR=1`. --- ### Quick Workaround for 10 GB RTX 3080 / 8-Core Users Today Until defaults auto-tune for `<= 10 GiB` VRAM / `32 GiB` WDDM hosts: ```powershell .\victory.exe preload "<path-to-game-folder>" .\victory.exe play "<path-to-game-folder>\game_scarlett_master.exe" --res 1080to1440 --fps 60 --set VICTORY_PORT_CONSTANTS=1 --set VICTORY_WAIT_RESIDENT=0 --set VICTORY_TEXTURE_ROOM_PERCENT=75 --set VICTORY_THIN=0 ``` --- ### Happy to Submit Clean Pull Requests If you want to benchmark or integrate any of these fixes into `VIctory-NVIDIA` (e.g. `VICTORY_WAIT_RESIDENT=textures`, `VICTORY_RESIDENCY_PHYSICAL_ONLY`, `VICTORY_WAVE_WIDE=safe`, `VICTORY_SCREEN_COMPUTE`, or `reclaim_dynamic_slots`), let me know which ones you'd like first and I'd be happy to open clean, focused PRs tested against my RTX 3080 10 GB setup with before/after logs!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:31:55 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-30 15:48 UTC · original

Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is v2026.11.30.01.

If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run:

  1. The play log: the newest victory-nvidia-play-<date>-<time>-<number>.log in %LOCALAPPDATA%\victory\logs\.
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, plus the newest .crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ if there is one from that run.
**@⁠trustno1-coder** on GitHub · 2026-11-30 15:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/1023#issuecomment-7283614956) Closing this because it was opened before v2026.11.29.01, and a great deal has changed since then. The latest release is [v2026.11.30.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.30.01). If this still happens, or still applies, on the latest release, please open a new issue. For a bug, attach both logs from that run: 1. The play log: the newest `victory-nvidia-play-<date>-<time>-<number>.log` in `%LOCALAPPDATA%\victory\logs\`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, plus the newest `.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\` if there is one from that run.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#1023
No description provided.