Skip to content

About

No description, website, or topics provided.

Resources

Stars

138 stars

Watchers

4 watching

Forks

Repository files navigation

Victory-Nvidia-optimized

A performance-focused fork for running an Xbox Series title natively on Windows with NVIDIA GeForce RTX GPUs, built on fxceless/victory-fork, trustno1-coder/VIctory-NVIDIA, readmet3xt-lab/foxhound, and Marvisak/VIctory.

This repository contains no game files, code, or assets. You must supply your own legally obtained copy of the title (game_scarlett_master.exe, Xbox Series build v1.0.2.1). It is not affiliated with or endorsed by the title's developer, publisher, or NVIDIA. See docs/asset-policy.md.


Performance & Key Changes

Measured on Windows 11, RTX 4070 Ti SUPER (16 GB VRAM), DLSS + 2x Frame Generation:

  • Open-world gameplay: ~20 FPS rendered (18–22 FPS typical across medium/heavy scenes, peaking 23–24.8 FPS, ~17–21 FPS in heavy/ultra daytime scenes) -> ~40–50 FPS shown with 2x DLSS Frame Generation.
  • Eliminated multi-second pipeline-compile hitches: 0 stalls >= 50 ms in cached gameplay (13.0 FPS worst window vs 1.8 FPS / 7.85 s stalls before).
  • Zero regressions to visual/lighting fixes: retains VICTORY_AMBIENT, VICTORY_AMBIENT_SPECULAR, VICTORY_AMBIENT_AIR, VICTORY_WATER_LIGHT, and the 512 MB rolling BVH page budget.

What This Fork Adds (exp/perf-cpu-and-residency)

  1. Non-blocking pipeline::make repeat-frame fallback (pipeline/make.rs)
    • Lowers the non-screen frame wait budget from 500 ms to 80 ms (VICTORY_PIPELINE_WAIT_MS still overrides), while keeping the 10 s screen/bake-pass budget (VICTORY_SCREEN_WAIT_MS) intact.
    • Marks non-screen pipelines that exhaust a wait while compiling in the background so consecutive frames drop immediately without stalling until ready.
  2. CPU copy, upload & submission-thread (submit_busy) reductions
    • shadow.rs: Shadow::take batches copy_mapped reads up to 64 KiB using reusable thread-local buffers, AVX2-accelerated word_runs diffing, and coalesced card dirty range updates.
    • host/send.rs: pre-counts long vs short runs in send::take, skips unnecessary Vec allocations, and runs scatter-pair encoding inline for small batches.
    • host.rs: card_ahead / relay_card_back caches bound GPU SRV/UAV addresses across consecutive shadow runs, coalesces declared spans in place without per-shadow allocations, reuses the flags buffer, and fast-skips piece binary searches when nothing is flagged.
    • descriptor.rs: sync_heaps runs small (<= 1 job) passes inline and merges multi-worker passes through a single shared mutex.
    • watch.rs & host.rs: reduces lock contention in nothing_new, coalesces mapped() ranges, pools transient upload memory, and skips blocking staging residency stalls.
  3. 16 GB VRAM budget tuning & launcher/F1 updates
    • Supports scaling VRAM card copies and windows (VICTORY_CARD_WINDOWS_MB, VICTORY_CARD_BUFFERS_MB, VICTORY_WINDOWS_LATE, VICTORY_TEXTURE_ROOM_PERCENT).
    • Includes the integrated victory play launcher, F1 settings menu, F3 live stats panel, victory warm pipeline pre-warmer, Windows 10/11 Agility SDK auto-matching, DSP mono-convolution audio, and DualSense/DualShock 4 support.

Requirements

  • OS: Windows 10 or Windows 11 (x64), SSD, 32 GB+ system RAM recommended
  • CPU: x86_64 with AVX2 support
  • GPU: NVIDIA GeForce RTX with an up-to-date driver (RTX 40+ for official DLSS Frame Generation with Hardware-Accelerated GPU Scheduling enabled; 12–16 GB+ VRAM recommended for higher quality presets)
  • Build tools: Rust (rustup) (the repo pins 1.98.1 in rust-toolchain.toml) and Visual Studio Build Tools (Desktop development with C++)
  • Game files: your own dump of the title's Xbox Series build v1.0.2.1 containing game_scarlett_master.exe

How to Build

In PowerShell:

git clone https://github.com/CHECK6960/Victory-Nvidia-optimized.git
cd Victory-Nvidia-optimized

# Point victory.toml (git-ignored) at your dump folder outside the repository
copy victory.example.toml victory.toml

# Optional (once): downloads NVIDIA Streamline DLSS & Frame Generation (~70 MB into git-ignored nvidia-sdk\)
.\Get-NVIDIA-DLSS.cmd

# Build with host CPU optimizations (AVX2)
$env:RUSTFLAGS = "-C target-cpu=native"
cargo build --release -p victory

Optional test verification:

$env:RUSTFLAGS = "-C target-cpu=native"
cargo test --release -p victory
cargo test --release -p victory-gpu --lib

The compiled executable is created at target\release\victory.exe.


How to Run

Option 1: Direct Binary (victory.exe play) — Recommended

.\target\release\victory.exe play "D:\Games\MyDump\game_scarlett_master.exe"

(You can also copy target\release\victory.exe next to game_scarlett_master.exe and double-click it.)

  • One-time 30-second warm-up restart: On the very first launch of a newly built victory.exe, it automatically sets VICTORY_WARMUP_RESTART=30, restarts once 30 seconds after entering the game world, and saves a mark under %LOCALAPPDATA%\victory\warmed\. Later starts launch directly without restarting.
  • In-game hotkeys:
    • F1: Settings menu (Up/Down select, Left/Right change, Enter apply/save)
    • F3: Live stats overlay (FPS, FRAME GEN, DRAWS, SUBMIT BUSY, GPU BUSY, IDLE BEHIND US, VRAM/RAM)
  • Logs, saves & settings location: Kept outside the game folder under %LOCALAPPDATA%\victory\:
    • Logs: %LOCALAPPDATA%\victory\logs\victory-nvidia-play-*.log
    • Saved F1 overrides: %LOCALAPPDATA%\victory\victory-settings.txt
    • Saves: %LOCALAPPDATA%\victory\data

Option 2: PowerShell Launcher (scripts\play-nvidia.ps1)

powershell -ExecutionPolicy Bypass -File scripts\play-nvidia.ps1 -Exe "D:\Games\MyDump\game_scarlett_master.exe" -FrameGen

Useful launcher flags (play-foxhound.ps1): -SeriesS, -Res 1440|1080to1440|4k, -Dlss off|dlaa|quality|balanced|performance, -FrameGen, -FrameGenX 2..6, -Fps 1000|120|60|30, -Preload, -More @{...}.

Optional: Pre-Warm Used Pipelines

To pre-compile pipelines previously recorded across your runs before launching (avoids in-world pipeline compilation drops):

.\target\release\victory.exe warm --used

Recommended Settings (Quality vs FPS)

Settings changed in the F1 menu are saved to %LOCALAPPDATA%\victory\victory-settings.txt and override defaults on every launch.

1. Best Quality ("Console-Like Look", RTX 4070 Ti SUPER / 16 GB VRAM)

Balances native 1440p sharpness, Series X assets/LODs, clean raster lighting, and safe VRAM margins with Frame Gen active:

F1 Setting / Variable Recommended Value Why
CONSOLE (VICTORY_MENU_CONSOLE) SERIES X (series-x) Full Series X detail, LODs, textures, and HUD-less FG tagging
SERIES X PICTURE (VICTORY_MENU_RES) 2560X1440 (1440) Crisp native 1440p output & render targets
DLSS (VICTORY_MENU_DLSS) QUALITY (quality) Best clarity-to-performance ratio (DLAA if GPU still stays below ~90% busy)
DLSS MODEL (VICTORY_DLSS_PRESET) K (k) Cleaner temporal edge/foliage reconstruction
FRAME GENERATION (VICTORY_MENU_FRAMEGEN) 2X (2) Smooth frame pacing with minimal FG ghosting/VRAM overhead
RAY TRACING (BVH) (VICTORY_BVH_BUILDER) OFF ("") Keeps FPS high & avoids RT visual quirks/page lag
LIGHT ESTIMATE / REFLECTION / FOG CAP 0.8 / ON / 1.5 Prevents dark indoor shadows, blown-out sky reflections, and heavy brown haze
WATER LIGHT (VICTORY_WATER_LIGHT) ON (1) Proper tiled water lighting without dark patches
HEAT HAZE AND DECAL DEFRAG LEFT OUT Avoids smear artifacts and frame-time cost

Recommended victory-settings.txt VRAM tuning (16 GB cards with Frame Gen ON):

VICTORY_TEXTURE_ROOM_PERCENT=80
VICTORY_CARD_WINDOWS_MB=3072
VICTORY_CARD_BUFFERS_MB=3072
VICTORY_WINDOWS_LATE=1

Important: Make sure VICTORY_TEXTURE_ROOM_PERCENT is 80 (not 86) whenever DLSS Frame Gen is enabled, so ~1.5–2 GB of VRAM stays reserved for Streamline/render targets instead of spilling into system SHARED memory. (On 8–12 GB GPUs, leave VICTORY_CARD_WINDOWS_MB and VICTORY_CARD_BUFFERS_MB unset/default rather than 3072.)

2. Higher FPS Preset (~20 FPS Base / ~40–50 FPS Shown with 2x FG)

If you want maximum frame rate stability on heavy scenes:

  • CONSOLE: SERIES S (series-s)
  • SERIES X PICTURE: 1080P TO 1440P (1080to1440)
  • DLSS: PERFORMANCE (performance) or QUALITY (quality)
  • FRAME GENERATION: 2X (2)

3. Testing Hardware Ray Tracing (Experimental)

  • Set RAY TRACING (BVH) to ON (VICTORY_BVH_BUILDER=1) in the F1 menu (SAVE AND RESTART NOW), then run victory.exe warm --used once after exploring if desired.
  • Note: VICTORY_AMBIENT turns itself off while BVH ray tracing runs; expect roughly half the base frame rate and occasional WIP artifacts (such as flat green vehicle paint or page lag during fast movement).

Troubleshooting & Notes

  • Black/slow first launch (~14 FPS): Let the automatic 30-second warm-up finish and auto-restart once after rebuilding victory.exe.
  • SAVE AND RESTART NOW leaves a background process: If restarting from F1 hangs or fails to close cleanly, close the game normally and launch again.
  • Shader/VRAM issues after editing settings: Delete %LOCALAPPDATA%\victory\victory-settings.txt to reset to built-in launcher defaults.
  • More documentation: See docs/architecture.md, docs/findings.md, docs/dlss.md, docs/fork-ray-tracing.md, and docs/README-foxhound.md.

Credits

Built directly upon the work of:

  • fxceless/victory-fork — RT rolling page budget, water light fixes, dynamic wait, texture pool gate
  • trustno1-coder/VIctory-NVIDIA — F1 settings menu, F3 stats panel, 2x–6x Frame Gen live switching, preload/DSP/DualSense upgrades
  • readmet3xt-lab/foxhound — card-side compares, descriptor synchronization, ambient/reflection estimation, Streamline DLSS/FG integration
  • Marvisak/VIctory and its contributors (including avatarmanz, Belobug, DexNom, codec-d, pate2464, and others) — the core loader, HLE, D3D12 translator, and shader compiler

License

GPL-3.0-or-later. See LICENSE; third-party binary/asset rules are documented in docs/asset-policy.md.

About

No description, website, or topics provided.

Resources

Stars

138 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages