Skip to content

About

VIctory Nvidia Linux — NVIDIA RTX + Linux/Proton fork with DXR 1.1 hardware raytracing and exact wave32 GI lowering

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

VIctory Nvidia Linux

A standalone Linux + NVIDIA RTX compatibility layer fork of VIctory running Xbox Series titles under Proton-GE + vkd3d-proton (developed and tested on an NVIDIA RTX 5080, Series X 1440p profile).

This repository contains no game files, code or assets. You need your own copy of the game. It is not affiliated with or endorsed by the game's developer or publisher.

Highlights

  • Hardware DXR 1.1 RT-core raytracing (--hw-rt, enabled by default): Lifts all 64 image_bvh*_intersect_ray shaders (bvh64 and bvh32 traversal loops, including Near+Far cross-query hit attributes) to native DXR 1.1 RayQuery with GPU BLAS refits and TLAS remapping. Software BVH traversal (--ray-tracing) and ambient fallback (--no-hw-rt) remain available.
  • Exact wave64 -> wave32 lowering for NVIDIA: Lowers wave64 GI/RT material shader-binning prefix sums with exact cross-half wave32 exchange, active-lane ballot guards, and divergent loop-latch handling.
  • NVIDIA & vkd3d-proton stability and residency defaults built into Rust: Core GPU residency, descriptor, upload, and async-submit defaults live in crates/victory-gpu/src/config.rs (all overridable via VICTORY_* environment variables), alongside wide indirect compute clamping, dynamic descriptor pool recovery, BakeDecorations synchronization, glass depth-plane sync, and ForceEarlyDepthStencil.

Requirements

  • Linux x86-64 with an AVX2 CPU, 32+ GB RAM recommended (the title can use 20–30+ GB RAM), and an NVIDIA RTX GPU with DXR 1.1 / Shader Model 6.6 / Mesh Shader support via Vulkan (vkd3d-proton).
  • Build tools: rustup, clang, lld, llvm (sudo dnf install rustup clang lld llvm on Fedora), and cargo-xwin.
  • Runtime: umu-run on PATH and GE-Proton11-13 or later in ~/.local/share/Steam/compatibilitytools.d/Proton-GE Latest (or set PROTONPATH). Earlier vkd3d-proton releases (< v3.1-83) use dxil-spirv's legacy structurizer, which crashes NVIDIA's SPIR-V compiler on ~6% of pipelines.
  • DXC DLLs: Place dxcompiler.dll and dxil.dll from the x64 folder of Microsoft's DirectXShaderCompiler release in ~/.local/share/victory/dxc (or set VICTORY_DXC_DIR); the launcher copies them beside victory.exe.

Recommended: patched wineserver. The title maps memory views by the hundred thousand, and stock Wine's wineserver walks a linked list on every map. GE-Proton PR #1016 replaces that list with a tree. Installing a copy of GE-Proton with that wineserver at ~/.local/share/victory/proton/GE-Proton11-14-viewtree removes the long stalls; the launcher picks it up automatically when present (--stock-wineserver forces stock Proton-GE).

Build

Cross-compile the Windows executable from Linux (scripts/build-linux.sh passes XWIN_ACCEPT_LICENSE=1 for cargo-xwin's Windows SDK download):

rustup toolchain install 1.98.1 --target x86_64-pc-windows-msvc
cargo install --locked cargo-xwin
scripts/build-linux.sh            # release build -> target/x86_64-pc-windows-msvc/release/victory.exe
scripts/build-linux.sh --diag     # diagnostics build (capture, popwatch, extra logging)

Install the local asset-policy pre-commit hook:

cargo xtask install-hooks
cargo xtask policy

Run

The first launch pre-translates the title's shaders (~70 s; a few seconds on subsequent launches) and warms previously used pipelines whenever the build or shader switches change (VICTORY_PREBUILD=0 skips this).

VICTORY_GAME_DIR=~/Games/MyDump scripts/play-linux.sh --skip-intro --new-game
./play-gta6.sh --skip-intro --mangohud                # wrapper defaulting VICTORY_GAME_DIR to ~/Downloads/GTA6
scripts/play-linux.sh shaders <the shader archives>   # translate every shader ahead of time
scripts/play-linux.sh warm --used                     # pre-compile pipelines from prior runs
scripts/play-linux.sh --help                          # all options

Launcher Options

Option Effect
--console <series-x|series-s> Console profile (--series-x / --series-s; default: series-x at 2560x1440)
--hw-rt, --no-hw-rt Hardware DXR 1.1 RT-core raytracing (default on: VICTORY_HW_RT=1, VICTORY_AMBIENT=0; --no-hw-rt disables HW RT and enables VICTORY_AMBIENT=1.2)
--ray-tracing Enable the title's software BVH builder (VICTORY_BVH_BUILDER=1; separate from --hw-rt)
--diag Run the diagnostics build (scripts/build-linux.sh --diag)
--skip-intro Press through boot screens and logos (Enter/A at 12–50 s)
--new-game Back up saves to ~/.local/share/victory/save-backups/<time> and seed ~/.local/share/victory/save-templates/new-game if present
--texture-waits Wait longer for textures in early frames and bakes (VICTORY_EARLY_TEXTURES_MS=40, VICTORY_BAKE_TEXTURES_MS=10000)
--stock-wineserver Use stock Proton-GE Latest even if a view-tree wineserver copy exists
--bench <route> Scripted benchmark run from scripts/bench/<route>.keys
--overlay [mode] Built-in D3D12 performance & bottleneck overlay (default on: full; modes: full|compact|minimal|fps|hidden|off, --no-overlay disables; in-game: Shift+F11 cycles mode, Shift+F10 cycles corner, Shift+F9 cycles scale, Ctrl+Shift+ +/-/0 steps/resets scale)
--mangohud, --no-mangohud Enable or disable MangoHud overlay and mangohud.csv (off by default; when both are on, VIctory's overlay auto-docks to top-right)
--proton-log Save Wine's own log into the run folder

Defaults & Environment Overrides

The launcher uses its own prefix (~/.local/share/victory/prefix), caches under ~/.cache/victory/, and saves/data under ~/.local/share/victory/data. It configures vkd3d-proton for NVIDIA stability (VKD3D_CONFIG=no_descriptor_heap,no_upload_hvv, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains) and a 12 GiB NVIDIA shader disk cache.

All GPU/residency/RT defaults live in Rust (crates/victory-gpu/src/config.rs, crates/victory-shader/src/emit/mod.rs, crates/victory-hle/src/modules/xmem.rs) and can be overridden via VICTORY_* environment variables, including Resizable BAR windows (VICTORY_WINDOWS_BAR_MB=512, VICTORY_CARD_WINDOWS_MB=0, VICTORY_CARD_BUFFERS_MIN_KB=64).

Playtesting & Diagnostics

Every run creates ~/.local/share/victory/runs/<date-time>/ (symlinked at latest):

File Contents
run.json Build, git revision, Proton/umu/driver/GPU/CPU/RAM info, active VICTORY_*/VKD3D_* settings, exit code
victory.log Timestamped engine log
frames.csv Per-frame timings, submitting thread work, GPU waits/idle, copies, uploads, draws/drops, pipelines, VRAM (VICTORY_FRAMES_CSV)
mangohud.csv, mangohud-summary.csv With --mangohud: MangoHud frame log and summary
system.csv 1 Hz process memory/swap, host RAM/VRAM, GPU load/clock/temp, CPU load
marks.csv, marks/ User-marked moments and screenshots
scripts/victory-mark.sh --install                   # install desktop shortcut (bind e.g. Ctrl+Alt+M)
scripts/victory-mark.sh --note 3 "bridge stutter"   # annotate mark 3
scripts/victory-report.py                           # summarize latest run
scripts/victory-report.py <run> --against <run>     # compare two runs

Shutdown safety: Always stop victory.exe cleanly via Ctrl-C or SIGTERM (pkill -TERM -f 'victory\.exe'), never SIGKILL. Force-killing the title while its VRAM mappings are live can wedge the NVIDIA driver until reboot.

Documentation

Credits

This project builds on work from the wider VIctory community:

License

GPL-3.0-or-later, as VIctory. See LICENSE; the one file not covered is documented in docs/asset-policy.md.

About

VIctory Nvidia Linux — NVIDIA RTX + Linux/Proton fork with DXR 1.1 hardware raytracing and exact wave32 GI lowering

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages