- Rust 98.2%
- PowerShell 1.2%
- HLSL 0.3%
- Python 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .cargo | ||
| .githooks | ||
| .github | ||
| apps/victory | ||
| crates | ||
| docs | ||
| scripts | ||
| tests | ||
| tools | ||
| xtask | ||
| .gitattributes | ||
| .gitignore | ||
| .victory-root | ||
| AGENTS.md | ||
| bindings.ini | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Get-AMD-FSR.cmd | ||
| Get-D3D12.cmd | ||
| Get-NVIDIA-DLSS.cmd | ||
| LICENSE | ||
| Play-MyRig.cmd | ||
| Play-VIctory.cmd | ||
| PLAY_FACES_FIX.cmd | ||
| PLAY_FRAMEGEN.cmd | ||
| README.md | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
| victory.example.toml | ||
VIctory-MA
Native x86-64 Xbox Series X|S Compatibility Layer for Windows — Performance, Frame Generation & Stability Edition
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
- Recommended Setup Checklist
- GPU & Frame Generation Support
- What VIctory-MA Adds
- In-Game Controls & Menus
- Building From Source & Launcher Options
- Steam & Controller Setup
- Known Limitations
- Reporting Issues
- Documentation
- Credits
- Star History
- License
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)
- Download
victory.exefrom the latest VIctory-MA release. - Place
victory.exebesidegame_scarlett_master.exein your game dump folder. - (NVIDIA users, once) Raise NVIDIA's shader heap from
512 MBto2,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:
(Check anytime with.\victory.exe nv-profile --mb 2048.\victory.exe nv-profile --status; revert with.\victory.exe nv-profile --remove.) - Double-click
victory.exe(if Windows SmartScreen warns on an unsigned binary: More info → Run anyway). - On the first launch of a new shader-translator build or driver,
victory.exeprecompiles 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.
Recommended Setup Checklist
These four steps eliminate the most common causes of low FPS, held textures, and shader OOM errors:
- Enable Resizable BAR + Above 4G Decoding in BIOS: Without ReBAR, the CPU cannot directly map card upload heaps (
supported=falsein the log) and falls back to slower staging copies every frame. - Raise the NVIDIA driver shader heap (
victory.exe nv-profile --mb 2048) and stay on a recent driver (621.01+ recommended on NVIDIA). The default512 MBdriver heap can trigger0x887A0005/0x887A0006pipeline failures during heavy scenes. - 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.
- Match profile & upscaler preset to your GPU / RAM:
- 16 GB RAM or 8 GB VRAM: Use Series S in F1 (
victory.exewarns 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 presetkincreases GPU frame time. - High-RAM systems (32–64 GB with large pagefile): Pass
victory.exe play --keep-memoryif you want to disable default untouched working-set trimming.
- 16 GB RAM or 8 GB VRAM: Use Series S in F1 (
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, or4x) 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-indittosr\amd_fidelityfx_dx12.dllbesidevictory.exe(or viaVICTORY_DITTOSR_PATH; putframe_gen=1andmenu_key=0indittosr.ini) for standalone2xFrame Generation and/orDITTOSR 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. Fetchesamd_fidelityfx_loader_dx12.dll,amd_fidelityfx_framegeneration_dx12.dll, andamd_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 (existingD3D12\D3D12Core.dllversions are auto-detected).
- NVIDIA Streamline / DLSS (~70 MB): Offered once on first launch, or run
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-watchaheadranges once per flush and sifts unchanged buffers lock-free across worker threads beforewatch::ask_ahead, cutting per-frameJOURNALlock contention. - MRU
Batch::ahead& single-passFrontBuilder: Tracks pre-refreshed spans in aCleanSpanCache(single-hash inserts, 1-entry MRU hit path, deferred 64 KiB page-range invalidation on CPUStep::Copywrites instead of clearing every span) and eliminates the intermediateVec<Touch>materialisation pass inrefresh_front. - Pipelined async submit & thin-list execution: Unbounded live batching, lock-free wakeups, pipelined present drains (
VICTORY_ASYNC_SUBMIT),VICTORY_STATE_CACHEwiring 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), coalescesheap_twinqueries, merges indirect batch tables &card_stepsstaging 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, andVICTORY_FG_LIMIT_FPS=0when 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 unmappedHostTexture::holdsfallbacks 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 forView::Shadernull/unknown-format descriptors, uses perceptual mid-grey (0x80R8G8B8A8_UNORM_SRGB=0.216linear) neutral stand-ins for sRGB colour views, and blocksKin::Sizedpacked green RG masks from standing in for car albedos. - Orders
FLAG_CHECKEDspeculative fingerprint rechecks behind un-uploaded retries and brand-newfreshstreet mips, and countsVICTORY_TEX_PARK=1shared room towardupload_roomso> 12 GiBGPUs unlock16 ms(2x) /24 ms(3x) catch-up pass caps during high-speed city driving instead of throttling at8 ms. - Packs 4 KiB head + tail probes into
Digestfor≥ 32 KiBtextures sounchanged_with_fingerprintrejects modifiedVICTORY_SOFT_VIEWS=copiessurfaces in 4–8 KiB (507 ms → 26 ms / 5 s).
- Compares shared mapped mip prefixes (
- Self-regulating 3-tier
victory-sweep& parked-texture controller (VICTORY_PARK_EVICT): Scales sweep cadence (5 scalm →1 surgent at2.0 GiBon≤ 32 GiBRAM /4.0 GiBon64 GiBRAM →500 msburst above+1 GiB), enforces minimumlet_go_idlebudgets so sweeps never starve behindslot_evict, excludes PC-RAM parked textures from local-VRAMFilledCeiling, caps idle table-boundSTAGINGlifetime (10 sat≥ 512 MiB/5 sat≥ 1 GiB) on 64 GB hosts, and raises parked-block compaction from35%to50%under waste. - Smarter commit & low-RAM park gates:
- Lowers the default physical park floor (
1,024 → 256 MiB) on≤ 20 GiBRAM hosts that have≥ 8 GiBfree instant pagefile commit so 16 GB PCs do not deadlock texture streaming. - Admits at most one
64 MiBparked block per pass when instant commit dips below the default floor while physical RAM is≥ 4 GiBfree, 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.
- Lowers the default physical park floor (
- 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-fitpagebufpacking, partialWRITE_COMBINEDcarving,4 GiBdisk-free guard for file-backed CPU mirrors, and budget-aware Frame Generation VRAM headroom (unlocking the full90%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-in2x–4xMVFG and opt-in2xDittoSR. - Built-in
victory nv-profilecommand: 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 default512 MBheap 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 GBusable VRAM on 16 GB cards instead of clamping at80%), reportsFSR4 2X+ FidelityFX upscaler version (4.1.2) accurately in F3, removes varying early returns beforeGroupMemoryBarrierWithGroupSync()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 (3on≤ 18 GiB,6on≤ 26 GiB), detects driver TDR / device removal (0x887A0005/0x887A0020) to retry with backoff without poisoningwarm-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
0x887A0006device removals via committed BLAS refits (VICTORY_HW_RT_REFIT_COMMITTED), 4-class fullest-fitBlasHeapPool,LeasePooltrimming,VICTORY_HWRT_MIN_Tguard, unspent HWRT VRAM reserve (VICTORY_HW_RT_PARK_RESERVE), and a loading-screen on-card texture block cap on≤ 18 GiBGPUs so GDDR stays reserved for render targets and BVHs. - Console rendering & shader accuracy: Fixes descriptor/geometry flags,
OMSetSampleMaskXresets,RAYQUERYlowering, and keepsVICTORY_DESERIALIZE_COMPUTEoff by default to avoid gray-screen frames.
Stability, Telemetry & UX
- Zero dropped draws on descriptor pressure: Unparks
SharedTablesafter every in-flight landing and checksfind_samebefore waiting. - Clear OOM recovery (
DriverOom): Trims spare chunks on transient0x8007000epipeline creation failures and reports driver OOM accurately instead of blaming the commit floor. - Cleaner logs on all rigs:
LongFramesadapts its baseline after 30 consecutive steady slow frames (ignoring≥ 500 msfreezes) so slower CPUs stop spamming thousands ofa 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_CalcRasterClassificationListCountsand its variants on RTX 20/30/40/50. - Chapter 1 binoculars / boat-mission hang guard (
VICTORY_VIEW_FINISH_GUARD): On verified buildb99f876b..., 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;=0disables). - 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 buildb99f876b...; restores the previous camera mode cleanly when turned off). - Opt-in NVAPI CPU-Visible VRAM (
VICTORY_CVV=1): Unlocks direct CPU-mapped VRAM viaNvAPI_D3D12_CreateHeap2(for bothmapped_card_bufferandVICTORY_HEAP_TWIN) on discrete NVIDIA cards with expanded BAR1 / Resizable BAR (> 256 MiB) when D3D12GPU_UPLOADisn't available (RTX 20 Turing and Windows 10 / pre-24H2 RTX 30/40/50). Off by default (nvapi64.dllstays 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 withTab/Shift+Tabor mouse click), live GPU & console badges,LIVEbadges, redesigned top FPS pill and F3/F2 telemetry chrome (including trueCOPY BACKms timing), full mouse hover + left/right-click cycling, one-click UAC admin shader heap setup, scroll clamping, safe PowerShell-EncodedCommanddeferred 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 GiBRAM, and CalVervYYYY.MM.DD-ma.Nbuild versions embedded into--versionand F3 without churningCargo.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 padsandVICTORY_PAD_BUTTONS=;VICTORY_GENERIC_PADS=0/VICTORY_DUALSENSE=0disable them). - Native 1:1 mouse aiming & keyboard controls (
VICTORY_NATIVE_MOUSE=1by default;=0falls back toVICTORY_MOUSE_CAPTURE/ F1 → MOUSE AND KEYBOARD withbindings.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
CONTROLSisKEYBOARDorMOUSE AND KEYBOARDis on (animated hold prompts keep original icons; custombindings.inikeeps 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:
WASDmove/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/Calso act as right stick/triggers without a controller). - Radial wheel (
Q): Mouse selects sectors; scroll wheel cycles sub-slot items (VICTORY_WHEEL_SCROLL_INVERT=1inverts scroll). - Driving:
W= RT (throttle),S= LT (brake/reverse),A/Dsteer,LShift/LCtrlpitch (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(default0.0015),VICTORY_MOUSE_INVERT_Y=1,VICTORY_WHEEL_SENS(default0.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) orVICTORY_MENU_PAD=1(also toggles F1 viaL3+R3pressed 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=0orVICTORY_DUALSENSE=0disables HID/PS pads if a wheel or flight stick drifts the camera). - Remap button indices by running
victory.exe padsand addingVICTORY_PAD_BUTTONS=3,2,4,1,5,6,7,8,9,10,11,12tovictory-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, andcargo xtask policy. Do not runcargo 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-Summaryto 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): Addvictory.exe(located inside your dump folder) directly via Games → Add a Non-Steam Game → Browse with empty Launch Options. - Using the repo script launcher:
- Build the thin
.exewrapper once:scripts\build-steam-launcher.cmd(producesscripts\play-foxhound.exe). - Add
scripts\play-foxhound.exeas a Non-Steam Game in Steam. - Set Properties → Launch Options to the path of your executable (plus any optional script flags):
(Or store one argument per line in"D:\Games\MyDump\game_scarlett_master.exe" -FrameGen -Dlss qualityscripts\play-args.txtand leave Launch Options blank.) - 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.
- Build the thin
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 = AUTOdefaults to DLSS Super Resolution upscaling only; select F1 → FRAME GEN TYPE →MVFG (ANY GPU)(2x–4x) orDITTOSR (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:
- Play log:
%LOCALAPPDATA%\victory\logs\— newestvictory-ma-play-<date>-<time>-<pid>.log(orvictory-ma-<date>-<time>.logfrom the script launcher; printed on theLog:startup line). - Preload log (if shader warmup failed or was slow): newest
victory-preload-<date>-<time>-<pid>.login%LOCALAPPDATA%\victory\logs\. - Crash log (if the game crashed):
%LOCALAPPDATA%\VIctory\data\7952987A\crashes.logand the newestvictory-<date>-<time>-<pid>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\(runvictory.exe configif you useVICTORY_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:
- gamingwithhomie/larp (MVFG 2x–4x motion-vector frame generation, DittoSR FidelityFX integration, Wave64 32-lane retry, Chapter 1 view-finish guard, live first-person camera toggle, NVAPI CPU-Visible VRAM, and Wine/Proton ergonomics; GPL-3.0-or-later)
- fxceless/victory-fork (two-plane Series S UI composition, face network fixes)
- codec-d/cool_fox & DoubleGhosty/cool_fox (renderer & AMD DXIL shader fixes)
- DexNom/VIctory (upscaler/FidelityFX path research & shader size queries)
- avatarmanz/VIctory-7900XTX, Belobug/VIctory-Belobug-AMD, and skornuta/victory-memory-stack (packed indirect budgets & memory research)
- saifzetoney-ui — AMD RDNA4 DXIL raw-buffer crash fix (MahanYTT/VIctory-MA#3)
- DueTonight and mikan123pro — Save sharing (F1 export/import) testing (discussion #520)
- 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
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.