Read-only copy of github.com/MahanYTT/VIctory-MA · VIctory-MA: Native x86-64 Xbox Series X|S compatibility layer for Windows — D3D12.X to DX12, RDNA2→DXIL shader recompiler, NVIDIA DLSS & 2x-6x Frame Gen, AMD FSR 3/4, F1 menu & F3 overlay. No game or SDK files included.
  • Rust 98.2%
  • PowerShell 1.2%
  • HLSL 0.3%
  • Python 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-06 03:46:34 +01:00
.cargo Optimize watch/block refreshes, compress GPU caches, and harden DLSS-G VRAM recovery 2026-12-01 22:23:50 +01:00
.githooks Initial commit 2026-11-23 01:15:26 +01:00
.github fix(hwrt): do not lazily initialize DXR 1.1 manager from sweep or free hooks 2026-12-05 21:17:00 +01:00
apps/victory feat(framegen): add opt-in MVFG (2x-4x) and DittoSR upscaler/FG 2026-12-05 23:37:11 +01:00
crates test(gpu): synchronize rangelock tests against CI thread-spawn latency 2026-12-06 03:46:34 +01:00
docs Audit hardening, Darner ports, NVIDIA Reflex, and preload UI redesign 2026-12-04 16:54:00 +01:00
scripts perf+feat: port tight alignment, texture/sweep/trim fixes, and Dec 4 upstream upgrades 2026-12-05 12:58:53 +01:00
tests Merge branch 'wave-3' into combined 2026-11-28 19:52:33 -08:00
tools Audit hardening, Darner ports, NVIDIA Reflex, and preload UI redesign 2026-12-04 16:54:00 +01:00
xtask Fix audit regressions and port foxhound and VIctory-Neo improvements 2026-12-02 16:37:12 +01:00
.gitattributes Initial commit 2026-11-23 01:15:26 +01:00
.gitignore Merge upstream/main through 829188e9, audit fixes, and CalVer release workflow 2026-11-29 13:19:45 +01:00
.victory-root Initial commit 2026-11-23 01:15:26 +01:00
AGENTS.md Fix audit regressions and port foxhound and VIctory-Neo improvements 2026-12-02 16:37:12 +01:00
bindings.ini input: mouse wheel as bindable WheelUp / WheelDown in the MNK bindings 2026-11-28 23:54:33 +01:00
Cargo.lock Merge PR #2157 (nawnie): Add opt-in Windows DirectStorage staging for compressed reads 2026-11-29 10:43:04 -08:00
Cargo.toml Merge upstream/main (v2026.11.30.01, c71899d9) and Neo Series S full-scene fix (2b5601af) 2026-11-30 18:04:16 +01:00
Get-AMD-FSR.cmd GPU/Play: fix AMD FSR 4 setup, fading trees twin slots, 16:10 DPI sizing, and play input flags 2026-11-29 23:43:04 +01:00
Get-D3D12.cmd Get-D3D12.cmd: Microsoft's newer Direct3D 12 runtime for a build of your own, in one double-click (#861) 2026-11-28 20:14:39 +11:00
Get-NVIDIA-DLSS.cmd F1 settings menu, frame generation 2x-6x live, no frame rate cap, FPS line 2026-11-26 19:41:59 -08:00
LICENSE Initial commit 2026-11-23 01:15:26 +01:00
Play-MyRig.cmd Rig launcher: checks the PC, then plays with settings worked out for it 2026-11-28 19:52:55 +01:00
Play-VIctory.cmd Fix audit regressions and port foxhound and VIctory-Neo improvements 2026-12-02 16:37:12 +01:00
PLAY_FACES_FIX.cmd Audit hardening, Darner ports, NVIDIA Reflex, and preload UI redesign 2026-12-04 16:54:00 +01:00
PLAY_FRAMEGEN.cmd Audit hardening, Darner ports, NVIDIA Reflex, and preload UI redesign 2026-12-04 16:54:00 +01:00
README.md docs(readme): document MVFG, DittoSR, F1 redesign, and streaming/flicker overhaul 2026-12-06 03:20:46 +01:00
rust-toolchain.toml Initial commit 2026-11-23 01:15:26 +01:00
rustfmt.toml Initial commit 2026-11-23 01:15:26 +01:00
victory.example.toml wine: add opt-in file-backed physical pages with safe copy paths 2026-11-28 09:58:00 -06:00

VIctory-MA

Native x86-64 Xbox Series X|S Compatibility Layer for Windows — Performance, Frame Generation & Stability Edition

Downloads Latest Release CI Platform License

Maintained by MahanYTT · Forked from trustno1-coder/VIctory-NVIDIA · Built on foxhound & VIctory

Quick Start · Recommended Setup · What VIctory-MA Adds · GPU & Frame Gen Matrix · Controls & F1 Menu · Build From Source · Docs · Credits


VIctory-MA runs a supported Xbox Series X|S title's own x86-64 executable natively on Windows — no CPU emulation. It maps the title image directly into the host process, translates Xbox D3D12.X calls to PC DirectX 12, recompiles RDNA2 (GFX10) shaders to PC DXIL on the fly, and layers on NVIDIA DLSS Super Resolution, NVIDIA Reflex, DLSS Frame Generation / Multi Frame Generation (2x–6x) via NVIDIA Streamline, AMD FidelityFX FSR 3 & FSR 4, vendor-agnostic MVFG (2x–4x) & opt-in DittoSR, opt-in Hardware / Software Ray Tracing, native 1:1 mouse/keyboard & DualSense support, a tabbed in-game F1 settings menu, and live F3 telemetry / F2 frame-limiter panels.

Asset & Legal Policy: This repository and its releases contain no game files, executables, shaders, or assets, and no proprietary NVIDIA or AMD SDK binaries. You must supply your own legally obtained dump of the supported Xbox Series build (v1.0.2.1). This project is not affiliated with or endorsed by the title's developer/publisher, Microsoft, NVIDIA, or AMD. See docs/asset-policy.md.


Table of Contents


Quick Start

System Requirements

Component Minimum / Baseline Recommended
OS Windows 10 1909+ x64 (with Agility SDK) Windows 11 x64
CPU x86-64 with AVX2 8+ cores, strong single-thread performance
RAM 16 GB (use Series S profile + large SSD pagefile) 32 GB+ (with 32 GB+ or system-managed SSD pagefile)
GPU DirectX 12 SM 6.6 + Mesh Shaders (D3D12_OPTIONS7) — NVIDIA RTX 20+ or AMD RX 6000+ (GTX 10 lacks mesh shaders) 12–16 GB+ VRAM with Resizable BAR enabled (RTX 40/50 for DLSS FG/MFG; RX 6000/7000/9000 for FSR 3/4)
Storage SSD with your own dump of supported Xbox Series build (v1.0.2.1, containing game_scarlett_master.exe) Fast NVMe SSD with 40+ GB free for shader cache, temp mirrors & pagefile

Run With Prebuilt victory.exe (No Build Required)

  1. Download victory.exe from the latest VIctory-MA release.
  2. Place victory.exe beside game_scarlett_master.exe in your game dump folder.
  3. (NVIDIA users, once) Raise NVIDIA's shader heap from 512 MB to 2,048 MB — either directly inside the game via F1 → NVIDIA SHADER HEAP (click it or press Enter / A to open the Windows Administrator prompt automatically), or from an Administrator PowerShell prompt:
    .\victory.exe nv-profile --mb 2048
    
    (Check anytime with .\victory.exe nv-profile --status; revert with .\victory.exe nv-profile --remove.)
  4. Double-click victory.exe (if Windows SmartScreen warns on an unsigned binary: More info → Run anyway).
  5. On the first launch of a new shader-translator build or driver, victory.exe precompiles shaders and pipelines with a live splash window so gameplay avoids cold-compile stutter (cached under %LOCALAPPDATA%\victory\warmed).

Moving Cache & Save Storage to Another Drive

Settings, saves, shader caches, logs, and fetched SDKs default to %LOCALAPPDATA%\victory. To move them:

setx VICTORY_HOME "E:\VIctory Data"

Open a new PowerShell window and run .\victory.exe config to confirm the active cache_dir and data_dir. Always use an absolute path outside any git repository. VICTORY_CACHE_DIR and VICTORY_DATA_DIR override [paths] in victory.toml, which in turn override VICTORY_HOME.

Picking a Specific GPU (Multi-GPU Systems)

$env:VICTORY_ADAPTER = 'RTX 5070 Ti'
.\victory.exe

Matches the first hardware adapter containing the string (case-insensitive). Verify the chosen GPU on the host device on the card line in the play log.


These four steps eliminate the most common causes of low FPS, held textures, and shader OOM errors:

  1. Enable Resizable BAR + Above 4G Decoding in BIOS: Without ReBAR, the CPU cannot directly map card upload heaps (supported=false in the log) and falls back to slower staging copies every frame.
  2. Raise the NVIDIA driver shader heap (victory.exe nv-profile --mb 2048) and stay on a recent driver (621.01+ recommended on NVIDIA). The default 512 MB driver heap can trigger 0x887A0005 / 0x887A0006 pipeline failures during heavy scenes.
  3. Provide enough Windows commit headroom: Keep your Windows virtual memory on System managed size on an SSD with 40+ GB free (or set a custom size of 32,768 MB+) and close memory-heavy background apps (browsers, streaming studios) before launching.
  4. Match profile & upscaler preset to your GPU / RAM:
    • 16 GB RAM or 8 GB VRAM: Use Series S in F1 (victory.exe warns automatically if launching Series X on ≤ 18 GB RAM).
    • Entry RTX 40 cards (e.g. RTX 4060): Try DLSS CNN presets (auto / e) in F1 if Transformer preset k increases GPU frame time.
    • High-RAM systems (32–64 GB with large pagefile): Pass victory.exe play --keep-memory if you want to disable default untouched working-set trimming.

GPU & Frame Generation Support

Upscaler and hardware Frame Generation options are automatically gated per detected GPU (GpuCaps) in both the launcher and the F1 menu to prevent mismatched vendor SDKs, while vendor-agnostic MVFG (2x–4x) and opt-in DittoSR (2x FG + upscaler DLL) are available on every GPU:

GPU Family Upscaler Allowed FRAME GEN TYPE Frame Gen Multiplier Default FRAME GEN TYPE
NVIDIA GeForce RTX 50 DLSS Super Resolution (+ opt-in DittoSR) DLSS, MVFG, DITTOSR 2x–6x (DLSS, live), 2x–4x (MVFG), 2x (DITTOSR) DLSS
NVIDIA GeForce RTX 40 DLSS Super Resolution (+ opt-in DittoSR) DLSS, MVFG, DITTOSR 2x (DLSS / DITTOSR), 2x–4x (MVFG) DLSS
NVIDIA GeForce RTX 20 / 30 DLSS Super Resolution (+ opt-in DittoSR) AUTO, MVFG, DITTOSR Off on AUTO; 2x–4x (MVFG), 2x (DITTOSR) AUTO
AMD Radeon RX 9000 (RDNA 4) FSR 4 / FSR 3 (+ opt-in DittoSR) FSR 3, FSR 4, MVFG, DITTOSR 2x (FSR 4 / FSR 3 / DITTOSR), 2x–4x (MVFG) FSR 4
AMD Radeon RX 5000 / 6000 / 7000 & RDNA 3.5 FSR (+ opt-in DittoSR) FSR 3, MVFG, DITTOSR 2x (FSR 3 / DITTOSR), 2x–4x (MVFG) FSR 3
NVIDIA GTX / AMD Radeon RX 500 FSR (+ opt-in DittoSR) AUTO, MVFG, DITTOSR Off on AUTO; 2x–4x (MVFG), 2x (DITTOSR) AUTO
Intel Arc / other SM 6.6 GPUs FSR (+ opt-in DittoSR) AUTO, FSR 3, MVFG, DITTOSR 2x (FSR 3 / DITTOSR), 2x–4x (MVFG) AUTO
  • MVFG (FRAME GEN TYPE = MVFG (ANY GPU)): Built-in 8-pass motion-vector + depth frame generator (2x, 3x, or 4x) with dedicated HUD re-composition — requires zero external SDK DLLs and works alongside DLSS or FSR upscaling on any DirectX 12 SM 6.6 GPU (including RTX 20/30).
  • DittoSR (DITTOSR (DLL)): Opt-in support for third-party FidelityFX API drop-in dittosr\amd_fidelityfx_dx12.dll beside victory.exe (or via VICTORY_DITTOSR_PATH; put frame_gen=1 and menu_key=0 in dittosr.ini) for standalone 2x Frame Generation and/or DITTOSR UPSCALER (DLL).
  • At startup and in F3, the overlay reports the exact active upscaler & provider version (e.g. DLSS, FSR4 QUALITY (4.1.2), FSR3, DITTO) and frame-generation mode (DLSS, FSR4 2X, FSR3 2X, MVFG, DITTO 2X).
  • Hardware-Accelerated GPU Scheduling (HAGS) must be enabled in Windows Graphics Settings for NVIDIA DLSS Frame Generation.
  • SDK downloads (on demand, never bundled):
    • NVIDIA Streamline / DLSS (~70 MB): Offered once on first launch, or run victory.exe get-dlss / Get-NVIDIA-DLSS.cmd. Verified against NVIDIA Authenticode signatures.
    • AMD FidelityFX / FSR 3 & FSR 4 (~85 MB): Offered when needed on AMD / FSR setups, or run victory.exe get-fsr / Get-AMD-FSR.cmd. Fetches amd_fidelityfx_loader_dx12.dll, amd_fidelityfx_framegeneration_dx12.dll, and amd_fidelityfx_upscaler_dx12.dll (verified against AMD Authenticode signatures and SHA-256).
    • Microsoft D3D12 Agility SDK (~22 MB, Windows 10 only): Windows 10's inbox D3D12 stops at Shader Model 6.5 while translated shaders require SM 6.6; offered automatically on Windows 10, or run victory.exe get-d3d12 / Get-D3D12.cmd. Windows 11 uses its built-in runtime (existing D3D12\D3D12Core.dll versions are auto-detected).

What VIctory-MA Adds

VIctory-MA tracks upstream VIctory-NVIDIA and layers performance engineering, memory/VRAM management, multi-vendor compatibility, and ray-tracing hardening measured on live NVIDIA and AMD hardware:

CPU Submission & Frame Pacing

  • Lock-free parallel refresh sifting (VICTORY_FRONT_SIFT, VICTORY_FLUSH_SIFT): Snapshots write-watch ahead ranges once per flush and sifts unchanged buffers lock-free across worker threads before watch::ask_ahead, cutting per-frame JOURNAL lock contention.
  • MRU Batch::ahead & single-pass FrontBuilder: Tracks pre-refreshed spans in a CleanSpanCache (single-hash inserts, 1-entry MRU hit path, deferred 64 KiB page-range invalidation on CPU Step::Copy writes instead of clearing every span) and eliminates the intermediate Vec<Touch> materialisation pass in refresh_front.
  • Pipelined async submit & thin-list execution: Unbounded live batching, lock-free wakeups, pipelined present drains (VICTORY_ASYNC_SUBMIT), VICTORY_STATE_CACHE wiring for thin command lists, and batched hoist ordering.
  • GPU-offloaded buffer compares & sharded watch journal: Offloads ≥ 1 MiB exact views and late buffers to GPU compare, shards the write-watch port journal (VICTORY_PORT_JOURNAL), coalesces heap_twin queries, merges indirect batch tables & card_steps staging copies (VICTORY_CARD_STEPS_JOIN), and batches relay/land dirty-page readbacks.
  • Known-pipeline boot prefetch & Reflex integration: Faster startup loading of cached pipelines (host-pipelines.bin), NVIDIA Reflex low-latency pacing without thrashing, and VICTORY_FG_LIMIT_FPS=0 when uncapped (--fps 1000).

Memory, VRAM & Texture Park Engineering

  • Zero-flicker mip-streamed texture retention & fresh-first city streaming:
    • Compares shared mapped mip prefixes (moved_whole) and unmapped HostTexture::holds fallbacks when the title streams higher/lower mips (92.7% texture-move retention in live play instead of flashing stand-in colours), inherits default SRV dimensions/formats for View::Shader null/unknown-format descriptors, uses perceptual mid-grey (0x80 R8G8B8A8_UNORM_SRGB = 0.216 linear) neutral stand-ins for sRGB colour views, and blocks Kin::Sized packed green RG masks from standing in for car albedos.
    • Orders FLAG_CHECKED speculative fingerprint rechecks behind un-uploaded retries and brand-new fresh street mips, and counts VICTORY_TEX_PARK=1 shared room toward upload_room so > 12 GiB GPUs unlock 16 ms (2x) / 24 ms (3x) catch-up pass caps during high-speed city driving instead of throttling at 8 ms.
    • Packs 4 KiB head + tail probes into Digest for ≥ 32 KiB textures so unchanged_with_fingerprint rejects modified VICTORY_SOFT_VIEWS=copies surfaces in 4–8 KiB (507 ms → 26 ms / 5 s).
  • Self-regulating 3-tier victory-sweep & parked-texture controller (VICTORY_PARK_EVICT): Scales sweep cadence (5 s calm → 1 s urgent at 2.0 GiB on ≤ 32 GiB RAM / 4.0 GiB on 64 GiB RAM → 500 ms burst above +1 GiB), enforces minimum let_go_idle budgets so sweeps never starve behind slot_evict, excludes PC-RAM parked textures from local-VRAM FilledCeiling, caps idle table-bound STAGING lifetime (10 s at ≥ 512 MiB / 5 s at ≥ 1 GiB) on 64 GB hosts, and raises parked-block compaction from 35% to 50% under waste.
  • Smarter commit & low-RAM park gates:
    • Lowers the default physical park floor (1,024 → 256 MiB) on ≤ 20 GiB RAM hosts that have ≥ 8 GiB free instant pagefile commit so 16 GB PCs do not deadlock texture streaming.
    • Admits at most one 64 MiB parked block per pass when instant commit dips below the default floor while physical RAM is ≥ 4 GiB free, instant commit is ≥ 512 MiB, and a system-managed pagefile can grow by ≥ 2 GiB — avoiding false lockouts while printing a one-shot warning with pagefile guidance if commit truly runs dry.
  • Non-blocking memory sweeps & pool drops: Incremental background working-set trim (victory-trim) with hysteresis and sustained-pressure gating, async retired pool drops (victory-pool-drop), size-indexed pool free ranges, VICTORY_TEX_PARK_LESS_SETTLE, fullest-fit pagebuf packing, partial WRITE_COMBINED carving, 4 GiB disk-free guard for file-backed CPU mirrors, and budget-aware Frame Generation VRAM headroom (unlocking the full 90% VRAM line on AMD FSR 3/4 and MVFG/DittoSR setups).

AMD & NVIDIA Hardware Compatibility

  • Per-GPU Frame Generation gating (GpuCaps) + universal MVFG / DittoSR: Prevents mismatched vendor hardware SDKs while giving every SM 6.6 GPU access to built-in 2x–4x MVFG and opt-in 2x DittoSR.
  • Built-in victory nv-profile command: Configures NVIDIA's driver shader heap (0x001ABC0F) directly without third-party profile editors (or in one click from F1 → NVIDIA SHADER HEAP), and warns on launch when the default 512 MB heap is active.
  • AMD RDNA 4 (RX 9000) & multi-vendor fixes: Unlocks full 90% dedicated VRAM budget when FSR 3/4 or software Frame Generation is live (+1.35 GB usable VRAM on 16 GB cards instead of clamping at 80%), reports FSR4 2X + FidelityFX upscaler version (4.1.2) accurately in F3, removes varying early returns before GroupMemoryBarrierWithGroupSync() in built-in FXC indirect clamp shaders (fixing black-screen gameplay with menus visible on RX 9070 XT), plus the RDNA 4 DXIL raw-buffer pipeline crash workaround (#3).
  • Resilient, switch-aware shader preloader: Caps default warm worker processes on AMD (4) and lower-RAM PCs (3 on ≤ 18 GiB, 6 on ≤ 26 GiB), detects driver TDR / device removal (0x887A0005 / 0x887A0020) to retry with backoff without poisoning warm-bad.txt, refuses to stamp incomplete preloads done, and hashes active shader switches (VICTORY_HW_RT, VICTORY_EXACT64, etc.) into the warmup mark.

Hardware Ray Tracing Hardening (Opt-In)

  • Stability & VRAM reservation: Addresses 0x887A0006 device removals via committed BLAS refits (VICTORY_HW_RT_REFIT_COMMITTED), 4-class fullest-fit BlasHeapPool, LeasePool trimming, VICTORY_HWRT_MIN_T guard, unspent HWRT VRAM reserve (VICTORY_HW_RT_PARK_RESERVE), and a loading-screen on-card texture block cap on ≤ 18 GiB GPUs so GDDR stays reserved for render targets and BVHs.
  • Console rendering & shader accuracy: Fixes descriptor/geometry flags, OMSetSampleMaskX resets, RAYQUERY lowering, and keeps VICTORY_DESERIALIZE_COMPUTE off by default to avoid gray-screen frames.

Stability, Telemetry & UX

  • Zero dropped draws on descriptor pressure: Unparks SharedTables after every in-flight landing and checks find_same before waiting.
  • Clear OOM recovery (DriverOom): Trims spare chunks on transient 0x8007000e pipeline creation failures and reports driver OOM accurately instead of blaming the commit floor.
  • Cleaner logs on all rigs: LongFrames adapts its baseline after 30 consecutive steady slow frames (ignoring ≥ 500 ms freezes) so slower CPUs stop spamming thousands of a long frame: blocks while real hitches remain visible; hot texture-room messages throttle on powers of two.
  • NVIDIA 32-lane Wave64 lighting fix: Keeps the strict empty-wave infinite-loop guard while retrying console wave64 compute shaders without the cautious loop guard before falling back to slow wave64 folding — recovers native 32-lane lowering for CS_CalcRasterClassificationListCounts and its variants on RTX 20/30/40/50.
  • Chapter 1 binoculars / boat-mission hang guard (VICTORY_VIEW_FINISH_GUARD): On verified build b99f876b..., filters unmapped objects out of the view finish job's list before its unbounded instance-map hash probe can spin-lock the watchdog (on by default; =0 disables).
  • Live First-Person Camera (F5 / VICTORY_FIRST_PERSON): Toggle the title's native first-person camera live on foot and in vehicles via F1 → FIRST PERSON VIEW (F5) or by pressing F5 (on verified build b99f876b...; restores the previous camera mode cleanly when turned off).
  • Opt-in NVAPI CPU-Visible VRAM (VICTORY_CVV=1): Unlocks direct CPU-mapped VRAM via NvAPI_D3D12_CreateHeap2 (for both mapped_card_buffer and VICTORY_HEAP_TWIN) on discrete NVIDIA cards with expanded BAR1 / Resizable BAR (> 256 MiB) when D3D12 GPU_UPLOAD isn't available (RTX 20 Turing and Windows 10 / pre-24H2 RTX 30/40/50). Off by default (nvapi64.dll stays unloaded unless enabled in F1 → NVAPI CPU-VISIBLE VRAM).
  • Redesigned tabbed F1 menu, F3/F2 overlays & preload UX: Category tabs (ALL, DISPLAY, CONTROLS, VISUALS, ENGINE, ACTIONS, cycled with Tab / Shift+Tab or mouse click), live GPU & console badges, LIVE badges, redesigned top FPS pill and F3/F2 telemetry chrome (including true COPY BACK ms timing), full mouse hover + left/right-click cycling, one-click UAC admin shader heap setup, scroll clamping, safe PowerShell -EncodedCommand deferred restarts, redesigned preload progress UI, extended keycap labels (Caps, PgUp/PgDn, Home/End, Ins/Del, F1–F12) with Wine/Proton GDI font fallbacks, 64 MiB default pipeline worker stacks under Wine (VICTORY_WORKER_STACK_MB), DRED no-in-flight shader-heap hints, automatic Series X warning on ≤ 18 GiB RAM, and CalVer vYYYY.MM.DD-ma.N build versions embedded into --version and F3 without churning Cargo.lock.
Upstream VIctory-NVIDIA & foxhound foundation included in this tree
  • Series X at native 2560x1440 (or 1080p→1440p / 4K) and Series S profiles (with two-plane UI composition and movable faces).
  • DLSS Super Resolution (selectable models J/K/L/M/auto) and DLSS Frame Generation / Multi Frame Generation (2x–6x), switchable live in-game once armed.
  • AMD FSR 3 Frame Generation (2x) and FSR 4 on RDNA 4 (--fg-type fsr4).
  • In-game F1 settings menu (live toggles, controller navigation, key rebinding, save export/import, live Gray Shadow Lift) and F3 telemetry panel (FPS, FG FPS, GPU/CPU busy time, draws, RAM/VRAM).
  • Lifted 30 FPS cap, GPU-side memory comparison (VICTORY_CARD_STEPS), open-water dark-block fix (VICTORY_WATER_LIGHT), indirect lighting & reflection estimates, HDR NaN scrub (VICTORY_NAN_SCRUB), native 1:1 mouse/keyboard + DualSense/XInput/HID pad support, and Windows sleep/display keep-awake while using a controller.
  • See docs/README-foxhound.md, docs/README-nvidia.md, and docs/findings.md for the upstream architecture and benchmark history.

In-Game Controls & Menus

Key Action
F1 Open/close the tabbed settings menu (Tab / Shift+Tab or click tabs for ALL / DISPLAY / CONTROLS / VISUALS / ENGINE / ACTIONS; arrow keys + Enter, or mouse hover/click/right-click/scroll; controller nav via VICTORY_MENU_PAD=menu or 1 for L3+R3). Configures DLSS/FSR/DittoSR, Frame Gen (DLSS / FSR 3 / FSR 4 / MVFG / DITTOSR), Ray Tracing, FPS cap, console profile, Gray Shadow Lift, FIRST PERSON VIEW (F5), VEHICLE AUTO-CENTER, controls, save export/import, and key bindings. SAVE AND RESTART NOW cleanly relaunches and SAVE AND CLOSE GAME saves and exits.
F2 Toggle the live frame-limiter / bottleneck advisor panel (WHAT LIMITS FPS (F2)).
F3 Toggle the live telemetry overlay (FPS, FG FPS & active backend, upscaler & version, frame times, COPY BACK ms, draws, GPU/CPU busy %, RAM/VRAM).
F5 Toggle the title's native first-person view live (VICTORY_FIRST_PERSON=1 or F1 → FIRST PERSON VIEW (F5)).
F8 Toggle vehicle camera auto-center bypass live (VICTORY_VEHICLE_AUTO_CENTER=1 or F1 → VEHICLE AUTO-CENTER re-enables stock centering).
F9 Manually toggle mouse cursor capture.
[ / ] Decrease / increase mouse sensitivity by 15%.
Alt + Enter Toggle borderless fullscreen.
  • Pads: Xbox (XInput) pads, PlayStation 4 and 5 DualSense/DualShock pads, and generic HID / DirectInput pads (buttons configurable via victory.exe pads and VICTORY_PAD_BUTTONS=; VICTORY_GENERIC_PADS=0 / VICTORY_DUALSENSE=0 disable them).
  • Native 1:1 mouse aiming & keyboard controls (VICTORY_NATIVE_MOUSE=1 by default; =0 falls back to VICTORY_MOUSE_CAPTURE / F1 → MOUSE AND KEYBOARD with bindings.ini). Full reference below.
Full Mouse, Keyboard, DualSense, HID Pad & F1 Controller Navigation Reference

Input Modes (F1 → CONTROLS)

  • Auto: Mixed keyboard/mouse and controller input.
  • Prompts follow F1 settings only: Xbox button prompts by default, keyboard prompts when CONTROLS is KEYBOARD or MOUSE AND KEYBOARD is on (animated hold prompts keep original icons; custom bindings.ini keeps gamepad icons).
  • Gamepad: XInput with native Sony HID fallback when XInput is absent.
  • DualSense (Native): Reads DualSense and DualSense Edge over USB or Bluetooth directly, even if a virtual XInput pad is present.

Native 1:1 Mouse & Keyboard (VICTORY_NATIVE_MOUSE=1 default; =0 uses bindings.ini)

  • Camera & UI: Raw mouse deltas drive 1:1 camera radians with native ADS/zoom scaling and auto-release the cursor in Pause, Map, Shop/Modal UI, and the F1 menu (click back in to re-lock without firing).
  • On foot / aircraft: WASD move/pitch, LMB = RT (fire), RMB = LT (aim), MMB / H / Ctrl = R3, Shift / F = L3, Space / Enter = A, R / Backspace = B, X / Y, Q = LB, E = RB, Esc = Menu, Tab = View, Arrows = D-pad (IJKL + Z/C also act as right stick/triggers without a controller).
  • Radial wheel (Q): Mouse selects sectors; scroll wheel cycles sub-slot items (VICTORY_WHEEL_SCROLL_INVERT=1 inverts scroll).
  • Driving: W = RT (throttle), S = LT (brake/reverse), A/D steer, LShift/LCtrl pitch (bikes/boats), Space = A, E = RB (handbrake), F = L3 (horn), MMB = R3 (look behind), RMB = LB / LMB = RB when the wheel is closed.
  • Tuning switches: VICTORY_MOUSE_SENS (default 0.0015), VICTORY_MOUSE_INVERT_Y=1, VICTORY_WHEEL_SENS (default 0.008), VICTORY_WHEEL_SCROLL_INVERT=1, VICTORY_VEHICLE_AUTO_CENTER=1, VICTORY_NATIVE_MOUSE=0.

F1 Menu Controller Navigation

  • Set VICTORY_MENU_PAD=menu (navigate F1 with slot-0 D-pad, A/Cross to select, B/Circle to go back) or VICTORY_MENU_PAD=1 (also toggles F1 via L3+R3 pressed within 250 ms).

Generic HID / PlayStation / Custom Pads

  • Xbox (XInput), PS4/PS5, and generic HID DirectInput controllers work out of the box (an attached XInput pad takes priority; VICTORY_GENERIC_PADS=0 or VICTORY_DUALSENSE=0 disables HID/PS pads if a wheel or flight stick drifts the camera).
  • Remap button indices by running victory.exe pads and adding VICTORY_PAD_BUTTONS=3,2,4,1,5,6,7,8,9,10,11,12 to victory-settings.txt.

Building From Source

Install Rust (toolchain pinned in rust-toolchain.toml) and Visual Studio Build Tools with Desktop development with C++, then run in PowerShell:

git clone https://github.com/MahanYTT/VIctory-MA
cd VIctory-MA
copy victory.example.toml victory.toml      # set game_dir to your dump folder (outside this repo)
.\Get-NVIDIA-DLSS.cmd                       # once (NVIDIA): Streamline / DLSS (~70 MB)
.\Get-AMD-FSR.cmd                           # once (AMD / FSR): FidelityFX SDK (~85 MB)
.\Get-D3D12.cmd                             # once (Windows 10 only): D3D12 Agility SDK (~22 MB)
powershell -ExecutionPolicy Bypass -File scripts\play-nvidia.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe'

Or build the standalone release executable directly (matching CI):

cargo build --release --locked -p victory

CI / contributor checks: Run cargo clippy --workspace --all-targets --locked -- -D warnings, cargo clippy --workspace --all-targets --all-features --locked -- -D warnings, cargo test --workspace --locked, and cargo xtask policy. Do not run cargo fmt (see AGENTS.md).

Smart Hardware Launcher (Play-MyRig.cmd): Runs pre-flight checks (commit headroom, stray processes, P/E cores, VRAM) and picks matched settings automatically. Pass -Summary to turn any play log into frame-time, stall, and memory comparisons. See docs/rig-launcher.md.

Script Launcher Options (scripts\play-nvidia.ps1 / scripts\play-foxhound.ps1)
Option Effect
(none) Series X profile, 2560x1440, DLSS Quality (on NVIDIA), uncapped FPS, frame generation off (-FrameGen or -FrameGenReady enables it)
-FrameGen, -FrameGenX 4 Enable frame generation at launch (2 to 6, clamped to GPU capabilities)
-Dlss off / dlaa / balanced / performance Switch DLSS quality mode or fall back to title upscaling
-Fps 60 Frame rate cap (30 matches stock console cadence; 1000 uncapped)
-SeriesS Series S profile (lighter internal resolution & VRAM/RAM footprint)
-Res 1080to1440 / 4k 1080p scene upscaled to 1440p, or stock 3840x2160 output
-FrameGenReady Arm Streamline swap chain for live F1 toggling (small idle overhead)
-FgType auto / dlss / fsr / fsr4 / mvfg / ditto Select frame-generation backend (hardware backends clamped to detected GPU tier)
-Preload Pre-translate shaders & build cached pipelines with a splash progress window (Esc skips)
-Splash <file|URL> / -NoPreloadWindow Custom splash background or console-only preload output
-Build diag Build/run the diagnostics profile (captures, timelines, extra F3 metrics)
-More @{VICTORY_X='1'} / -More VICTORY_X=1 Add or unset (NAME=) any VICTORY_* environment switch

Starting Through Steam

Steam Overlay & Steam Input Setup (Stadia / Generic Controllers)
  • Using the release binary (victory.exe): Add victory.exe (located inside your dump folder) directly via Games → Add a Non-Steam Game → Browse with empty Launch Options.
  • Using the repo script launcher:
    1. Build the thin .exe wrapper once: scripts\build-steam-launcher.cmd (produces scripts\play-foxhound.exe).
    2. Add scripts\play-foxhound.exe as a Non-Steam Game in Steam.
    3. Set Properties → Launch Options to the path of your executable (plus any optional script flags):
      "D:\Games\MyDump\game_scarlett_master.exe" -FrameGen -Dlss quality
      
      (Or store one argument per line in scripts\play-args.txt and leave Launch Options blank.)
    4. Enable Steam Input (and Generic Gamepad Configuration Support for Stadia/HID pads) under Steam → Settings → Controller, and ensure F1 → MOUSE AND KEYBOARD (VICTORY_MNK) is turned off when playing with a controller.

Known Limitations

  • Ray tracing (off by default): Replaced by fast indirect light and reflection estimates. F1 → RAY TRACING (SOFTWARE / HARDWARE) is experimental, triggers a separate shader preload when toggled, consumes substantially more VRAM/GPU time, and can still exhibit visual artifacts (especially on foliage/windows).
  • NVIDIA RTX 20 / 30 series: Hardware DLSS Frame Generation requires RTX 40/50 Optical Flow / Flip Metering, so FRAME GEN TYPE = AUTO defaults to DLSS Super Resolution upscaling only; select F1 → FRAME GEN TYPE → MVFG (ANY GPU) (2x–4x) or DITTOSR (DLL) (2x) to enable software Frame Generation alongside DLSS upscaling.
  • Focus requirement for Frame Generation: Generated frames only present while the game window is focused, and take ~1 second to engage after a live toggle.
  • Resizable BAR strongly recommended: Running with ReBAR off in BIOS disables CPU-mapped VRAM upload heaps and noticeably hurts CPU submission time.
  • Tight pagefiles / low RAM: Even with free physical RAM visible in Task Manager, Windows commit exhaustion pauses texture streaming. Expand your SSD pagefile and use Series S on 16 GB PCs.
  • Upstream base caveats: Heat-haze and face-relocation passes are left out by default (VICTORY_LEAVE_OUT), and heavy scenes can still hitch briefly while streaming newly seen assets.

Reporting Issues

Check docs/troubleshooting.md and docs/windows-memory.md first. When opening an issue on VIctory-MA Issues, please state your CPU, GPU & driver version, RAM, Windows version, release version (victory.exe --version), and attach your logs:

  1. Play log: %LOCALAPPDATA%\victory\logs\ — newest victory-ma-play-<date>-<time>-<pid>.log (or victory-ma-<date>-<time>.log from the script launcher; printed on the Log: startup line).
  2. Preload log (if shader warmup failed or was slow): newest victory-preload-<date>-<time>-<pid>.log in %LOCALAPPDATA%\victory\logs\.
  3. Crash log (if the game crashed): %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log and the newest victory-<date>-<time>-<pid>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\ (run victory.exe config if you use VICTORY_HOME).

Documentation

Guide Topic
docs/architecture.md Loader, HLE, D3D12.X GPU layer, and GFX10→DXIL shader pipeline overview
docs/dlss.md NVIDIA Streamline, DLSS Super Resolution, Frame Generation, and env switches
docs/troubleshooting.md Common startup, driver, black-screen, and runtime fixes
docs/windows-memory.md Commit budget, pagefile, and 8 GB VRAM / 16–32 GB RAM tuning
docs/unified-memory-classes.md Copy-back by memory class (opt-in switches skipping unread write-back)
docs/rig-launcher.md Play-MyRig.cmd auto-tuning wrapper and log summarizer
docs/fork-ray-tracing.md Ray tracing status and indirect light/reflection estimates
docs/loose-pipelines.md Pipeline cache layout and shader warmup internals
docs/replay.md Diagnostics capture and headless replay guide
docs/findings.md Measured frame-time and GPU/CPU optimization findings
docs/crash-addresses.md Known title crash offsets and diagnostics
docs/linux-proton.md Experimental Linux cross-build (cargo xwin) and Proton guide
docs/README-nvidia.md Upstream VIctory-NVIDIA README
docs/README-foxhound.md Upstream foxhound README and manual warm-up reference
docs/asset-policy.md Strict zero-game-asset repository policy

Credits

VIctory-MA stands on the work of the broader VIctory community and preserves full upstream git history:

  • MahanYTT — Maintainer of VIctory-MA (15-branch CPU/GPU performance overhaul, texture-park eviction & commit-gate engineering, strict per-GPU Frame Gen gating, AMD RDNA 4 & preload resilience fixes, hardware RT hardening, CalVer release automation, and ongoing upstream merges/audits).
  • trustno1-coder/VIctory-NVIDIA — Direct upstream NVIDIA fork (DLSS Super Resolution, DLSS 2x–6x Frame Generation, AMD FSR 3 / FSR 4 integration, F1 settings menu, F3 stats overlay, water-light & dark-block fixes, SDK fetchers, and 300+ measured RTX runs).
  • readmet3xt-lab/foxhound — High-performance renderer base (native Series X 1440p, GPU-side memory compares, card steps, descriptor/write-watch architecture, and light estimates).
  • Marvisak/VIctory and contributors — Original VIctory compatibility layer (native x86-64 loader, console HLE, D3D12.X backend, and RDNA2→DXIL shader translator).
  • Community forks & contributors whose research and PRs shaped the codebase:
  • Third-party runtimes (loaded dynamically at runtime, never bundled): NVIDIA Streamline, DLSS, and Reflex (NVIDIA); AMD FidelityFX SDK (AMD); DirectX 12 Agility SDK (Microsoft).
  • Significant portions of both upstream VIctory-NVIDIA and VIctory-MA were developed with AI-assisted engineering tools.

Star History

Star History Chart

License

Licensed under GPL-3.0-or-later, matching VIctory, foxhound, and VIctory-NVIDIA. See LICENSE. The single non-covered binary table file (crates/victory-formats/src/bcpack-tables.bin) is documented in docs/asset-policy.md.