Read-only copy of github.com/n-romanovich/NVIctory · Native Windows x64 + Direct3D 12 Xbox Series X|S compatibility layer engineered for NVIDIA GeForce RTX (Wave32) GPUs with near-ideal gameplay rendering
  • Rust 99.3%
  • PowerShell 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-03 02:23:50 +03:00
.cargo Initial commit 2026-11-23 01:15:26 +01:00
.githooks Initial commit 2026-11-23 01:15:26 +01:00
.github/workflows CI: the gpu crate's tests run one at a time 2026-11-25 22:19:12 -05:00
apps/victory feat(cli): show precompile progress dialog on console launch 2026-12-03 02:23:50 +03:00
crates fix(gpu): fix diagnostics clippy warnings 2026-12-03 01:43:21 +03:00
docs docs(repo): update README, guides, AGENTS.md, and CONTRIBUTING.md 2026-12-03 01:35:30 +03:00
scripts fix(scripts): resolve game exe from VICTORY_CONFIG and launcher.ini 2026-12-03 01:47:12 +03:00
tests/fixtures/hle-probe Run Grand Theft Auto VI from first boot into the world 2026-11-23 23:10:01 +01:00
xtask chore(xtask): update repository asset policy allowlist 2026-12-03 00:43:52 +03:00
.gitattributes Initial commit 2026-11-23 01:15:26 +01:00
.gitignore fix(hle/gpu): eliminate cutscene low-poly mannequins and missing interior geometry via frame_clock and upload pipeline optimizations 2026-11-29 16:04:23 +03:00
.victory-root Initial commit 2026-11-23 01:15:26 +01:00
AGENTS.md docs(repo): update README, guides, AGENTS.md, and CONTRIBUTING.md 2026-12-03 01:35:30 +03:00
bindings.ini feat(game): add console profile metadata and on-screen glyph prompt hooks 2026-12-03 01:35:29 +03:00
Cargo.lock build(cargo): configure release Fat LTO profile and workspace dependencies 2026-12-03 00:43:52 +03:00
Cargo.toml build(cargo): configure release Fat LTO profile and workspace dependencies 2026-12-03 00:43:52 +03:00
CONTRIBUTING.md docs(repo): update README, guides, AGENTS.md, and CONTRIBUTING.md 2026-12-03 01:35:30 +03:00
LICENSE Initial commit 2026-11-23 01:15:26 +01:00
README.md Update README.md 2026-12-03 01:35:30 +03:00
RENDER_JOURNAL.md fix(hle/gpu): eliminate cutscene low-poly mannequins and missing interior geometry via frame_clock and upload pipeline optimizations 2026-11-29 16:04:23 +03: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
SECURITY.md docs: add SECURITY.md with scope and responsible disclosure policy 2026-11-28 01:23:53 +03:00
victory.example.toml The game is no longer named in the tree 2026-11-24 15:45:05 -05: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 (12.26 FPS native 4K, 32.18 FPS shown with FSR 3 FG 2x in highfps, 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), d3d12_xs → D3D12 graphics layer (command list, descriptor heap, deterministic static-sampler host-pipelines.bin cache, WORLD_ACTIVE pipeline throttling, small_uav, top-left green HUD), and native Win32 launcher with 5s-skippable shader/PSO precompilation.


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, shader cache & CPU throughput: Combines mimalloc + Fat LTO (release profile), persistent xmem section write views (eliminating per-write TLB shootdowns), 2 MiB xmem section mapping with 256-shard 16 MiB remap locks and REMAP_EPOCH tracking, GPU-RO write-range clipping (VICTORY_GPU_RO_SKIP) and bulk WC readback skip (VICTORY_SKIP_WC_BACK), 4 KiB placed texture slab pooling (VICTORY_TEXTURE_POOL), ReBAR GPU_UPLOAD with an 80% VRAM safety guard (VICTORY_GPU_UPLOAD), RTGI fault-on-miss gating (VICTORY_MEMORY_FAULT_ON_MISS), O(dirty) arena flushes, small_uav descriptor fast path, deterministic static-sampler host-pipelines.bin PSO caching with WORLD_ACTIVE background compile throttling (eliminating cold-compile 1–3 FPS stalls), VICTORY_WAVE_FOLDED=0 default, blake3 root-signature caching (VICTORY_ROOT_CACHE), L1-resident DynamicBitset + pre-made null descriptors, branch-skipping AVX2 shadow merging with targeted worker wakeup/spin, dedicated D3D12 copy queues (VICTORY_QUEUE2=3), runtime AVX2 guards, and the top-left green fpsbox HUD.

Benchmarks

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

Native Xbox Series X (4K) — FPS

Project FPS Notes
NVIctory (current release) 12.26 Full native 4K (mean 81.6 ms, p50 77.7 ms, p95 138.7 ms), 0 shadow bars, 0 refused tables, 0 page faults
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 (current release) ~2:38 Full native 4K output, deterministic static-sampler host-pipelines.bin cache, 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 well below saturation. Higher-core-count CPUs scale directly with NVIctory's parallel shadow refresh, descriptor sync, and deferred fill workers.

Other Benchmarks (High-FPS Preset & Historical Baseline)

Automated warm-cache measurements on the same PC (pipelines_made == 0.0):

Project Mode FPS Mean / p95 Frame Time Notes
NVIctory (current release) highfps (Series S 1080p + DLSS Perf + FSR 3 FG 2x) 32.18 shown (16.09 rendered) 62.2 / 100.3 ms 2,785 draws/frame, 0 dropped draws, 0 refused tables
NVIctory (current release) 3840x2160 (native Xbox Series X, full render) 12.26 81.6 / 138.7 ms Full render, 2,431–3,790 draws/frame, 0 shadow bars
NVIctory (initial baseline) 3840x2160 (native Xbox Series X, full render) 0.64 1566.0 / 2207.0 ms Cold/unoptimized baseline (~19× slower than current release)

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
.\scripts\build.ps1

Or manually:

$env:RUSTFLAGS = "-C target-cpu=x86-64-v3"
cargo build --release --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.

Launch

NVIctory detects whether it was started from Windows Explorer (opens the classic Win32 Launcher with 5s-skippable shader precompilation) or a terminal, and automatically resolves game_dir from victory.toml:

# Classic Win32 GUI launcher (or double-click target\release\victory.exe in Explorer)
.\target\release\victory.exe launcher

# High-FPS mode via wrapper (Series S 1080p + DLSS Performance + FSR 3 Frame Generation 2x)
.\scripts\run.ps1 -Mode highfps

# True native Series X 4K without DLSS / Frame Generation
.\scripts\run.ps1

# Direct CLI launch with custom flags
.\target\release\victory.exe play --res 1440
.\target\release\victory.exe play --res 4k --dlss off "<path-to-executable>"

# Optional one-time shader/pipeline precompile or upscaler setup
.\target\release\victory.exe preload
.\target\release\victory.exe get-dlss
.\target\release\victory.exe get-fsr

Tip

Double-clicking victory.exe in Windows Explorer opens the native Win32 NVIctory Launcher (apps/victory/src/launcher.rs) and runs a two-phase shader & pipeline precompilation dialog (skippable after 5 seconds). The top-left green HUD (VICTORY_FPS_COUNTER=1 default, fps for rate-only, 0 to hide) shows live FPS, CPU, GPU, and RAM.

image

Built-In Diagnostics and Developer Tools

Tool Command Purpose
Classic GUI Launcher .\target\release\victory.exe launcher or double-click Native Win32 dialog with console/resolution picker, 5s-skippable precompile progress, and nvictory.exe driver bypass
Direct Console Play .\target\release\victory.exe or victory.exe play --help Zero-script launch reading victory.toml (game_dir)
Shader Precompiler .\target\release\victory.exe preload Translates shaders and warms D3D12 pipelines ahead of time (resumable if skipped)
Hardware RTX Self-Test .\target\release\victory.exe selftest Verifies AVX2, D3D12 SM 6.6+, Tier 3 binding, Wave32, and runs the live 32x2 warp oracle (64/64)
Top-Left Green HUD Enabled (VICTORY_FPS_COUNTER=1) Shows FPS, CPU, GPU, and RAM (fps for rate-only, 0 to disable)
Hardware Doctor powershell -ExecutionPolicy Bypass -File .\scripts\doctor.ps1 Prints hardware capabilities and verifies config/binary readiness
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 --workspace --lib --locked
cargo test -p victory --locked
.\target\release\victory.exe selftest

Verified passing: cargo xtask policy OK, 0 clippy warnings, full workspace tests passing (including 13/13 wave64_tests), 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.