2026-11-30 02:38:13 +03:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00
2026-11-30 02:38:13 +03:00
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00

NVIctory

Platform: Windows x64 D3D12 GPU: NVIDIA RTX Wave32 Rust: Edition 2024 Wave32 Oracle: 64/64 Verified License: GPL-3.0-or-later

NVIctory is a native Windows x64 and Direct3D 12 GDK compatibility layer engineered specifically for NVIDIA GeForce RTX graphics cards (Blackwell, Ada Lovelace, Ampere, and Turing). Forked from Marvisak/VIctory, it runs user-supplied Xbox Series X|S titles directly on the host x86-64 processor while translating XGameRuntime services, d3d12_xs command lists, virtual memory remappings, and RDNA2 Wave64 shaders into validated Shader Model 6.6+ DXIL for NVIDIA Wave32 hardware.

NVIctory's headline achievement is a near-ideal, full-fidelity Xbox Series X gameplay render on NVIDIA RTX — every RTGI, lighting, shadow, skin-bake, and post-processing pass runs natively at full Series X 4K resolution with zero dropped draws, zero black walls or shadow bands, zero low-poly mannequins, and zero disabled rendering stages.

Important

This repository contains no game files, proprietary code, encryption keys, or assets. You must supply your own legally obtained copy of the title outside the repository. NVIctory is an independent open-source project and is not affiliated with or endorsed by any game developer, publisher, or NVIDIA. See docs/asset-policy.md.


Status & Milestones (GTA VI Xbox Series X on NVIDIA RTX)

Milestone Status Verified Behavior
Exe Loads ✅ GTA VI PE32+ executable loads, IAT/TLS imports resolve, and title entry point runs via kernelx / xgameruntime / xmem
First Frame & Menus ✅ GTA VI boots cleanly through splash logos, title screen, and main menu with full input
World & Cutscene ✅ GTA VI story mode loads into the opening cutscene and game world at native Series X 4K
Playable Gameplay ✅ GTA VI is playable in the prison prologue with full character movement, camera, and pause menu
Full Series X Rendering ✅ Near-ideal Xbox Series X render on NVIDIA RTX: full RTGI, shadows, skin-bake, and post-processing with 0 dropped draws and 0 black walls
Stability ✅ GTA VI runs stable warm-cache sessions on RTX 5060 Ti (5.5–6.13 FPS in prologue gameplay, 0 TDR crashes)

Groundwork coverage: PE32+ loader & HLE (kernelx, xgameruntime, xmem, DirectStorage, BCPack, RPF9), RDNA2 Wave64-to-Wave32 shader compiler (~26,500 shaders to validated DXIL / HLSL), and d3d12_xs → D3D12 graphics layer (command list, descriptor heap, pipeline cache).


Why NVIctory

Console titles target AMD RDNA2 hardware with native 64-lane wavefronts (Wave64), unified CPU/GPU memory, and shader-visible descriptor heaps larger than one million entries. Running those workloads on NVIDIA RTX hardware exposes four structural mismatches that NVIctory solves directly in the shader compiler and D3D12 runtime:

  • Near-ideal RTGI, Skin & Cutscene Rendering (memory.rs, draw.rs, dstorage.rs, kernel.rs):
    • Full RTGI indirect lighting: Per-list BVH/RTGI fault draining (FAULT_DRAIN), 2,048 fault pages/frame (128 MiB/frame) with 128 KiB prefetch, and 64 MiB VRAM arena reclamation (95% VRAM threshold) eliminate pitch-black interior walls and shadow silhouettes.
    • Clean character skin & faces: VICTORY_BAKE_SOURCES=full (128 MiB/draw) combined with same_placed_texture_kind SRV preservation across LOD upgrades eliminates black/red LOD face flashes and BC7 block artifacts.
    • Zero low-poly mannequins or missing interior geometry: Overlapped DirectStorage I/O (FILE_FLAG_OVERLAPPED), BCPack concurrency limits, and monotonic frame_clock timeline pacing ensure high-LOD characters, outfits, roofs, and interior walls load cleanly from the very first frame.
  • Zero horizontal black shadow bars on RTX (VICTORY_THREAD_TICKET): NVIDIA hardware tiles 2D compute threadgroups (such as 32x2) in 16x2 warp blocks rather than linear flat IDs. Standard Wave64-to-Wave32 lowering assigns both warps in a 32x2 group to the same base offset, leaving half of every shadow and volumetric tile unwritten. NVIctory allocates console thread indices through a group-shared LDS ticket counter and wavePrefixOp lane rank, verified directly on RTX hardware (64/64 unique threads written vs 32/64 legacy).
  • Zero refused compute PSOs: Structured lds_meetings entry/exit barriers, intra-block split_lds barrier elision, acyclic widening (widen_acyclic), group-wide branch reduction, and unconditional UAV fences on s_barrier keep every translated compute shader valid on NVIDIA drivers without breaking Wave64 LDS semantics.
  • NVIDIA 1,000,000 descriptor heap fit: Enforces NVIDIA's Tier 3 view-heap cap (view_heap_limit) with safe null clamping, immediate dynamic slot recycling, and patched CPU descriptor store hooks (Renderer Port 2), sustaining 4,900+ draws/frame with zero refused descriptor tables.
  • Host memory, texture & CPU throughput: Combines 2 MiB xmem section mapping, 256-shard 16 MiB remap locks with REMAP_EPOCH tracking, branch-skipping AVX2 shadow buffer merging, AVX2 in-place copies down to 32 bytes, a 512 MiB texture staging pool (SPARE_MOST), parallel Step::Texture batching (texture_host_only), dedicated D3D12 copy queues (VICTORY_QUEUE2=3), and a ThinLTO perf build profile (-C target-cpu=x86-64-v3).

Benchmarks

Test System: Intel Core i5-11600KF (6C/12T, AVX2) · 32 GB DDR4 · NVIDIA GeForce RTX 5060 Ti 16 GB (Driver 610.88, Wave32, ReBAR) · Windows 11 x64
Conditions: Same machine, same prison prologue save on SSD, warm PSO cache (0 compiling), native rendering (no DLSS, no Frame Generation, no VICTORY_AMBIENT, no VICTORY_LEAVE_OUT).

Native Xbox Series X (4K) — FPS

Project FPS Notes
NVIctory (088a583) 5.5 Near-native output, 0 shadow bars, 0 refused tables
Kelvaroq (92606ea) 3.7 Intro rewinds a few frames every second; purple flashing on loading; shadow artifacts
fxceless/victory-fork (2eade68) 2.4 Edge smearing in world; grey background and thick text outlines on title cards
VIctory-NVIDIA (df2daaf) 2.3 Heat-haze smearing without VICTORY_LEAVE_OUT

Native Xbox Series X (4K) — Boot to Gameplay

Wall-clock time from process launch through intro, cutscene, and title card until character movement control is granted:

Project Time Notes
NVIctory (088a583) 2:38.88 Near-native output, 0 shadow bars, 0 refused tables
VIctory-NVIDIA (df2daaf) 2:46.58 Heat-haze smearing without VICTORY_LEAVE_OUT
Kelvaroq (92606ea) 3:00.75 Intro rewinds a few frames every second; purple flashing on loading; shadow artifacts
fxceless/victory-fork (2eade68) 3:05.71 Edge smearing in world; grey background and thick text outlines on title cards

Note

At native Xbox Series X 4K rendering on a 6-core i5-11600KF, frame pacing is CPU-bound in host memory synchronization while the RTX 5060 Ti runs at roughly 65–68% GPU load. Higher-core-count CPUs scale directly with NVIctory's parallel shadow refresh, descriptor sync, and deferred fill workers.

Other Benchmarks (1080p Output & Reduced Presets)

Automated 30–60 second warm-cache measurements on the same PC without DLSS or Frame Generation:

Project Mode FPS Mean / p95 Frame Time Notes
NVIctory (088a583) 1920x1080 (VICTORY_OUTPUT, full render) 6.13 163.2 / 208.2 ms Full render, 4,978 draws/frame, 0 shadow bars
NVIctory (088a583) 3840x2160 (native Xbox Series X, full render) 5.72 174.9 / 235.6 ms Full render, 4,957 draws/frame, 0 shadow bars
VIctory-NVIDIA (df2daaf) 2560x1440 (AMBIENT=0.8, RT OFF, LEAVE_OUT) 13.82 72.4 / 74.3 ms Reduced lighting preset; skips RT, decal defrag, and heat-haze (~341 dropped/frame)

Build and Launch

Requirements: Windows 11 x64 (Windows 10 requires Microsoft D3D12 Agility SDK for SM 6.6+), AVX2 CPU, 32 GB RAM (16–24 GB SSD pagefile), NVIDIA GeForce RTX GPU, Rust, and Visual Studio Build Tools (Desktop development with C++).

Clone and Build

git clone https://github.com/n-romanovich/NVIctory.git
cd NVIctory
copy victory.example.toml victory.toml
$env:RUSTFLAGS = "-C target-cpu=x86-64-v3"
cargo build --profile perf --locked -p victory

Open victory.toml (git-ignored) and set game_dir (the folder containing your title executable), cache_dir, and data_dir to paths outside the repository.

powershell -ExecutionPolicy Bypass -File .\scripts\prewarm.ps1

Launch

# Open GUI Launcher
.\target\perf\victory.exe launcher
# Run the game in Native Xbox Series X (4K)
powershell -ExecutionPolicy Bypass -File .\scripts\run.ps1 -AutoTune -TitleExe "<path-to-executable>"
# Run the game in 1080p output
powershell -ExecutionPolicy Bypass -File .\scripts\run.ps1 -AutoTune -Output 1920x1080 -TitleExe "<path-to-executable>"

You can also double-click target\perf\victory.exe directly to open the classic native Win32 NVIctory Launcher — pick your title executable, configure resolution and RTX switches, run RTX Self-Test, or export a sanitized bug report:

image

Built-In Diagnostics and Developer Tools

Tool Command Purpose
Hardware RTX Self-Test .\target\perf\victory.exe selftest Verifies AVX2, D3D12 SM 6.6+, Tier 3 binding, Wave32, and runs the live 32x2 warp oracle (64/64)
Live Bottleneck Tag Automatic in window title Displays [PSO-WARM], [GPU], [CPU-PREP], [CPU-COPY], [CPU-BACK], [CPU-TEX], or [OK]
Hardware Doctor powershell -ExecutionPolicy Bypass -File .\scripts\doctor.ps1 Prints hardware capabilities and previews auto-tuned VICTORY_* pool settings
Shader Prewarmer powershell -ExecutionPolicy Bypass -File .\scripts\prewarm.ps1 Pre-translates and compiles active shaders into cache_dir
A/B HTML Comparator powershell -ExecutionPolicy Bypass -File .\scripts\ab_compare.ps1 ... Runs two configurations back-to-back and builds a standalone HTML before/after image slider
Wave32 Shader Auditor python .\scripts\shader_audit.py --events <log> --shaders <rpf> Multi-threaded static risk scanner for Wave64-to-Wave32 compute shaders

Documentation

Document Description
docs/architecture.md System architecture, workspace crates, xmem remapping, Renderer Port 1/2, and shader pipeline
docs/nvidia-rtx-guide.md Deep technical breakdown of Wave32 fixes (VICTORY_THREAD_TICKET, lds_meetings, split_lds, widen_acyclic, 1M view heap)
docs/configuration.md Complete reference for victory.toml, CLI subcommands, native Win32 launcher, and VICTORY_* switches
docs/tooling.md Usage guide for selftest, bottleneck window tags, doctor.ps1, prewarm.ps1, ab_compare.ps1, and shader_audit.py
docs/troubleshooting.md Fixes for Windows 10 SM 6.5, error 1455, cold PSO stalls, 8 GB VRAM tuning, and sanitized bug reports
CONTRIBUTING.md Contribution rules, clean-room policy, code standards, and mandatory verification gates
AGENTS.md Technical invariants and verification checklist for contributors and coding agents
SECURITY.md Security scope and responsible vulnerability reporting
docs/asset-policy.md Automated repository asset policy enforced by cargo xtask policy

Verification

cargo xtask policy
cargo clippy --workspace --all-targets -- -D warnings
cargo test -p victory-shader --lib --locked emit::wave64_tests
cargo test -p victory-gpu --lib --locked memory
cargo test -p victory-hle --lib --locked modules::kernel
.\target\perf\victory.exe selftest

Verified passing: 216 asset-policy files OK, 0 clippy warnings, 38/38 unit tests passing (14/14 wave64_tests, 20/20 victory-gpu::memory, 4/4 modules::kernel), and 5/5 hardware RTX selftest checks passing.

License and Attribution

Licensed under the GNU General Public License v3.0 or later (LICENSE).

Forked from Marvisak/VIctory.

S
Description
Native Windows x64 + Direct3D 12 Xbox Series X|S compatibility layer engineered for NVIDIA GeForce RTX (Wave32) GPUs with near-ideal gameplay rendering
Readme GPL-3.0
44 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 99.4%
PowerShell 0.4%
Python 0.2%