F1 settings menu, frame generation 2x-6x live, no frame rate cap, FPS line

On readmet3xt-lab/foxhound 02fc18a, which becomes this fork's base.

- host/menu.rs: the F1 settings menu, in every build (it was in the
  diagnostics build only): DLSS mode and model, frame generation, frame
  rate cap, console profile, picture size, the light estimates and the
  main speed switches. Saved to victory-settings.txt, applied by the
  launcher at the next start; "save and restart" from the menu. The title
  gets no keyboard while it is shown (gameinput.rs).
- host/font.rs: the dot letters, moved out of the diagnostics panel so
  that the menu has them in every build.
- streamline.rs: VICTORY_FRAMEGEN_X=2..6, the frames shown for each one
  rendered (no more than the state says this card generates); 0: ready
  but off. The amount and off/on change while the title runs
  (set_framegen, from the menu). Result 39, "warning: out of VRAM", is
  taken as set: asked again at every present it showed no generated
  frame at all (1,828 times in one run on a full 12 GB card).
- The frame rate at the top left of the picture while the menu is closed:
  frames rendered a second, and with frame generation those shown
  (VICTORY_FPS_LINE=0: not). The window's caption says both too.
- scripts/play-foxhound.ps1: applies what the menu saved; -FrameGenX;
  -Fps defaults to 1000 (no cap: VICTORY_FRAME_INTERVAL_US=1000); frame
  generation is made ready at every start with Streamline so that the
  menu can switch it (-NoFrameGenReady: not), with a share of the card's
  memory held back for it (VICTORY_TEXTURE_ROOM_PERCENT 80 on, 86 ready);
  NVIDIA's files are looked for in nvidia-sdk\ here; builds the layer when
  it is not built. scripts/play-nvidia.ps1 is the same launcher under
  this fork's old name.
- Get-NVIDIA-DLSS.cmd / scripts/get-nvidia-sdks.ps1: fetch the eight
  NVIDIA files that are loaded (about 70 MB) out of NVIDIA's Streamline
  release into nvidia-sdk\ (git-ignored). They are NVIDIA's, under
  NVIDIA's licences, and are not part of this repository.
- README for this fork; foxhound's own is kept as docs/README-foxhound.md.

Measured on an RTX 5070 (Series X, native 2560x1440, DLSS Quality,
opening rooms): mostly 26-30 frames a second rendered; in Streamline's
own check 2x, 4x and 6x show exactly 2, 4 and 6 frames for each one
rendered.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
trustno1-coderandClaude Fable 5.2 committed 2026-11-26 19:41:59 -08:00
1 parent 02fc18a20a
commit 22c6be2e76
14 files changed
+1321 -224

No files matched your search

+143 -149
View File
@@ -1,187 +1,181 @@
# foxhound
# VIctory on NVIDIA
A fork of [VIctory](https://github.com/Marvisak/VIctory), a compatibility layer that runs an Xbox Series title
natively on Windows from files **you** supply. foxhound is tuned for **NVIDIA RTX** GPUs: DLSS Super Resolution and
DLSS Frame Generation in place of the title's own upscaling, the Series X profile at a native 2560x1440, and fewer
stalls at scene cuts.
> **Before you play**
>
> - **You must install DLSS yourself:** run `Get-NVIDIA-DLSS.cmd` once (it is
> in this folder; a double click does it), or have your AI assistant run it
> for you. It downloads NVIDIA's DLSS and frame generation files, about 70 MB,
> from NVIDIA's own GitHub; they are not part of this repository. Without
> them the game still runs, with its own upscaling and no frame generation.
> - **F1 in the game brings up the settings menu** (arrow keys pick and
> change, Enter does it).
>
> The steps are under [How to run it](#how-to-run-it).
> **This repository contains no game files, code or assets.** You need your own legally obtained copy of the
> title. foxhound is not affiliated with or endorsed by the title's developer or publisher, nor by NVIDIA.
> See [docs/asset-policy.md](docs/asset-policy.md).
A fork of [VIctory](https://github.com/Marvisak/VIctory), a compatibility layer
that runs an Xbox Series title natively on Windows from files **you** supply,
tuned for **NVIDIA RTX** cards.
> **This repository contains no game files, code or assets.** You need your
> own legally obtained copy of the title. It is not affiliated with or endorsed
> by the title's developer or publisher, nor by NVIDIA. See
> [docs/asset-policy.md](docs/asset-policy.md).
## New on 2026-11-26: foxhound is the base
On 2026-11-26 this fork moved onto
[readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound)
(`02fc18a`, GPL-3.0-or-later). On the same PC it ran the same rooms at close to
twice the frame rate of what this fork had, at a higher resolution, so its
tree is now this one's, with its history kept, and this fork's own additions
are on top. What foxhound is and how it got there is in its own README, kept as
[docs/README-foxhound.md](docs/README-foxhound.md); its measurements are in
[docs/findings.md](docs/findings.md).
What foxhound brings:
- the Series X profile at a native 2560x1440;
- DLSS Super Resolution and DLSS Frame Generation through NVIDIA Streamline,
loaded when the game runs (nothing of NVIDIA's is needed to build);
- an estimate of indirect light and of reflections in place of the title's ray
tracing, and fewer stalls at scene cuts.
What this fork adds on top:
- **The F1 settings menu**, in every build: DLSS mode and model, frame
generation, frame rate cap, console profile, picture size, the light
estimates and the main speed switches. Changes are saved to
`victory-settings.txt` and apply at the next start; "SAVE AND RESTART NOW"
does that for you. Lines marked LIVE change at once.
- **Frame generation from 2x to 6x**, switched and changed from the menu
while playing, without a restart (`VICTORY_FRAMEGEN_X`; foxhound's is 2x, set
at the start). No more is asked than the card and driver generate.
- **No frame rate cap by default.** The title asks for 30 frames a second;
the menu's FRAME RATE CAP sets 120, 60 or the title's own 30 instead.
- **The frame rate at the top left of the picture**: the frames rendered a
second, and with frame generation the frames shown (`FPS: 28.4 FG: 170.4`).
The window's title says both too.
- **`Get-NVIDIA-DLSS.cmd`**: fetches only the eight NVIDIA files that are
loaded, about 70 MB, out of NVIDIA's 263 MB Streamline release.
- The launcher builds the layer by itself the first time.
## Where it stands
Tested on one PC: Windows 11, Ryzen 7 7800X3D, 32 GB RAM, **RTX 4070 SUPER 12 GB**, NVMe SSD; the Xbox Series
build **v1.0.2.1** of the title, Series X profile, 2560x1440 output, DLSS Quality. Frame times are the layer's
own count, in the opening scenes unless noted.
Tested on one PC: Windows 11, Ryzen 7 9800X3D, 64 GB RAM, **GeForce RTX 5070
12 GB**; the title's Xbox Series build v1.0.2.1, Series X profile, 2560x1440
output, DLSS Quality. Frame rates are the layer's own count, in the opening
rooms.
| | Frame time |
| | |
|---|---|
| Opening, gameplay | 34-37 ms (27-30 fps); our CPU work per frame sets it |
| Opening, cutscenes | median 36-38 ms, 95th percentile 49-58 ms, no second over 100 ms |
| Open water (first boat ride) | about 47 ms (21 fps); the GPU sets it there |
| With `-FrameGen` | every frame the title renders is shown twice (2x presented) |
| Memory | about 8 GB of VRAM; 32 GB of RAM is enough, 64 GB is more comfortable |
| Opening rooms | mostly 26-30 frames a second rendered (33-38 ms a frame) |
| Frame generation | 2x to 6x on top of that: in NVIDIA's own check, exactly 2, 4 and 6 frames shown for each one rendered |
| Device losses, crashes | none in the measured runs |
| Before this base (Series S, 720p to 1080p by DLSS) | 15-17 frames a second in the same rooms |
foxhound's own measurements, on an RTX 4070 SUPER, are in its README.
What is known to be wrong:
- **No ray tracing.** The title traces its indirect light, reflections and lamp shadows in its own compute
shaders. They are off (`VICTORY_BVH_BUILDER=1` turns them on: about 3 fps and a broken picture today). An
estimate stands in for indirect light and for reflections of opaque surfaces: rooms are lit, but reflections
are blurry, and in cutscenes they can still show the sky's bright colour.
- **Left out:** the heat-haze / in-scattering pass (it smears blocks of pixels, also on water) and the decal
heap's defragmentation (5.6 ms of GPU a frame). `VICTORY_LEAVE_OUT` names them.
- **Hitches:** some single frames of 70-190 ms in cutscenes while the title streams.
- **Frame rate:** the title runs at 30 fps. `-Fps 60` lets frames start every 1/60 s, but the layer itself costs
about 33 ms a frame today, so it stays near 30. 60 fps is the goal.
- **The first run of every new build stutters** while the driver compiles pipelines (see *Warming up* below).
- **No ray tracing.** The title's own is off (`VICTORY_BVH_BUILDER=1`, or the
menu's RAY TRACING, turns it on: slow and with a broken picture on this
base). An estimate stands in for indirect light and reflections.
- **Frame generation needs room in the card's memory.** The layer fills the
card with textures up to its budget; with frame generation on from the start
the launcher holds a fifth of the budget back (a little less while it is only
ready), so a few more textures can come late. Switched on from the menu on a
full 12 GB card it can still say that memory is past the budget; it then
runs, perhaps unevenly.
- **Frames are only generated while the game's window has the focus**, and
about a second passes after a change before they come.
- **The first run of every new build stutters** while the driver compiles
pipelines (foxhound's README, *Warming up*, says how to make them ahead).
- "SAVE AND RESTART NOW" can leave the old game's process behind without a
window; it goes when the PC restarts.
- What foxhound lists as wrong (the heat-haze pass left out, hitches in
cutscenes) applies here too.
## What you need
## How to run it
- Windows 10 or 11 (x64), a CPU with AVX2, 32 GB of RAM or more, an SSD.
- An NVIDIA GeForce RTX GPU with a recent driver for DLSS (RTX 40 or later for Frame Generation, with
hardware-accelerated GPU scheduling on). Any Direct3D 12 GPU with shader model 6.6 and mesh shaders runs the
layer without DLSS.
- **Your own dump** of the title's Xbox Series build v1.0.2.1 (the folder with `game_scarlett_master.exe`).
Other builds may start, but the image patches (1440p output, FidelityFX path, frame rate) check every byte
they change and leave a differing build alone.
- [Rust](https://rustup.rs) (the toolchain is pinned in `rust-toolchain.toml`; rustup fetches it), and the
**Visual Studio Build Tools** with "Desktop development with C++" (MSVC and a Windows SDK).
- For DLSS: NVIDIA's **Streamline SDK** (below). You download it yourself; nothing of NVIDIA's is in this
repository.
## Build
You need Windows 10 or 11 (x64), a CPU with AVX2, 32 GB of RAM or more, an
SSD, an NVIDIA GeForce RTX card with a recent driver (RTX 40 or later for frame
generation, with hardware-accelerated GPU scheduling on; more than 2x needs an
RTX 50), [Rust](https://rustup.rs) (the toolchain is pinned), the Visual Studio
Build Tools with "Desktop development with C++", and **your own dump** of the
title's Xbox Series build v1.0.2.1 (the folder with
`game_scarlett_master.exe`).
```powershell
git clone https://github.com/readmet3xt-lab/foxhound
cd foxhound
cargo build --release --locked -p victory
git clone https://github.com/trustno1-coder/VIctory-NVIDIA
cd VIctory-NVIDIA
copy victory.example.toml victory.toml # then set game_dir to your dump's folder, outside this one
.\Get-NVIDIA-DLSS.cmd # once: NVIDIA's DLSS and frame generation files, about 70 MB
scripts\play-nvidia.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe'
```
The diagnostics build (frame timelines, captures, GPU timing) is optional:
`cargo build --locked --profile diag -p victory --features diagnostics`.
The first start builds the layer (a few minutes). `Get-NVIDIA-DLSS.cmd` gets
NVIDIA's files from
[NVIDIA-RTX/Streamline](https://github.com/NVIDIA-RTX/Streamline) into
`nvidia-sdk\` (git-ignored). They are NVIDIA's, under NVIDIA's licences, which
are saved beside them; this repository does not carry them and may not. Nothing
is downloaded unless you run that file; `VICTORY_STREAMLINE_DIR` names another
folder if you have the Streamline SDK already.
## Set up
1. **Point it at your copy.** Copy `victory.example.toml` to `victory.toml` (git-ignored) and set `game_dir` to
your dump's folder. Keep your files **outside** this repository; the tools refuse otherwise.
```toml
[paths]
game_dir = 'D:\Games\MyDump'
```
2. **DLSS (optional, recommended on RTX).** Download the Streamline SDK release from
<https://github.com/NVIDIA-RTX/Streamline/releases> (tested: `streamline-sdk-v2.14.16.zip`; it comes under
NVIDIA's RTX SDK license, which you accept yourself), unpack it **outside** the repository, and point foxhound
at its `bin\x64` folder:
```powershell
[Environment]::SetEnvironmentVariable('VICTORY_STREAMLINE_DIR', 'D:\sdk\streamline-sdk-v2.14.16\bin\x64', 'User')
```
Check it without the title: `target\release\victory.exe upscaler-check --device` (and `--present` for Frame
Generation). Details: [docs/dlss.md](docs/dlss.md). Without Streamline the launcher runs without DLSS.
3. **Translate the shaders ahead** (a few minutes, once per new build of foxhound):
```powershell
$env:VICTORY_HOST_WAVE = '32' # NVIDIA runs 32-lane waves; leave it out on AMD
target\release\victory.exe shaders
```
## Run
```powershell
.\scripts\play-foxhound.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe'
```
`scripts\play-nvidia.ps1` is `scripts\play-foxhound.ps1` under the name this
fork has always had; its options:
| Option | What |
|---|---|
| *(none)* | Series X profile, 2560x1440, DLSS Quality (if Streamline is set up), all fixes on |
| *(none)* | Series X profile, 2560x1440, DLSS Quality, no frame rate cap, frame generation ready but off |
| `-FrameGen`, `-FrameGenX 4` | frame generation on from the start, 2 to 6 frames shown for each one rendered |
| `-Dlss off` / `dlaa` / `balanced` / `performance` | the title's own upscaling, or another DLSS mode |
| `-FrameGen` | DLSS Frame Generation (about +1.4 GB of VRAM) |
| `-Fps 60` | a frame rate cap (30 is the title's own) |
| `-SeriesS` | the Series S profile: 1280x720 inside, faster, softer |
| `-Res 1080to1440` / `4k` | scene at 1080p upscaled by the title / the stock 3840x2160 output |
| `-Build diag` | the diagnostics build |
| `-NoFrameGenReady` | frame generation only with `-FrameGen` (it is otherwise made ready at every start, so the menu can switch it) |
| `-Build diag` | the diagnostics build (slower; captures, timelines, the F3 numbers panel) |
| `-More @{VICTORY_X='1'}` | add or override any switch |
Full screen: start the game, then run `.\scripts\fullscreen.ps1` in another window (borderless, the size of the
monitor the game is on).
Logs go to `%LOCALAPPDATA%\victory\logs`, saves to `%LOCALAPPDATA%\victory\data`. Close the game window to quit.
### Warming up (once per build or driver)
The first run of a build compiles pipelines while playing and stutters. Runs write down every pipeline the title
makes (`VICTORY_PIPELINE_BOOK=1`, set by the launcher); afterwards make them all ahead:
```powershell
$env:VICTORY_HOST_WAVE = '32'
target\release\victory.exe warm
```
The NVIDIA driver keeps its compiled pipelines **per program path**: a build run from another folder starts cold.
## Switches worth knowing
Every `VICTORY_...` switch is described in a comment where the code reads it. The launcher's full set is in
`scripts/play-foxhound.ps1`; these are the ones foxhound added or changed:
| Switch | Launcher | What |
|---|---|---|
| `VICTORY_DLSS`, `VICTORY_DLSS_MODE` | `quality` | DLSS Super Resolution through the title's FidelityFX dispatch |
| `VICTORY_FRAMEGEN` | off (`-FrameGen`) | DLSS Frame Generation, with the picture before the HUD tagged |
| `VICTORY_NATIVE_1440P` | on | Series X renders and outputs 2560x1440 (image patched) |
| `VICTORY_SOFT_VIEWS` | `copies` | the title's tiled-heap page mappings kept without Windows views: no freezes at scene cuts |
| `VICTORY_WC_NO_BACK`, `_MIN_KB` | `1`, `1024` | shader writes into big write-combined copies are not copied back |
| `VICTORY_AMBIENT`, `VICTORY_AMBIENT_SPECULAR` | `0.8`, `1` | estimates of indirect light and of reflections (no ray tracing) |
| `VICTORY_EARLY_DEPTH` | on | pixel programs keep the console's early depth test |
| `VICTORY_PRELUDE_UPLOADS`, `VICTORY_SHOW_NEW_LATER`, `VICTORY_TABLED_REREAD` | on | texture upload order and slot changes (flicker, device losses) |
| `VICTORY_SYNC_IN_PLACE`, `VICTORY_SPANS_QUICK`, `VICTORY_HEAP_SYNC_AT_SUBMIT` | on | cheaper descriptor-heap bookkeeping |
| `VICTORY_PORT_CONSTANTS` | off | the title's constants heap read in place: less CPU, but on a 12 GB card the GPU then waits (slower overall) |
| `VICTORY_FRAME_INTERVAL_MS` | off | experimental: the title's own 30 fps setting patched to a higher rate |
| `VICTORY_BVH_BUILDER` | off | the title's ray tracing (slow, broken) |
What the F1 menu saved (`victory-settings.txt`) goes over these at every start;
delete that file to go back to them. Full screen: start the game, then run
`.\scripts\fullscreen.ps1` in another window. Logs go to
`%LOCALAPPDATA%\victory\logs`, saves to `%LOCALAPPDATA%\victory\data`.
## How it works, and the findings
- [docs/README-foxhound.md](docs/README-foxhound.md): foxhound's own README
(set-up by hand, warming up, its switches).
- [docs/architecture.md](docs/architecture.md): the layer's parts.
- [docs/findings.md](docs/findings.md): measurements behind the choices.
- [docs/dlss.md](docs/dlss.md): DLSS and Frame Generation.
- [docs/fork-ray-tracing.md](docs/fork-ray-tracing.md): the title's ray tracing and the light estimate.
- [docs/replay.md](docs/replay.md): recording a frame and replaying it.
- [docs/asset-policy.md](docs/asset-policy.md): what may and may not be in this repository.
## Contributing
Issues and pull requests are welcome. Never attach or commit anything from the game: files, dumps, shader dumps
or extracted data. Describe faults technically. `cargo xtask policy` (also the pre-commit hook in `.githooks/`)
checks the asset policy.
- [docs/fork-ray-tracing.md](docs/fork-ray-tracing.md): the title's ray tracing
and the light estimate.
- [docs/asset-policy.md](docs/asset-policy.md): what may and may not be in this
repository.
## Credits
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.
A tree of other people's work with a little on top; the history is kept.
- **[VIctory](https://github.com/Marvisak/VIctory)** by Marvisak and its contributors: the loader, the runtime
services, the Direct3D 12 back end and the shader recompiler.
- **[fxceless/victory-fork](https://github.com/fxceless/victory-fork)** and the people whose pull requests it carries.
- **[avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX)**: the submission line, write
guards, relay and much of the speed work this fork starts from.
- **[codec-d/cool_fox](https://github.com/codec-d/cool_fox)**: the base this fork was taken from.
- **[DexNom/VIctory](https://github.com/DexNom/VIctory)**: native 1440p output, the FidelityFX path on Series X,
ray tracing fixes.
- **[Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD)**: the light estimate, renderer
ports (constants heap in place, heap records), texture upload order, the frame rate switch; ported commits name
their source.
- **[FQY55kai/ZJOU-VICTORY](https://github.com/FQY55kai/ZJOU-VICTORY)**, **[myokex/victory-amd](https://github.com/myokex/victory-amd)**
(with Spexivus, joroyt and tightfall), Joshua Odom, **Geckomacabre** and **cxy0072019-sketch**.
- **[XCL](https://github.com/ivall/xcl)** (GPL-2.0-only) was read for how the same title behaves under another
layer; no code of it is here.
- NVIDIA Streamline, DLSS and Reflex are NVIDIA's; they are loaded at run time from a folder you supply.
- Much of this fork's code was written with [Claude Code](https://claude.com/claude-code).
- **[foxhound](https://github.com/readmet3xt-lab/foxhound)** by
readmet3xt-lab: the base of this fork since 2026-11-26, and through it:
- **[VIctory](https://github.com/Marvisak/VIctory)** by Marvisak and its
contributors: the loader, the runtime services, the Direct3D 12 back end and
the shader recompiler.
- **[fxceless/victory-fork](https://github.com/fxceless/victory-fork)**,
**[avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX)**,
**[codec-d/cool_fox](https://github.com/codec-d/cool_fox)**,
**[DexNom/VIctory](https://github.com/DexNom/VIctory)**,
**[Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD)**
and the others foxhound's README names.
- Everyone who sent pull requests to this fork before the move; that work is
in the history, on the branch that was `main` until then.
- NVIDIA Streamline, DLSS and Reflex are NVIDIA's; they are loaded at run time
from a folder you supply.
- Much of this fork's code was written with
[Claude Code](https://claude.com/claude-code).
## License
GPL-3.0-or-later, as VIctory. See [LICENSE](LICENSE); the one file that is not covered is named in
[docs/asset-policy.md](docs/asset-policy.md).
GPL-3.0-or-later, as VIctory and foxhound. See [LICENSE](LICENSE); the one file
that is not covered is named in [docs/asset-policy.md](docs/asset-policy.md).