Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Victory NVIDIA Megafork

Victory NVIDIA Megafork is an experimental Windows compatibility layer for user-supplied Xbox Series X|S titles. It starts from trustno1-coder's NVIDIA tuning and adds the shared pipeline recovery fix and the Windows 10 Direct3D 12 runtime setup. The retained performance measurements come from the upstream NVIDIA branch.

Agent setup guide · Build and first launch · Windows 10 setup · NVIDIA testing guide · Credits · AMD megafork

Built from many projects

The NVIDIA base carries changes from several VIctory branches. Its maintainers tested combinations of renderer and launch settings on an RTX 5070. This megafork keeps the sources and upstream measurements below for comparison.

Code that is in this repository:

Projects we ran, tested or studied along the way, whose lessons shaped the settings and fixes here (none of their code is in this repository unless listed above):

  • ProjectLeonida/Leonida (no longer public): the first attempt, where the retail executable's boot was worked through.
  • Our own builds of Marvisak/VIctory and fxceless/victory-fork, where the ray-walk skip, the half render scale and most of the measurements in the table below came from.
  • Belobug/VIctory-Belobug-AMD builds with its fixes combined.
  • zm0kiemedia/Neptune_VI (formerly vicecitybaby).
  • xcl-dev/xcl, another layer for the same title, read for how the title behaves there.

Full credits, with what each person contributed, are at the end of this README.

What this fork changes, and how it gets its frame rate

Everything below is what scripts\play-nvidia.ps1 turns on. Measured on an RTX 5070 12 GB with a Ryzen 7 9800X3D, in the prologue:

SetupfpsGPU time a frame
The 7900 XTX fork's own settings, Series Xhigh, but thousands of draws a frame skipped (the picture jumps)-
With the descriptor fix, Series X, full scale6.0110 ms
The same, half render scale7.282-88 ms
Series S, half scale, own upscaler, ray walks skipped11.033 ms
Plus memory compares on the card21.8about 6 ms

Settings that lower the picture a bit

  1. Series S profile (--console series-s). The title believes it runs on the smaller console and picks that console's settings. The biggest change is resolution: the game image is 1920x1080 instead of the Series X's 4K-class target. Menus, the HUD and subtitles are still drawn at 4K on a separate plane, so they stay sharp.
  2. Half render scale (VICTORY_RENDER_SCALE=0.5). A patch to the title's 1.0.2.1 executable pins its internal render scale: the 3D world is drawn at half width and half height (960x540 on Series S), a quarter of the pixels, then stretched back to 1080p. This is why the world is softer than the menus. Other resolutions: see Picking a resolution.
  3. The title's own upscaler (VICTORY_OWN_UPSCALER=1). On Series S the title upscales with AMD FidelityFX (FSR), whose compute programs cannot be translated here, so that step drew nothing. A patch makes the title use its own temporal upscaler on every profile. It is not a quality setting in itself, but Series S needs it for a scale below 1.
  4. Ray walks end at the root (VICTORY_BVH_MISS=1). The part of the title that builds its ray-tracing structures is off, so their nodes are stale. Instead of walking stale nodes, every box and triangle test is a miss. That avoids a hang and saves about 10 ms a frame, but light bounced off nearby surfaces is lost, so some dim rooms look darker.

Settings that make it faster without changing the picture

  1. Memory compares on the card (VICTORY_CARD_BUFFERS_MIN_MB=1, VICTORY_CARD_BUFFERS_MB=1536). Once the settings above had cut the GPU's work, the CPU was the limit: every frame it compared about 190 MB of title memory to find what the title had changed. These move the compares of copies of 1 MiB or more to the graphics card. Copying back fell from about 27 to 10 ms a frame, and the frame rate doubled (11 to 21.8 fps).
  2. Wait for new shaders (VICTORY_PIPELINE_WAIT_MS=10000). Draws wait for a pipeline still being made instead of being skipped: nothing is missing, with a short hitch the first time a place is seen.
  3. NVIDIA Smooth Motion (by default in play-nvidia.ps1). The script starts a copy of the build named victory_sm.exe; with Smooth Motion turned on for that exe in the NVIDIA App, the driver inserts a generated frame between real ones, so motion looks about twice as smooth. The title still runs at the real rate underneath, so controls respond at about 20 fps.

Code changes (what makes it work on NVIDIA at all)

  1. No more skipped draws on NVIDIA (VICTORY_DYNAMIC_SLOTS=524288, crates/victory-gpu/src/descriptor/host.rs). NVIDIA caps the shader-visible view heap at 1,000,000 views, below the 1,245,184 the title asks for. The pool of dynamic descriptor slots (2^18) then ran out, and 1,100-4,800 descriptor tables a frame were refused, each one a dropped draw: the screen rarely updated and the character jumped from place to place. The pool can now take up to half the heap: 0-33 refused a frame.

  2. Series S interface plane (VICTORY_COMPOSE=1, crates/victory-gpu/src/compose.rs, host.rs, queue.rs). A Series S title presents two planes: the game (1080p) and the interface (4K). Only the first was shown, so menus, loading screens and subtitles were black until gameplay. One compute pass now lays the interface over the game before it is shown. Ported from fxceless/victory-gta6 pull request 1189 (Tissma95), without its FSR stand-in (the own upscaler is used instead).

  3. Title patches (crates/victory-loader/src/hooks.rs, lib.rs, windows.rs): render scale, own upscaler, and VICTORY_NO_WATCHDOG (keeps the title's watchdog from ending a slow frame), taken from the victory-perf patches.

  4. Ray walks end at the root (crates/victory-shader/src/emit/intersect.rs, crates/victory-gpu/src/shader_cache.rs): the VICTORY_BVH_MISS switch, made part of the shader cache key so translated shaders with and without it are kept apart.

  5. scripts/play-nvidia.ps1: the launcher with all of this list.

  6. Faces move (crates/victory-shader/src/emit/halves.rs, lower.rs, crates/victory-gpu/src/descriptor/host.rs, draw.rs). Faces are driven by a network of compute programs whose numbers travel as 16-bit values through integer views; they were read as floats and came back as zeros on NVIDIA, so no face moved. They now move as integers. Ported from fxceless/victory-fork pull request 927 (tippythetaidum).

  7. Ray tracing mostly off (scripts/rt_off_hashes.txt, used by play-nvidia.ps1 through VICTORY_SKIP_PIPELINES; -RayTracing keeps the passes). The title's ray-tracing structure builder cannot run on NVIDIA (its 64-lane programs are refused; Marvisak/VIctory pull request 2311), so every ray misses. The passes that turn those misses into light made rooms go white and hazy depending on the view angle. The 1,000 CS_RaytracingResolve and 34 traced-shadow shaders are skipped. The screen-probe and visibility traces keep running: skipping them too (all 1,052 shaders of fxceless pull request 465's rule) left their outputs as garbage, rainbow glitter everywhere. Needs the diag build (the skip list is a diagnostics switch).

  8. The intro video no longer flickers (crates/victory-gpu/src/texture.rs). The movie's planes (linear, one-level R8 textures in a ring of three) were written by the decoder through another view of the same memory, judged clean when the frame was recorded, and copied a list late: frames from the ring showed out of order. Video planes now always record their copy.

Settings

The upstream speed preset measured about 18–22 FPS on the RTX 5070. The current launchers default to VICTORY_THIN=0 following NVIDIA whiteout reports. To compare with deferred command-list recording enabled, pass -More @{VICTORY_THIN='1'}. -Quality also changes relay and texture waits to reduce the first two defects below.

FaultCauseFix
Stretched bodies that jumpThe relay's second stage and card steps hand skinned meshes back before they are done (avatarmanz issue 13; fxceless issue 89 on an RTX 5070)-Quality: VICTORY_RELAY=1, VICTORY_CARD_STEPS=0
Rainbow, pixelated skinA texture refresh that does not wait for the runtime's remapping fills its upload from pages not there yet-Quality: VICTORY_TEXTURE_NO_WAIT=0
Some views far too brightWithout rays the light probes keep the sky's light indoors, and the fog takes it tooAlways: VICTORY_AMBIENT_AIR=1.5 (fog at most 1.5 times the light around), VICTORY_AMBIENT_MOST=2 (new, ambient.rs; was a fixed 4)
The picture stops until you look awayA pipeline that takes longer than the wait was waited for again in every frame it was in viewAlways: each pipeline is waited for once at most (VICTORY_PIPELINE_WAIT_ONCE, on; pipeline/make.rs; the problem of fxceless issue 1181)
Black blobs on faces and in the airA NaN that a shader writes is spread by blur and the temporal upscalerAlways: VICTORY_NAN_SCRUB=1 (new, emit/lower.rs): colours and image stores with NaN become 0; NaN in the fog volume is cleared too

Known faults left: the common room by its sunlit windows still goes beige and hazy (sky light in the fog); smearing when the camera moves fast at half scale (the title's own temporal upscaler); two orange glows on some corridor walls. Render scale 1.0 on Series S has not been tested.

Also in, off by default:

  • VICTORY_CONSTANT_MARKS=1, a port of fxceless pull request 1216 (GamingRipperDoc): a slot picked from the heap is read as a constant buffer only if it holds one (else a texture's descriptor was read as one, in the meshlet culling passes).
  • VICTORY_TARGET_VARIANTS=1, a port of fxceless a35c557393: a pipeline is made again for the render target formats bound at the draw.
  • F9 frame capture (capture.rs): with VICTORY_CAPTURE=<folder> and VICTORY_DUMP_TARGETS=1, F9 saves the next frame's picture, its commands and every 2D target.
  • VICTORY_ADAPTER=<part of a card's name, or #index> (host.rs): the card to run on when there is more than one (play-nvidia.ps1 -Adapter).

A fork of avatarmanz/VIctory-7900XTX, itself a fork of VIctory, a compatibility layer that runs an Xbox Series title natively on Windows from files the user supplies. That fork is tuned for an AMD RX 7900 XTX. This one makes it draw everything on NVIDIA cards and run fastest there, using the Series S 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.

Where it stands (2026-11-25)

Tested on one machine only: Windows 11, AMD Ryzen 7 9800X3D, 64 GB RAM, GeForce RTX 5070 12 GB, the Series S profile at half render scale (scripts\play-nvidia.ps1).

Prologue, indoorsabout 20-22 fps on average, 24-31 fps in lighter places
Device lossesnone in the measured runs
Menus, loading screens, subtitlesshown (they were black on Series S before)
First time a place is seenslow for a moment while its shaders are made

On the same card the fork's own settings skipped thousands of draws a frame (the picture jumped and rarely updated), and the Series X profile at full scale ran at about 6 fps.

What is known to be wrong:

  • The picture is softer than Series X: half render scale, upscaled by the title's own upscaler.
  • Rooms with little direct light can be dark: ray walks end at the root while the title's structure builder is off (VICTORY_BVH_MISS).
  • Everything listed in the 7900 XTX fork's README still applies (flicker of far plants outdoors, textures appearing late while the title streams, a stutter on the first run with a new driver or build).

Requirements

  • Windows 11 x64 or Windows 10 22H2 x64 (build 19045) for the Windows 10 setup below. Run winver to check the version.
  • An x64 CPU with AVX2 and a Direct3D 12 GPU with Shader Model 6.6 and mesh shader support. Use a current driver that supports your GPU and Windows version.
  • Rust via rustup, the MSVC C++ build tools, and a Windows SDK. Cargo selects the Rust version pinned by the repository.
  • Your own title files in a folder outside the clone. Keep local configuration, game files, generated shader caches, and saves out of Git.

How to run it

Set your paths in the local victory.toml before launching.

git clone https://github.com/rorodev6/victory-nvidia-megafork.git
Set-Location victory-nvidia-megafork
Copy-Item .\victory.example.toml .\victory.toml

On Windows 10, follow the SDK setup first. From the root of the clone:

cargo build --locked --profile diag -p victory --features diagnostics
.\scripts\play-nvidia.ps1 -Exe 'D:\Games\Example\game.exe' -Quality -Resolution 720 -NoSmoothMotion
Preset or switchWhat it changes
-QualityKeeps texture synchronization and uses conservative relay settings. Start here if faces or geometry look wrong.
DefaultSeries S at 540p internal resolution, upscaled to 1080p. Faster submission settings can introduce visual glitches.
-SeriesXRaises the output to 4K and defaults to 1080p internal rendering. The upstream tests reported lower frame rates.
-NoSmoothMotionLaunches victory.exe directly. Use it to measure rendered FPS or to isolate driver frame generation.
-AdapterSelects a GPU by name or index. Check the adapter reported in the runtime log.

By default the launcher copies the build to victory_sm.exe beside the original. NVIDIA Smooth Motion uses a profile for this executable on supported GPU, driver, and OS combinations. It generates display frames between rendered frames. Record those separately from rendered FPS. Both executables use the same adjacent D3D12 folder.

Windows 10 setup

Windows 10's built-in Direct3D 12 runtime can stop at Shader Model 6.5. Victory needs Shader Model 6.6 to use direct descriptor heap indexing. The Windows 10 build uses Microsoft's app-local D3D12 Agility SDK.

From the repository root, install the SDK before building the executable:

cargo xtask agility
cargo build --locked --profile diag -p victory --features diagnostics
.\target\diag\victory.exe config

cargo xtask agility downloads Microsoft.Direct3D.D3D12 1.620.2 from NuGet, checks its SHA-512, and extracts the x64 DLLs into target\diag\D3D12\ and the corresponding debug and release folders. It requires an internet connection on the first run. The DLLs stay in the build directory. No administrator access is needed.

Check that victory.exe config reports app-local SDK 620 and shows the path to D3D12Core.dll. If you move the executable, move its D3D12 folder with it. An existing executable needs a rebuild after installing the SDK. On Windows 11 the SDK step is optional. If the DLL disappears from a build directory, rebuild before starting the executable from that directory again.

The Agility SDK build path has been checked on Windows 11. In-game validation on Windows 10 is pending. The Agility SDK still requires GPU and driver support for the features above.

The implementation comes from rorodev6/victory, based on domints' Agility SDK change.

Tuning the NVIDIA build

Picking a resolution

There is one script per console and resolution in scripts\. Each one runs play-nvidia.ps1 with -Resolution set, and takes the same -Exe path and other switches:

scripts\play-S-720p.ps1 -Exe <path of your copy's executable>
scripts\play-X-1080p.ps1 -Exe <path of your copy's executable> -Quality

The resolution is the height the 3D world is drawn at. The title's own upscaler then stretches it to the console's output, and menus, the HUD and subtitles stay sharp either way. Series S outputs 1920x1080 and Series X 3840x2160, so the same height is a different render scale on each:

ScriptConsoleWorld drawn atRender scaleTested on the RTX 5070
play-S-1080p.ps1Series S1920x10801.0crashes at start (the title stops at a breakpoint; also reported on an RTX 2080)
play-S-720p.ps1Series S1280x7200.667not yet
play-S-540p.ps1Series S960x5400.5yes: the default, about 18-22 fps
play-S-480p.ps1Series S853x4800.444not yet
play-X-2160p.ps1Series X3840x21601.0yes, about 6 fps
play-X-1440p.ps1Series X2560x14400.667not yet
play-X-1080p.ps1Series X1920x10800.5yes: the -SeriesX default, about 7 fps
play-X-720p.ps1Series X1280x7200.333not yet
play-X-540p.ps1Series X960x5400.25not yet
play-X-480p.ps1Series X853x4800.222not yet

What to expect:

  • Lower is faster, up to a point. On this machine the frame time is mostly the CPU preparing the GPU's work (about 33 ms a frame on Series S), not the GPU drawing pixels. Going below 540p saves GPU time, but the frame rate stops rising once the CPU is the limit.
  • Series S is much faster than Series X at the same resolution. The console profile changes far more than resolution: the title picks the smaller console's level of detail, effects and memory budgets. play-S-540p and play-X-540p draw the same number of pixels, but the Series X one does more work for each frame.
  • Lower is softer and smears more. The title's temporal upscaler rebuilds detail from earlier frames. At low resolutions and low frame rates, fast camera moves (driving, turning quickly) leave visible trails.
  • Series S at 1080p (render scale 1.0) does not work yet. The title stops at a breakpoint as soon as it starts, on a 12 GB card too, so it is not video memory. Use 720p or lower on Series S.
  • Series S cannot go above 1080p: its output is 1080p, and the script says so and stops if asked for more.
  • 16 GB PCs: turned on for you, best with resizable BAR enabled. On the tested 16 GB PC with an RTX 3060, shared GPU memory approached its limit about a minute into the world (0x8007000E, then a driver fault). The 3072 MiB cap from PR #6 let eligible title memory windows use CPU-mapped VRAM while the card had room. The launcher sets it by itself on PCs with under 24 GB of RAM (Windows lets the card share half the RAM) and leaves it off on larger ones. Pass a cap in MiB to play-nvidia.ps1 or any resolution wrapper to choose for yourself: -WindowsBarMB 0 disables it, and -More @{VICTORY_WINDOWS_BAR_MB='...'} takes precedence.

More than one card, and other cards

On a PC with two cards, -Adapter picks one by part of its name or its index (-Adapter 5060, -Adapter '#1'); it sets VICTORY_ADAPTER, and the log says which card the game is on. Without it the game uses Windows' default card, the one the main display is on.

Measured on the same PC (Ryzen 7 9800X3D), same build and settings (play-S-540p, the default), one run each in the prison prologue:

CardSlot it sits infpsPreparing a frame (CPU)On the GPU
RTX 5070 12 GBPCIe 5.0 x16, drives the display19.334 ms4.6 ms
RTX 5060 Ti 16 GBPCIe 4.0 x4, no display attached14.950 ms5.4 ms

The GPU work itself is close; the gap is in preparing frames, mostly copies of title memory to and from the card. This layer moves tens of MB a frame, so the link to the card matters: the 5060 Ti here has about an eighth of the 5070's bandwidth, and its finished frames are also copied to the 5070 to be shown. In a full-speed slot with the display on it, a 5060 Ti should land closer to the 5070. Neither run lost the device; both refused the same 7 programs.

-Resolution works on play-nvidia.ps1 itself too (-Resolution 720 -SeriesX), and -More @{VICTORY_RENDER_SCALE='0.6'} still sets any scale from 0.2 to 1.0.

Before the first run, ahead of time (both can be stopped and go on later):

target\diag\victory.exe shaders <the shader archives>   # every shader translated, minutes
target\diag\victory.exe warm --used                     # pipelines earlier runs drew with, for a new driver or build

Commands, debugging switches and upstream's own description: docs/README-fxceless.md. Every VICTORY_... switch is described in a comment where it is read.

Troubleshooting and benchmark reports

SymptomWhat to check
Shader Model 6.5 or D3D12_ERROR_INVALID_REDISTRun the SDK setup and check victory.exe config. Keep the D3D12 folder next to both executables and verify Shader Model 6.6 support in your driver.
White 3D scene with visible HUD or minimapBoth launchers default to VICTORY_THIN=0 following NVIDIA whiteout reports. Use the diagnostics build and play-nvidia.ps1. If the problem persists, include the GPU, driver, exact launch command and where the view turns white.
Black loading screens or missing facesStart with -Quality -Resolution 720 -NoSmoothMotion on Series S. Record where the issue begins and whether it repeats with a warm cache.
Brief stalls on entering a new scenePipeline creation can delay a draw on first use. Compare a second run with the same settings, driver, and cache.
Falling FPS, high VRAM, or 0x8007000ECheck the adapter, dedicated and shared GPU memory, and the RAM guidance above. Compare the same scene at a lower internal resolution.

Use .\target\diag\victory.exe config to see the resolved file paths. Cache and saves use separate directories (by default %LOCALAPPDATA%\victory\cache and %LOCALAPPDATA%\victory\data). Set VICTORY_CACHE_DIR and VICTORY_DATA_DIR to paths outside the clone to give each build its own cache and saves.

For a reproducible report, include the Windows build, CPU, GPU, driver, RAM, commit, profile, internal and output resolution, and cache state. Capture the same close-up and city route in each build. Count rendering defects, peak VRAM, median and p95 frame times, and any device loss. Measure with -NoSmoothMotion first. See the NVIDIA testing guide.

What is different here

This fork's own changes are listed at the top of this README. Everything the 7900 XTX fork added is kept: translation of list calls on threads of ours, submissions prepared and joined on a thread of ours, the write relay, fills done on the card, textures on their own copy queue, texture read-back (boats float), and frame record and replay. Its docs/findings.md has the reasons and the measurements.

Credits

This is a tree of other people's work with more on top. The history is kept, and commits taken from elsewhere name the commit and its author.

  • trustno1-coder/VIctory-NVIDIA: the NVIDIA base, launch scripts, and RTX 5070 benchmarks.
  • avatarmanz/VIctory-7900XTX: the fork this one started from, and everything in it.
  • VIctory by Marvisak and its contributors: the loader, the runtime services, the Direct3D 12 back end and the shader recompiler.
  • fxceless/victory-fork: the fork the 7900 XTX one started from, the people whose pull requests it carries, pull request 1189 (Tissma95) for the Series S interface plane, 927 (tippythetaidum) for the face network and 1216 (GamingRipperDoc) for the marked constant buffer slots.
  • DexNom/VIctory: ray tracing fixes, cube gradients, sparse textures.
  • Belobug/VIctory-Belobug-AMD: the ambient light idea, pipeline workers, and work by romainhedouin.
  • FQY55kai/ZJOU-VICTORY.
  • myokex/victory-amd: the guard over every view of a page (with Spexivus, joroyt and tightfall), and Joshua Odom's reads into title memory.
  • Geckomacabre and cxy0072019-sketch: the texture read-back.
  • XCL (GPL-2.0-only) was read for how the same title behaves under another layer; no code of it is here.
  • Filip722: pipeline job recovery adapted from fxceless.
  • domints and rorodev6: the upstream Agility SDK change and the public Victory port used here.
  • This fork's changes were made with Claude Code.

License

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

关于 About

NVIDIA experimental development line for Victory Megafork

语言 Languages

Rust99.8%
PowerShell0.2%
Shell0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
660
Total Commits
峰值: 660次/周
Less
More

核心贡献者 Contributors