- Rust 99.4%
- PowerShell 0.5%
| 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 | ||
| bindings.ini | ||
| Cargo.lock | ||
| Cargo.toml | ||
| Get-AMD-FSR.cmd | ||
| Get-NVIDIA-DLSS.cmd | ||
| LICENSE | ||
| Play-VIctory.cmd | ||
| PLAY_FACES_FIX.cmd | ||
| PLAY_FRAMEGEN.cmd | ||
| README.md | ||
| rust-toolchain.toml | ||
| rustfmt.toml | ||
| victory.example.toml | ||
The NVIDIA RTX & Intel-tested Gabagool fork of VIctory-NVIDIA — bringing vendor-neutral performance tuning, live telemetry, USB/BT HID haptic controller support, and runtime engine controls to discrete NVIDIA RTX GPUs and 6-core Intel CPUs.
Test Rig Specs ·
What's Implemented ·
Benchmarks & Findings ·
Quick Start
Clean-Room Open-Source Notice: This repository contains no game files, proprietary assets, in-game media, or third-party SDK/upscaler DLLs. You must supply your own legally obtained console title files and fetch any optional upscaler/runtime files separately. Not affiliated with or endorsed by any software publisher or hardware vendor. See docs/asset-policy.md.
Test Machine Specifications
Every commit, stability fix, and benchmark on this branch is built and verified on a mainstream 6-core Intel + 8 GB NVIDIA RTX desktop — intentionally stressing constrained VRAM (8 GB), non-AMD CPU instruction emulation, and 6-core thread scheduling:
| Component | Specification | Runtime Notes |
|---|---|---|
| CPU | Intel Core i7-8700 @ 3.20 GHz (6C / 12T, Coffee Lake) |
Lacks SSE4a / CLZERO / CLWB / MONITORX / MWAITX; exercises victory-loader::console_insn emulation on every run |
| GPU | NVIDIA GeForce RTX 4060 (8188 MiB GDDR6, Ada Lovelace) |
PCIe Gen 3 ×8 · DX12 Shader Model 6.8 · DX12 Tier 2 VRS · DLSS SR + 2× DLSS FG capable |
| GPU Driver | NVIDIA 621.40 (32.0.16.2140) |
Tested with NVIDIA Streamline v2.14.16 / NGX 310.9.16 |
| System RAM | 32 GB DDR4-3200 (2 × 16 GB) |
~53 GB commit limit with 20 GB active C:\pagefile.sys |
| Motherboard | Dell 00CV7F |
Windows 11 Pro Insider Preview (Build 28120) |
| Target Profile | Series S (1920×1080 output, 1280×720 DLSS Quality) |
Tuning for >30 real-time native FPS & flat frametimes first (DLSS SR enabled; DRS & FG/MFG deferred until native pacing is locked) |
Work Completed So Far
1. Intel + NVIDIA Gabagool Feature Port (Commit 7bca760)
Ported all vendor-neutral performance, controller, UI, and engine features from VIctory-Strix-128-Gabagool while preserving every upstream VIctory-NVIDIA capability (Streamline DLSS/FG, water lighting, save sharing, optional third-party MFG loader hook) and skipping AMD/UMA-only code:
- Native USB + BT HID Controller & Adaptive Trigger Bridge (
victory-hle::modules::dualsense): Direct HID input & output bridge translating 4-motor impulse triggers into adaptive trigger resistance and VCM haptics, plus live controller telemetry and 10 unit-tested haptic/trigger profiles. - Gamepad-Navigable F1 Settings Menu (
victory-gpu::host::menu): Full XInput + HID gamepad navigation, customizable summon chord (Start+Selectdefault), selectable button-label layouts, and live controls for every ported knob. - 11-Line Rolling Telemetry HUD (
victory-gpu::host::panel): Extends theF3stats overlay with a rolling 120-frameJIT <ms> P99 <ms> VRS:<mode> DRS:T<tier>line and live FPS feed. - DX12 Tier 1 / Tier 2 Variable Rate Shading (
victory-gpu::vrs): LiveVICTORY_VRS(off,soft,1x2,2x1,2x2) verified on RTX 4060 Tier 2 VRS hardware. - Live DRS Hysteresis Governor (
victory-gpu::drs): Opt-in dynamic VRS/LOD stepping (VICTORY_DRS_MIN_FPS,VICTORY_DRS_MAX_FPS, kept off during native FPS tuning). - Live
.dataRuntime Engine Knobs (victory-loader::engine): Runtime-tunableVICTORY_LOD_SCALE,VICTORY_SMALL_CULL,VICTORY_VEHICLE_LOD_BIAS,VICTORY_LOW_SHADOWS, andVICTORY_LOW_VOLUMETRIC(verified withengine::tests). - Self-Restoring Windows Game Mode (
victory-gpu::game_mode): Vendor-neutralVICTORY_GAME_MODE=1enabling 1 ms timer resolution, MMCSS"Games"scheduling,HIGH_PRIORITY_CLASS, and EcoQoS disable with automatic cleanup on exit. - Fast Shadow & Pipeline Primitives: 32-byte chunked XOR
merge_piecefast path (shadow.rs), deterministic static sampler ordering (VICTORY_SAMPLER_ORDER), async GPU pass profiler (gpu_prof.rs), and D3D12 UI compositor helpers (ui_compositor.rs,ui_draw.rs).
2. Intro Video Skip Port (Commit 228044c)
- Ported
crates/victory-loader/src/movies.rs(VICTORY_SKIP_MOVIES=end|open|fast) and wired it intovictory-loaderand theF1menu. - Verified with
cargo test --locked -p victory-loader movies::tests(3/3 passing) and live test runs, significantly shortening boot-to-3D iteration time.
3. 6-Core Intel + 8 GB RTX 4060 Stability & VRAM Breakthroughs (Runs 1–21)
- Eliminated
+0x23cf6833D-Load Watchdog Crash: Root-caused0xc0000005 (write 0x0)at+0x23cf683to the title's 30-secondCrossQueueBarrierGPU hang watchdog firing when 12 normal-priority pipeline workers + unboundedVICTORY_PIPELINE_COMPUTE_WAIT=1stalled the first 3D frame on a 6-core i7-8700. Bounding worker count and priority (VICTORY_PIPELINE_WORKERS=4,VICTORY_PIPELINE_LOWEST=1,VICTORY_PIPELINE_COMPUTE_WAIT=0,VICTORY_SCREEN_WAIT_MS=1500,VICTORY_PIPELINE_WAIT_MS=100,VICTORY_DSTORAGE_WORKERS=6) yielded three consecutive 240-second crash-free 3D runs (Runs 19–21). - Eliminated 8 GB VRAM Budget Overflow:
VICTORY_TEXTURE_BUDGET_MB=2400+VICTORY_TEXTURE_FIRST_UPLOAD_MB=0+VICTORY_WAIT_RESIDENT=0brought RTX 4060 VRAM down from7.3 / 6.2 GB(thrashing PCIe) to5.4 / 6.3 GB(-1.9 GB), cutting P99 frametime by 81% (1314 ms → 252 ms) and jitter by 76% (180.6 ms → 43.5 ms).
Measured Progress & 8 GB VRAM Findings
| Run | Configuration Delta | Stability (240 s) | VRAM Usage | P99 / JIT (HUD) | Key Finding |
|---|---|---|---|---|---|
| Runs 14–17 | Default 12 normal-priority workers, COMPUTE_WAIT=1 |
Crash @ 122 s (+0x23cf683) |
3.5 GB (pre-world) |
— | First 3D frame stalled >30 s → CrossQueueBarrier watchdog |
| Run 18 | COMPUTE_WAIT=0, SCREEN_WAIT_MS=4000, 12 workers |
3D active 83 s, crash @ 209 s | 5.5 / 6.4 GB |
1109 ms / 68.6 ms |
Broke into 3D world; 12 workers starved 6-core CPU (SUBMIT 7043 ms) |
| Run 19 | WORKERS=4, LOWEST=1, DSTORAGE=6, ROOM=75% |
240 s · 0 crashes | 6.7 / 6.4 GB |
369 ms / 56.3 ms |
First full 240 s 3D run (8–10 fps); VRAM still spilled over 6.4 GB |
| Run 20 | Added RT_SKIP_DEAD=1, VRS=soft, LEVELS_ON_DEMAND=1 |
240 s · 0 crashes | 7.3 / 6.2 GB |
1314 ms / 180.6 ms |
LEVELS_ON_DEMAND=1 + BVH_NO_HIT=1 increased VRAM & invalidated cache |
| Run 21 | TEXTURE_BUDGET_MB=2400, FIRST_UPLOAD=0, WAIT_RESIDENT=0, VRS=soft, RT_SKIP_DEAD=1 |
240 s · 0 crashes | 5.4 / 6.3 GB |
252 ms / 43.5 ms |
-1.9 GB VRAM, -81% P99, -76% JIT, 0 pending pipelines |
Next Optimization Targets (In Progress)
- CPU Submit & Copy-Back Reduction: Restore
VICTORY_CARD_BUFFERS_MB=1294alongsideVICTORY_TEXTURE_BUDGET_MB=2400(lowering card buffers to640doubledCOPY BACKfrom23 ms→45 ms) and port async heap-maintenance (victory-heap-maint), WC panel staging, hybrid sleep+spin frame pacing, and zero-overheadVICTORY_FRAMETIME_LOGCSV telemetry. - GPU Shader Optimization: Port opt-in DXIL optimizer passes (
VICTORY_SHADER_OPT=2047) and Wave32 paired lowering (VICTORY_WAVE_PAIRED) for 32-lane NVIDIA warps. - Real-Time Target: Reach >30 real-time native FPS with flat frametimes (DLSS SR enabled; DRS and frame generation deferred until native pacing is nailed).
Quick Start
Prerequisites
- Windows 10 (with D3D12 Agility SDK
1.614+) or Windows 11, 32 GB RAM (with automatic pagefile enabled — see docs/windows-memory.md), SSD, and an NVIDIA GeForce RTX GPU. - Rust + Visual Studio Build Tools (Desktop development with C++).
Build & Run
git clone https://git.gtahub.st/JackNuggz/VIctory-NVIDIA-Gabagool.git VIctory-NVIDIA
cd VIctory-NVIDIA
.\Get-NVIDIA-DLSS.cmd
cargo build --release --locked -p victory
Recommended 8 GB RTX 4060 / 6-Core Intel Launch (Series S + DLSS Quality, No FG):
powershell -ExecutionPolicy Bypass -Command "& '.\scripts\play-nvidia.ps1' -Exe '<path-to-your-title-executable>' -SeriesS -Dlss quality -More @{ VICTORY_SKIP_MOVIES='end'; VICTORY_GAME_MODE='1'; VICTORY_WAIT_SPIN='200'; VICTORY_PANEL='1'; VICTORY_VRS='soft'; VICTORY_RT_SKIP_DEAD='1'; VICTORY_RT_SKIP_GATHER_COPY='1'; VICTORY_TEXTURE_BUDGET_MB='2400'; VICTORY_TEXTURE_FIRST_UPLOAD_MB='0'; VICTORY_WAIT_RESIDENT='0'; VICTORY_PIPELINE_WORKERS='4'; VICTORY_PIPELINE_LOWEST='1'; VICTORY_PIPELINE_COMPUTE_WAIT='0'; VICTORY_SCREEN_WAIT_MS='1500'; VICTORY_PIPELINE_WAIT_MS='100'; VICTORY_DSTORAGE_WORKERS='6' }"
In-Game Controls
F1orStart + Select(customizable): Open the settings menu (Keyboard + XInput / HID controller navigation).F3: Toggle the 11-line live telemetry HUD (FPS,FRAME,DRAWS,SUBMIT,GPU BUSY,COPY BACK,RAM/VRAM,JIT,P99,VRS,DRS).
Optional Third-Party Dependencies (Not Included)
- NVIDIA Streamline / DLSS / DLSS FG: Run
.\Get-NVIDIA-DLSS.cmd(orvictory.exe get-dlss) to fetch NVIDIA's Streamline binaries intonvidia-sdk\Streamline\bin\x64. - AMD FSR 3 Frame Generation (2×): Run
.\Get-AMD-FSR.cmd(orvictory.exe get-fsr) for RTX 20/30 or non-DLSS cards. - Third-Party MFG Loader Hook: Supported via
F1 → MFG UNLOCKERorvictory.exe get-mfg(off by default; not made or supported by NVIDIA or this fork).
Credits & Upstream Projects
Built on trustno1-coder/VIctory-NVIDIA and Marvisak/VIctory, with Gabagool features ported from VIctory-Strix-128-Gabagool and community improvements from foxhound, fxceless/victory-fork, Belobug/VIctory-Belobug-AMD, DexNom/VIctory, maren-halv/VIctory-DXR, crossducking/RAZDA4A-XEN, and edsuuu/VI-BR-PORT.
Licensed under GPL-3.0-or-later.