- Rust 99.3%
- PowerShell 0.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .cargo | ||
| .githooks | ||
| .github/workflows | ||
| apps/victory | ||
| crates | ||
| docs | ||
| scripts | ||
| tests/fixtures/hle-probe | ||
| xtask | ||
| .gitattributes | ||
| .gitignore | ||
| .victory-root | ||
| AGENTS.md | ||
| bindings.ini | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| RENDER_JOURNAL.md | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
| SECURITY.md | ||
| victory.example.toml | ||
NVIctory
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 withsame_placed_texture_kindSRV 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 monotonicframe_clocktimeline pacing ensure high-LOD characters, outfits, roofs, and interior walls load cleanly from the very first frame.
- Full RTGI indirect lighting: Per-list BVH/RTGI fault draining (
- 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 andwavePrefixOplane rank, verified directly on RTX hardware (64/64unique threads written vs32/64legacy). - Zero refused compute PSOs: Structured
lds_meetingsentry/exit barriers, intra-blocksplit_ldsbarrier elision, acyclic widening (widen_acyclic), group-wide branch reduction, and unconditional UAV fences ons_barrierkeep 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 (releaseprofile), persistentxmemsection write views (eliminating per-write TLB shootdowns), 2 MiBxmemsection mapping with 256-shard 16 MiB remap locks andREMAP_EPOCHtracking, 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), ReBARGPU_UPLOADwith an 80% VRAM safety guard (VICTORY_GPU_UPLOAD), RTGI fault-on-miss gating (VICTORY_MEMORY_FAULT_ON_MISS), O(dirty) arena flushes,small_uavdescriptor fast path, deterministic static-samplerhost-pipelines.binPSO caching withWORLD_ACTIVEbackground compile throttling (eliminating cold-compile 1–3 FPS stalls),VICTORY_WAVE_FOLDED=0default,blake3root-signature caching (VICTORY_ROOT_CACHE), L1-residentDynamicBitset+ 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 greenfpsboxHUD.
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.exein 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=1default,fpsfor rate-only,0to hide) shows live FPS, CPU, GPU, and RAM.
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.