docs/scripts: remove legacy scripts, add portable play-6gb launcher, and update README
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
This commit is contained in:
1 parent
5fff0f1fb7
commit
de86068a05
7 files changed
+363
-595
No files matched your search
@@ -1,45 +0,0 @@
|
||||
@echo off
|
||||
rem One-click GTA VI on VIctory-NVIDIA (DLSS + frame generation). ASCII only.
|
||||
rem PLAY_FRAMEGEN.cmd menu
|
||||
rem PLAY_FRAMEGEN.cmd 1..6 start that mode directly
|
||||
rem PLAY_FRAMEGEN.cmd check only show paths and what is ready
|
||||
setlocal
|
||||
set "PS1=%~dp0scripts\play-gta6-framegen.ps1"
|
||||
set "PSH=powershell"
|
||||
where pwsh >nul 2>nul && set "PSH=pwsh"
|
||||
if not exist "%PS1%" (
|
||||
echo Not found: %PS1%
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
if /i "%~1"=="check" (
|
||||
%PSH% -NoProfile -ExecutionPolicy Bypass -File "%PS1%" -Check
|
||||
pause
|
||||
exit /b 0
|
||||
)
|
||||
set "PICK=%~1"
|
||||
if not "%PICK%"=="" goto :run
|
||||
|
||||
echo ================================================
|
||||
echo GTA VI - VIctory-NVIDIA, DLSS + frame generation
|
||||
echo (RTX 50: frame generation 4x automatically)
|
||||
echo ================================================
|
||||
echo 1. Series X 1440p + DLSS Quality + frame gen (recommended)
|
||||
echo 2. Series X 1440p + DLSS Quality, no frame gen
|
||||
echo 3. Series S + DLSS Quality + frame gen (faster, softer)
|
||||
echo 4. Series X 1440p + DLSS Performance + frame gen
|
||||
echo 5. EXTREME Series S: DLSS Performance + frame gen + big pools + High priority
|
||||
echo 6. EXTREME Series X: 1440p DLSS Performance + frame gen + big pools + High priority
|
||||
echo Q. Quit
|
||||
echo.
|
||||
choice /c 123456Q /n /m "Choose 1-6 or Q: "
|
||||
if errorlevel 7 goto :end
|
||||
if errorlevel 6 (set "PICK=6") else if errorlevel 5 (set "PICK=5") else if errorlevel 4 (set "PICK=4") else if errorlevel 3 (set "PICK=3") else if errorlevel 2 (set "PICK=2") else (set "PICK=1")
|
||||
|
||||
:run
|
||||
echo.
|
||||
%PSH% -NoProfile -ExecutionPolicy Bypass -File "%PS1%" -Mode %PICK%
|
||||
|
||||
:end
|
||||
echo.
|
||||
pause
|
||||
@@ -1,40 +0,0 @@
|
||||
@echo off
|
||||
setlocal EnableExtensions DisableDelayedExpansion
|
||||
if not "%~1"=="" if /i not "%~1"=="pareto-residency" (
|
||||
echo Usage: Play-VIctory.cmd pareto-residency 1>&2
|
||||
exit /b 2
|
||||
)
|
||||
if not defined VICTORY_GAME_DIR set "VICTORY_GAME_DIR=%~dp0..\GTA6.Xbox.v1.0.2.1"
|
||||
if not exist "%VICTORY_GAME_DIR%\game_scarlett_master.exe" (
|
||||
echo Set VICTORY_GAME_DIR to your own dump folder containing game_scarlett_master.exe. 1>&2
|
||||
exit /b 2
|
||||
)
|
||||
set "runner=%~dp0victory-3d-rtx-pareto-residency.exe"
|
||||
if not exist "%runner%" set "runner=%~dp0target\release\victory.exe"
|
||||
if not exist "%runner%" (
|
||||
echo Extract the Windows release or run cargo build --release --locked -p victory. 1>&2
|
||||
exit /b 2
|
||||
)
|
||||
if not defined VICTORY_AMBIENT_AIR set "VICTORY_AMBIENT_AIR=1.5"
|
||||
if not defined VICTORY_CACHE_DIR set "VICTORY_CACHE_DIR=%LOCALAPPDATA%\VIctory\cache-pareto"
|
||||
if not defined VICTORY_TEXTURE_NO_WAIT set "VICTORY_TEXTURE_NO_WAIT=1"
|
||||
if not defined VICTORY_RELAY set "VICTORY_RELAY=2"
|
||||
if not defined VICTORY_WIDE_BACK set "VICTORY_WIDE_BACK=1"
|
||||
if not defined VICTORY_CARD_REHASH_RUNS set "VICTORY_CARD_REHASH_RUNS=1"
|
||||
if not defined VICTORY_JOIN_COPIES set "VICTORY_JOIN_COPIES=1"
|
||||
if not defined VICTORY_INDIRECT_WINDOW set "VICTORY_INDIRECT_WINDOW=1"
|
||||
if not defined VICTORY_RELAY_COPY set "VICTORY_RELAY_COPY=1"
|
||||
if not defined VICTORY_CARD_STEPS set "VICTORY_CARD_STEPS=2"
|
||||
if not defined VICTORY_INDIRECT_BATCH set "VICTORY_INDIRECT_BATCH=2"
|
||||
if not defined VICTORY_MAP_THREADS set "VICTORY_MAP_THREADS=1"
|
||||
if not defined VICTORY_CARD_AWAKE set "VICTORY_CARD_AWAKE=1"
|
||||
if not defined VICTORY_SHOW_AFTER set "VICTORY_SHOW_AFTER=1"
|
||||
if not defined VICTORY_AMBIENT set "VICTORY_AMBIENT=0.8"
|
||||
if not defined VICTORY_THIN set "VICTORY_THIN=1"
|
||||
if not defined VICTORY_JOIN_PARTS set "VICTORY_JOIN_PARTS=8"
|
||||
if not defined VICTORY_UPLOAD_AHEAD set "VICTORY_UPLOAD_AHEAD=1"
|
||||
if not defined VICTORY_LEVELS_ON_DEMAND set "VICTORY_LEVELS_ON_DEMAND=1"
|
||||
if not defined VICTORY_CARD_BUFFERS_MIN_KB set "VICTORY_CARD_BUFFERS_MIN_KB=64"
|
||||
if not defined VICTORY_LOG if not defined RUST_LOG set "VICTORY_LOG=warn"
|
||||
"%runner%" run "%VICTORY_GAME_DIR%\game_scarlett_master.exe" --console series-s --execute
|
||||
exit /b %errorlevel%
|
||||
@@ -1,393 +1,139 @@
|
||||
# VIctory on NVIDIA
|
||||
# VIctory — 6 GB VRAM / 16 GB RAM & NVIDIA RTX Edition
|
||||
|
||||
> **Reporting a problem?** Please attach **both** logs from the run that went
|
||||
> wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address
|
||||
> bar of File Explorer to get there.
|
||||
> ### Support Me a Coffee
|
||||
> If this fork helped you get the game running smoother on a 6–8 GB GPU or 16 GB RAM laptop, you can buy me a coffee:
|
||||
>
|
||||
> 1. **The play log**, in `%LOCALAPPDATA%\victory\logs\`: the newest
|
||||
> `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or
|
||||
> `victory-nvidia-<date>-<time>.log` (from the script launcher). The window
|
||||
> shows its path at the start, on the line `Log: ...`.
|
||||
> 2. **The crash log**: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and,
|
||||
> if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log`
|
||||
> in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`.
|
||||
>
|
||||
> Also say which GPU, Windows version (10 or 11) and release you used.
|
||||
> - **SOL:** `Cep7cZA8LPMUAWckR2JyUfvwhSpm9yzUqUWZxN3MY8LP`
|
||||
> - **USDT (ERC-20 / EVM):** `0xf3feaf58c2f467508e4fd5d5abf2c1495a74b424`
|
||||
|
||||
## Frame generation: what your card supports
|
||||
A performance- and low-memory-tuned fork of [VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA) (built on [foxhound](https://github.com/readmet3xt-lab/foxhound) / [VIctory](https://github.com/Marvisak/VIctory)) that runs an Xbox Series title natively on Windows from files **you** supply.
|
||||
|
||||
| Your card | Frame generation | Limits |
|
||||
| --- | --- | --- |
|
||||
| GeForce RTX 40 and RTX 50 | **DLSS frame generation** | 2x on RTX 40; more than 2x (up to 6x) needs an RTX 50 |
|
||||
| GeForce RTX 20 and RTX 30 | **AMD FSR 3 frame generation** (DLSS frame generation needs an RTX 40 or later) | **2x at most**. DLSS upscaling still works on these cards, so the Series X profile is fine |
|
||||
| Other cards (no DLSS) | **AMD FSR 3 frame generation** | **2x at most, Series S profile only** (F1 menu, CONSOLE): without DLSS the game's own upscaler, which FSR 3 needs, only takes the Series S sizes. Not tested here |
|
||||
> **This repository contains no game files, code, or assets.** You must supply your own legally obtained copy of the title (build v1.0.2.1, `game_scarlett_master.exe`). Not affiliated with or endorsed by the title's developer/publisher, NVIDIA, or AMD. See [docs/asset-policy.md](docs/asset-policy.md).
|
||||
|
||||
- **At every start the game tells you** which one your card runs, and why
|
||||
not if it can't, at the top of the picture for the first 30 seconds (and
|
||||
in the console window).
|
||||
- **F1 menu, FRAME GEN TYPE**: AUTO (DLSS where the card has it, else FSR 3),
|
||||
DLSS, or FSR 3 (also on an RTX 40/50, if you prefer it). FRAME GENERATION
|
||||
switches it off or on.
|
||||
- FSR 3 needs AMD's FidelityFX DLLs (`amd_fidelityfx_loader_dx12.dll` and
|
||||
`amd_fidelityfx_framegeneration_dx12.dll`, about 30 MB). They are AMD's and
|
||||
not part of this program. On a card without DLSS frame generation (or with
|
||||
FSR 3 chosen in F1) the first start of `victory.exe` asks once whether to
|
||||
download them from AMD's own GitHub (the FidelityFX SDK);
|
||||
`victory.exe get-fsr` does it later, and `Get-AMD-FSR.cmd` does it for the
|
||||
script launcher. Each file is checked against the copy this fork was tested
|
||||
with, and only loaded with AMD's valid signature. A `fidelityfx` folder next
|
||||
to `victory.exe`, or `VICTORY_FIDELITYFX_DIR`, works too.
|
||||
---
|
||||
|
||||
## Quick start: how to run it
|
||||
## What This Fork Adds
|
||||
|
||||
**The easy way: one file, nothing to build**
|
||||
- **6 GB / 4 GB VRAM support (`VICTORY_TEXTURE_DROP_MIPS`):** Drops top texture mip levels (`1` = Half for 6 GB GPUs, `2` = Quarter for 4 GB GPUs) to keep VRAM comfortably under budget. Toggleable in the **F1** menu (`TEXTURE SCALE (VRAM)`).
|
||||
- **16 GB RAM stability & OOM recovery:** Caps idle upload/list pools automatically on `<= 32 GB` hosts, drains idle pools under critical commit pressure, and retries `E_OUTOFMEMORY` in command-list preludes instead of crashing.
|
||||
- **Custom windowed output sizes (`VICTORY_OUTPUT`):** True `1280x720` and `1664x936` output patching that works cleanly alongside DLSS and FSR 3 Frame Generation. Toggleable in **F1** (`OUTPUT SIZE (WINDOW)`).
|
||||
- **CPU submit-thread optimizations:** Lock-free `watch::AHEAD_KEPT` + binary-searched `ahead_contains`, `RwLock<Guards>` shared-read fast path, lock-free `Shadow::pending_len` & `Card::before`, merged `copied`/`ranged` lock, incremental `HeapRanges` spans, zero-alloc `HostList::prelude()` fast path, and reused `Batch` scratch buffers.
|
||||
- **DLSS Super Resolution + AMD FSR 3 / DLSS Frame Generation:** Full F1 settings menu, F3 stats panel, HUD-less FSR 3 2X Frame Generation for RTX 20/30 and non-NVIDIA DX12 GPUs, and DLSS FG (2x–6x) for RTX 40/50.
|
||||
- **Portable 6 GB / 16 GB launcher (`scripts/play-6gb.ps1`):** Pre-configured with verified settings (`VICTORY_FAST_CORES=0` for hybrid P+E CPUs, `VICTORY_PORT_CONSTANTS=1`, aligned `SLOT_EVICT` thresholds, `VICTORY_PIPELINE_WAIT_MS=50`, and ReBAR GPU windows).
|
||||
|
||||
1. Download `victory.exe` from the
|
||||
[latest release](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/latest).
|
||||
2. Put it into the folder of **your own dump** of the title's Xbox Series
|
||||
build v1.0.2.1, next to `game_scarlett_master.exe`.
|
||||
3. Double-click it. Windows may say the publisher is unknown (the file is not
|
||||
signed): "More info", then "Run anyway".
|
||||
---
|
||||
|
||||
- The first start asks once whether to download NVIDIA's DLSS and frame
|
||||
generation files (about 70 MB) from NVIDIA's own GitHub. They are NVIDIA's
|
||||
and are not part of this program; say no and the game still runs, with its
|
||||
own upscaling and no frame generation.
|
||||
- Settings, saves, caches, logs and NVIDIA's and AMD's files are kept under
|
||||
`%LOCALAPPDATA%\victory`. The one exception is on Windows 10. Its own Direct3D 12
|
||||
stops at shader model 6.5, and the game's translated shaders need 6.6. Without
|
||||
6.6 the game shows a black screen and closes within seconds. So the first start
|
||||
there offers to fetch Microsoft's newer Direct3D 12 runtime (the D3D12 Agility
|
||||
SDK, `D3D12Core.dll`, about 22 MB from nuget.org). It goes into a `D3D12`
|
||||
folder beside `victory.exe`. `victory.exe get-d3d12` does the same by hand.
|
||||
The file is checked against Microsoft's signature and the tested SHA-256.
|
||||
Windows 11 keeps using its own runtime. A `D3D12` folder that is already
|
||||
there, for example from a repack or another guide (1.618, 1.620), is used
|
||||
at the version of its `D3D12Core.dll`. Before v2026.11.27.6 that version
|
||||
had to be 1.614, or Windows refused Direct3D 12 with `0x887E0003` (the
|
||||
fix in .4 and .5 did not take effect).
|
||||
- C: drive full? Set `VICTORY_HOME` to another folder, once, in a command
|
||||
prompt: `setx VICTORY_HOME D:\victory`. Then start victory.exe from a new
|
||||
window. Settings, saves, caches, logs and the downloads all go there
|
||||
instead of `%LOCALAPPDATA%\victory`. To keep what you have, move that
|
||||
folder's contents there first.
|
||||
- You need Windows 10 or 11, 32 GB of RAM or more, an SSD and an NVIDIA
|
||||
GeForce RTX card with a recent driver. This repository and its releases
|
||||
contain no game files.
|
||||
- **The first start of each new version restarts by itself once.** A new
|
||||
`victory.exe` runs at about 14 fps on its first start, and normally from then
|
||||
on. So the first start plays about 20 seconds, says so at the top of the
|
||||
picture, and starts the game again. It doesn't happen again for that version
|
||||
(a mark is kept in `%LOCALAPPDATA%\victory\warmed`).
|
||||
- RTX 20 and 30 cards can try DLSS frame generation with the
|
||||
[MFG Unlocker](https://github.com/dashdogy/MFG-Unlocker) mod (not ours, and
|
||||
not tested with this fork, which was only run on an RTX 50). It is an option,
|
||||
off by default: **F1, MFG UNLOCKER, ON**, then restart. On, the next start
|
||||
downloads it by itself from the mod's own GitHub release (v1.7.2, about 5 MB,
|
||||
checked against the SHA-256 its author published) into
|
||||
`%LOCALAPPDATA%\victory\mfg-unlocker`, and every start loads it. Nothing is
|
||||
renamed or copied. On an RTX 20 or 30 the first start also asks once (No unless
|
||||
you type y). `victory.exe get-mfg` downloads it by hand. The mod writes its own
|
||||
`RTXMFG-...` logs and settings beside `victory.exe`, and Backspace opens its
|
||||
menu. The start's notice says "UNLOCKED BY A MOD" and the log says it was
|
||||
loaded. If the game crashes or frame generation fails, turn it off in F1 (or
|
||||
add `VICTORY_MFG_UNLOCKER=` to `%LOCALAPPDATA%\victory\victory-settings.txt`).
|
||||
FSR 3 frame generation (2x) is the supported way on those cards. A
|
||||
`winmm.dll` copy of the mod beside `victory.exe` still works too.
|
||||
## Requirements
|
||||
|
||||
**In the game**
|
||||
| Component | Minimum (6 GB / 16 GB Preset) | Recommended |
|
||||
| :--- | :--- | :--- |
|
||||
| **OS** | Windows 10 or 11 (64-bit) | Windows 11 (64-bit) |
|
||||
| **CPU** | x64 with AVX2 (4+ cores) | 6–8+ cores |
|
||||
| **RAM** | **16 GB** *(set a 32–48 GB SSD pagefile)* | 32 GB or more |
|
||||
| **GPU** | **6 GB VRAM** DX12 GPU (RTX 20/30/40/50 for DLSS; any DX12 GPU for FSR 3) | 12 GB+ NVIDIA RTX |
|
||||
| **Storage** | SSD with 50+ GB free (for game + pagefile + shader cache) | NVMe SSD |
|
||||
| **Build Tools** | [Rust](https://rustup.rs) + [VS Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/) ("Desktop development with C++") | — |
|
||||
|
||||
- **F1** brings up the settings menu (arrow keys pick and change, Enter does
|
||||
it): DLSS, frame generation, frame rate cap and more.
|
||||
- **F3** shows the stats panel (frame rate, frame generation, draws, GPU and
|
||||
memory numbers).
|
||||
> **16 GB RAM users:** Windows needs virtual commit headroom while streaming open-world textures. Before playing on a 16 GB PC, set a **32–48 GB custom pagefile** on your SSD (*System Properties → Advanced → Performance Settings → Advanced → Virtual Memory*).
|
||||
|
||||
**Building it yourself instead**
|
||||
---
|
||||
|
||||
Install [Rust](https://rustup.rs) and the
|
||||
[Visual Studio Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)
|
||||
with "Desktop development with C++", then in PowerShell:
|
||||
## Step-by-Step: How to Build & Run
|
||||
|
||||
### Step 1 — Install Prerequisites
|
||||
1. Install **[Rust](https://rustup.rs)** (the toolchain version is pinned automatically by `rust-toolchain.toml`).
|
||||
2. Install **[Visual Studio Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/)** and check **"Desktop development with C++"**.
|
||||
3. Make sure your GPU driver is up to date.
|
||||
|
||||
### Step 2 — Clone the Repository
|
||||
Open **PowerShell** in a folder where you want the project (outside your game folder):
|
||||
|
||||
```powershell
|
||||
git clone https://github.com/trustno1-coder/VIctory-NVIDIA
|
||||
cd VIctory-NVIDIA
|
||||
git clone https://github.com/theme613/theme613crap.git
|
||||
cd theme613crap
|
||||
```
|
||||
|
||||
### Step 3 — Download Upscaler / Frame-Gen DLLs (One-Time)
|
||||
NVIDIA's and AMD's redistributables are not stored in this repo — run the included helper scripts to fetch them directly from NVIDIA / AMD's official GitHub releases:
|
||||
|
||||
```powershell
|
||||
# For NVIDIA RTX cards (DLSS Super Resolution + DLSS FG on RTX 40/50):
|
||||
.\Get-NVIDIA-DLSS.cmd
|
||||
|
||||
# For RTX 20/30 or AMD/Intel cards wanting FSR 3 2X Frame Generation:
|
||||
.\Get-AMD-FSR.cmd
|
||||
```
|
||||
|
||||
*(Windows 10 users only: also run `scripts\get-d3d12.ps1` once to fetch Microsoft's D3D12 Agility SDK with Shader Model 6.6+.)*
|
||||
|
||||
### Step 4 — Build & Launch
|
||||
|
||||
Replace `D:\Games\MyDump\game_scarlett_master.exe` with the path to **your own** dump of `game_scarlett_master.exe`. The first launch builds `target\release\victory.exe` automatically (takes a few minutes).
|
||||
|
||||
**Option A — 6–8 GB VRAM GPUs / 16 GB RAM Laptops (Recommended for RTX 3050 / 3060 / 4050 / 4060):**
|
||||
```powershell
|
||||
# Sharp 1080p windowed (960x540 DLSS Perf, Half textures, FG off):
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe'
|
||||
|
||||
# Same with FSR 3 2X Frame Generation ON:
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' -FrameGen
|
||||
|
||||
# Extra GPU headroom (936p or 720p windowed):
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' -Output 936
|
||||
```
|
||||
|
||||
**Option B — 12 GB+ VRAM GPUs / 32 GB+ RAM Desktops:**
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-nvidia.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe'
|
||||
```
|
||||
|
||||
Put the path to **your** `game_scarlett_master.exe` in the last line. The
|
||||
first start builds the layer, which takes a few minutes.
|
||||
*(Optional: C: drive low on space? Run `setx VICTORY_HOME D:\victory` once and open a new PowerShell window — caches, saves, settings, and logs will go there instead of `%LOCALAPPDATA%\victory`.)*
|
||||
|
||||
Options, requirements in full and the details are under
|
||||
[How to run it](#how-to-run-it).
|
||||
### Step 5 — In-Game Controls & Tuning
|
||||
- Press **`F1`** anytime to open the **Settings Menu** (Arrow keys to navigate, Enter to select, `SAVE AND RESTART NOW` to apply):
|
||||
- **`OUTPUT SIZE (WINDOW)`**: `1080P (DEFAULT)` / `936P` / `720P (FASTEST)`
|
||||
- **`DLSS`** / **`SERIES S PICTURE`**: `960X540 (FASTEST)` / `1113X626` / `1280X720`
|
||||
- **`TEXTURE SCALE (VRAM)`**: `FULL` / `HALF (6GB GPU)` / `QUARTER (4GB GPU)`
|
||||
- **`FRAME GENERATION`**: `OFF` / `2X` (FSR 3 on RTX 20/30 or any DX12 card; DLSS FG 2x–6x on RTX 40/50)
|
||||
- **`WATER LIGHT`**, **`LIGHT ESTIMATE`**, **`REFLECTION ESTIMATE`**, **`FOG CAP`**
|
||||
- **`FULLSCREEN (NO BORDER)`**: `OFF` (windowed) / `ON`
|
||||
- Press **`F3`** to toggle the live **Stats Panel** (FPS, FG FPS, draw count, GPU/CPU times, RAM & VRAM).
|
||||
|
||||
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).
|
||||
## Frame Generation Compatibility
|
||||
|
||||
## Built from many projects, and from running every one of them
|
||||
| Your GPU | Frame Generation | Notes |
|
||||
| :--- | :--- | :--- |
|
||||
| **GeForce RTX 40 / 50** | **DLSS Frame Generation** | 2x on RTX 40; up to 6x on RTX 50 |
|
||||
| **GeForce RTX 20 / 30** | **AMD FSR 3 Frame Generation** | Up to **2x** (with DLSS Super Resolution) |
|
||||
| **AMD / Intel DX12 GPUs** | **AMD FSR 3 Frame Generation** | Up to **2x** (use Series S profile in F1) |
|
||||
|
||||
This repository did not come from one place, and the base it stands on today
|
||||
is the end of a long comparison, not the start of the work. Over several weeks
|
||||
we built, ran and measured many projects on the same NVIDIA PC: Leonida,
|
||||
[Marvisak's VIctory](https://github.com/Marvisak/VIctory),
|
||||
[fxceless's fork](https://github.com/fxceless/victory-fork),
|
||||
[the 7900 XTX fork](https://github.com/avatarmanz/VIctory-7900XTX),
|
||||
[Belobug's](https://github.com/Belobug/VIctory-Belobug-AMD),
|
||||
[DexNom's](https://github.com/DexNom/VIctory),
|
||||
[CGBJ's cool_fox](https://github.com/codec-d/cool_fox), Kelvaroq's, Neptune,
|
||||
xcl (another layer for the same title) and then
|
||||
[foxhound](https://github.com/readmet3xt-lab/foxhound). On each we found what
|
||||
stopped it on an RTX card, fixed or worked around it, measured the result, and
|
||||
carried what we learned to the next. Every pull request sent here was built
|
||||
and run on the same card before it was merged. No single project got here
|
||||
alone, and choosing the base that runs best was only one result of that work.
|
||||
---
|
||||
|
||||
### What this fork brings
|
||||
## Tips for Gaming Laptops (6 GB VRAM / 16 GB RAM)
|
||||
|
||||
Not one fix but a long line of them: days of work, much of it around the clock,
|
||||
across every one of those codebases, more than 300 measured runs on the same
|
||||
RTX PC, and each fault chased towards its cause before the next build. In rendering, in
|
||||
speed, in the picture and in simply being able to play it:
|
||||
1. **Use AC Power + Performance Mode (`Fn + Q` / OEM control panel):** Many gaming laptops cap the GPU to 30–35 W in Balanced mode even when capable of 65–115 W. Unlocking GPU TGP + raising fan speed gives a direct real-FPS boost.
|
||||
2. **Don't choke CPU wattage in Custom Mode:** This compatibility layer uses all CPU cores heavily. Keep CPU cross-loading power limit generous (45–55 W+) and keep Windows Power Plan on High Performance / 100% min processor state on AC.
|
||||
3. **Close background apps before launching:** Browsers, Discord, and IDEs eat RAM and CPU cores on 16 GB systems.
|
||||
4. **First-time shader warm-up:** New open-world areas compile pipelines on first visit (capped to 50 ms/frame in `play-6gb.ps1` to avoid long stalls) and run smoothly once cached.
|
||||
|
||||
**Rendering fixes**
|
||||
---
|
||||
|
||||
- **Draws no longer skipped on NVIDIA.** NVIDIA caps the view heap below what
|
||||
the title asks for; thousands of draws a frame were dropped, the screen
|
||||
rarely updated and the character jumped from place to place. The pool of
|
||||
descriptor slots was reworked until almost none were.
|
||||
- **Menus, loading screens and subtitles on Series S**, black until then (the
|
||||
interface plane laid over the game), and **faces that move** (their network
|
||||
carried through as integers): ported from fxceless's pull requests 1189 and
|
||||
927 and made to work on this card.
|
||||
- **The intro video without flicker**: its frames came out of order.
|
||||
- **Black blobs gone**: a single bad number from a shader, spread by blur and
|
||||
the upscaler into patches on faces and in the air, is caught where it is
|
||||
written.
|
||||
- **White, hazy rooms explained and tamed**: the title's ray tracing was
|
||||
running with its structure builder off, so every ray missed. Which passes
|
||||
can be left out without filling the picture with rainbow glitter was worked
|
||||
out pass by pass.
|
||||
- **The ray-tracing structure builder running on NVIDIA**, on CGBJ's renderer:
|
||||
the draws dropped for it went from thousands a frame to one.
|
||||
- **White-outs with black holes further into the game** followed up in frames
|
||||
captured in play: thousands of draws a frame were being dropped there for
|
||||
that same missing structure.
|
||||
## Known Limitations
|
||||
|
||||
**Speed**
|
||||
- **Hardware ray tracing is off by default** (`RAY TRACING` in F1 is slow/broken on current builds); indirect lighting and reflections use the emulator's `LIGHT ESTIMATE` + `REFLECTION ESTIMATE` + `WATER LIGHT` shaders instead.
|
||||
- **Frame generation only generates frames while the game window is focused.**
|
||||
- See [docs/windows-memory.md](docs/windows-memory.md) for detailed low-RAM / low-VRAM troubleshooting and [docs/findings.md](docs/findings.md) for upstream technical measurements.
|
||||
|
||||
- **Memory compares moved to the card**: 11 to about 22 frames a second on the
|
||||
base of the time.
|
||||
- **Settings measured, not guessed**: one switch at a time, on the same scene,
|
||||
run after run.
|
||||
- **The base itself chosen by measurement**: the same rooms went from 15-17
|
||||
frames a second to 26-30, at a higher resolution.
|
||||
- **The 30 frames a second were the title's own frame interval**, not the
|
||||
layer's limit: found, and lifted.
|
||||
---
|
||||
|
||||
**Picture and frames**
|
||||
## Credits & License
|
||||
|
||||
- **DLSS in place of the title's upscaler**, with its model and mode to choose.
|
||||
- **DLSS frame generation with up to six frames shown for each one rendered**,
|
||||
switched and changed while playing, without a restart, once it was on at the
|
||||
start or made ready with `-FrameGenReady` (foxhound's is 2x, set at the start). By Streamline's own count it shows exactly 2, 4 and 6.
|
||||
- **Why frame generation showed nothing on a full 12 GB card**, found and
|
||||
fixed: the card's memory is now shared out so that it has room.
|
||||
- **The frame rate at the top left of the picture**: frames rendered a second
|
||||
and, with frame generation, frames shown (`FPS: 28.4 FG: 170.4`).
|
||||
Built on the work of the community:
|
||||
- **[VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA)** — NVIDIA Streamline DLSS/FG, FSR 3 FG, F1 settings menu, F3 stats panel
|
||||
- **[foxhound](https://github.com/readmet3xt-lab/foxhound)** — fast descriptor sync, card-side compares, ambient/reflection estimates
|
||||
- **[VIctory](https://github.com/Marvisak/VIctory)** — core loader, runtime services, D3D12 backend, shader recompiler
|
||||
- **[Dathinel/victory-4gb](https://github.com/Dathinel/victory-4gb)**, **[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)**, **[Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD)**, **[DexNom/VIctory](https://github.com/DexNom/VIctory)**
|
||||
|
||||
**Playing it**
|
||||
|
||||
- **The F1 settings menu**, in every build: DLSS, frame generation, frame rate
|
||||
cap, console profile, picture size, the light estimates and the main speed
|
||||
switches, saved to `victory-settings.txt` and applied at the next start
|
||||
("SAVE AND RESTART NOW" does that for you; lines marked LIVE change at once).
|
||||
- **The F3 stats panel**, in every build: frame rate and frame time, frames
|
||||
shown with frame generation, draws, how busy the GPU and the submitting
|
||||
thread are, copies, RAM and VRAM. The menu switches it too.
|
||||
- **Open water without dark blocks.** Two of the title's water light programs
|
||||
run on 32-lane cards only in a form that left whole tiles of the sea dark
|
||||
(around boats, along shores, under bridges) and cost about 15 ms of the
|
||||
card a frame. They are left out there: no blocks and 30 fps instead of 25
|
||||
on the first boat ride (RTX 5070), with water that is darker and bluer.
|
||||
WATER LIGHT in the menu (`VICTORY_WATER_LIGHT=1`) runs them again.
|
||||
- **One command to play**: the launcher builds the layer the first time and
|
||||
applies what the menu saved.
|
||||
- **`Get-NVIDIA-DLSS.cmd`**: the eight NVIDIA files that are loaded, about
|
||||
70 MB, taken out of NVIDIA's 263 MB release without downloading the rest.
|
||||
NVIDIA's licence does not let a repository carry them, so they come from
|
||||
NVIDIA.
|
||||
|
||||
**Tested, not assumed**
|
||||
|
||||
- Every pull request sent here was read line by line and, where it touched the
|
||||
game, built and run on this card before it was merged: ten so far.
|
||||
|
||||
Where each of these is today: this fork's own code in this tree is the F1
|
||||
menu, the stats panel in every build, the water light switch, frame
|
||||
generation from 2x to 6x with its live switching and memory handling, the
|
||||
lifted frame rate cap, the frame rate line, the launcher and the NVIDIA file
|
||||
fetcher. The foxhound line carries the descriptor slots, the
|
||||
compares on the card, the interface plane and the face network in its own
|
||||
form. The black-blob scrub, the graphics card picker and the ray-tracing
|
||||
builder path are in this repository's history, and come over as this base
|
||||
turns out to need them.
|
||||
|
||||
### The base since 2026-11-26: foxhound
|
||||
|
||||
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 has on top of it is under
|
||||
[What this fork brings](#what-this-fork-brings) above.
|
||||
|
||||
## Where it stands
|
||||
|
||||
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.
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| Opening rooms | mostly 26-30 frames a second rendered (33-38 ms a frame) |
|
||||
| Frame generation | 2x to 6x on top of that: by Streamline's own count, 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'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.
|
||||
|
||||
## How to run it
|
||||
|
||||
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/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 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.
|
||||
|
||||
`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, 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 |
|
||||
| `-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 |
|
||||
| `-FrameGenReady` | frame generation made ready but off, so the F1 menu can switch it while playing (costs frame rate: ready, frames go through Streamline's swap chain; without it, a change in F1 takes effect at the next start) |
|
||||
| `-FgType auto` / `dlss` / `fsr` | which frame generation (see the top of this page); FSR 3's DLLs from `VICTORY_FIDELITYFX_DIR`, else `amd-sdk\FidelityFX\bin` here |
|
||||
| `-Build diag` | the diagnostics build (slower; captures, timelines, recording time in the F3 panel) |
|
||||
| `-More @{VICTORY_X='1'}` | add or override any switch |
|
||||
|
||||
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`.
|
||||
|
||||
If the menu works but loading a scene closes the game, see the
|
||||
[Windows memory troubleshooting guide](docs/windows-memory.md). It shows how
|
||||
to check memory on systems with 32 GB of RAM or GPUs with 8 GB of VRAM.
|
||||
|
||||
## 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/linux-proton.md](docs/linux-proton.md): building on Linux and first
|
||||
runs under Proton (experimental).
|
||||
- [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 a little on top; the history is kept.
|
||||
|
||||
- **[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.
|
||||
- Testing save sharing (F1 > EXPORT SAVE / IMPORT SAVE) with their own saves, in
|
||||
[discussion #520](https://github.com/trustno1-coder/VIctory-NVIDIA/discussions/520):
|
||||
[DueTonight](https://github.com/DueTonight) and
|
||||
[mikan123pro](https://github.com/mikan123pro).
|
||||
- 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 and foxhound. See [LICENSE](LICENSE); the one file
|
||||
that is not covered is named in [docs/asset-policy.md](docs/asset-policy.md).
|
||||
Licensed under **GPL-3.0-or-later** (see [LICENSE](LICENSE)).
|
||||
@@ -1004,7 +1004,7 @@ mod tests {
|
||||
#[command(flatten)]
|
||||
play: Play,
|
||||
}
|
||||
let exe = Path::new(r"C:\Games\GTA VI's\game_scarlett_master.exe");
|
||||
let exe = Path::new(r"C:\Games\My Title's\game_scarlett_master.exe");
|
||||
let first = [
|
||||
"x", "--series-s", "--dlss", "performance", "--framegen", "2", "--fg-type", "dlss", "--set", "VICTORY_MFG_UNLOCKER=1", "--set",
|
||||
"VICTORY_X=a b", "--preload",
|
||||
@@ -1013,7 +1013,7 @@ mod tests {
|
||||
let args = restart_args(&o, exe);
|
||||
assert_eq!(
|
||||
args,
|
||||
r"play 'C:\Games\GTA VI''s\game_scarlett_master.exe' --series-s --res '1440' --dlss 'performance' --framegen 2 --fg-type 'dlss' --fps 1000 --set 'VICTORY_MFG_UNLOCKER=1' --set 'VICTORY_X=a b'"
|
||||
r"play 'C:\Games\My Title''s\game_scarlett_master.exe' --series-s --res '1440' --dlss 'performance' --framegen 2 --fg-type 'dlss' --fps 1000 --set 'VICTORY_MFG_UNLOCKER=1' --set 'VICTORY_X=a b'"
|
||||
);
|
||||
// Read back as PowerShell reads it: the same options again, and no preload.
|
||||
let mut words: Vec<String> = Vec::new();
|
||||
@@ -1037,7 +1037,7 @@ mod tests {
|
||||
let plain = Line::try_parse_from(["x"]).unwrap().play;
|
||||
assert_eq!(
|
||||
restart_args(&plain, exe),
|
||||
r"play 'C:\Games\GTA VI''s\game_scarlett_master.exe' --res '1440' --dlss 'quality' --fg-type 'auto' --fps 1000"
|
||||
r"play 'C:\Games\My Title''s\game_scarlett_master.exe' --res '1440' --dlss 'quality' --fg-type 'auto' --fps 1000"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ fn leave_out() -> &'static [String] {
|
||||
}
|
||||
|
||||
/// The light in the water's volume, in tiles (`water_shading:CS_TransmissionVolumetrics_Tiled`
|
||||
/// and `_Tiled_LocalLights`, GTA VI 1.0.2.1): programs of one 64-lane wave a group, which a
|
||||
/// and `_Tiled_LocalLights`, title build 1.0.2.1): programs of one 64-lane wave a group, which a
|
||||
/// host of 32-lane waves gets in the wave-wide form only (`victory_shader::emit`, 4 and 7
|
||||
/// branches taken wave-wide). In that form they leave whole tiles of open water dark, around
|
||||
/// boats, along shores and under bridges, and take about 15 ms of the card a frame (RTX 5070,
|
||||
|
||||
@@ -0,0 +1,253 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Portable launcher tuned for 6-8 GB VRAM GPUs and 16 GB RAM PCs (windowed by default).
|
||||
.EXAMPLE
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe'
|
||||
.EXAMPLE
|
||||
powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\Games\MyDump\game_scarlett_master.exe' -FrameGen -Output '1664x936'
|
||||
#>
|
||||
param(
|
||||
[string]$Exe = '',
|
||||
[ValidateSet('1080', '936', '720')][string]$Output = '1080',
|
||||
[ValidateSet('performance', 'balanced', 'quality', 'dlaa', 'off')][string]$Dlss = 'performance',
|
||||
[ValidateRange(0, 2)][int]$DropMips = 1,
|
||||
[switch]$FrameGen,
|
||||
[ValidateSet('fsr', 'dlss', 'auto')][string]$FgType = 'fsr',
|
||||
[ValidateRange(2, 6)][int]$FrameGenX = 2,
|
||||
[switch]$Preload,
|
||||
[string]$LogFile = ''
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Continue'
|
||||
$repo = Split-Path -Parent $PSScriptRoot
|
||||
$victory = Join-Path $repo 'target\release\victory.exe'
|
||||
$homeDir = if ($env:VICTORY_HOME) { $env:VICTORY_HOME } else { Join-Path $env:LOCALAPPDATA 'victory' }
|
||||
$cacheDir = Join-Path $homeDir 'cache'
|
||||
$dataDir = Join-Path $homeDir 'data'
|
||||
$menuFile = Join-Path $homeDir 'victory-settings.txt'
|
||||
$slDir = if ($env:VICTORY_STREAMLINE_DIR) { $env:VICTORY_STREAMLINE_DIR } else { Join-Path $repo 'nvidia-sdk\Streamline\bin\x64' }
|
||||
$fxDir = if ($env:VICTORY_FIDELITYFX_DIR) { $env:VICTORY_FIDELITYFX_DIR } else { Join-Path $repo 'amd-sdk\FidelityFX\bin' }
|
||||
|
||||
# Resolve title executable from -Exe, VICTORY_GAME_DIR, or victory.toml
|
||||
if (-not $Exe -and $env:VICTORY_GAME_DIR) {
|
||||
$Exe = Join-Path $env:VICTORY_GAME_DIR 'game_scarlett_master.exe'
|
||||
}
|
||||
if (-not $Exe) {
|
||||
$toml = Join-Path $repo 'victory.toml'
|
||||
if (Test-Path -LiteralPath $toml) {
|
||||
$m = Select-String -Path $toml -Pattern '^\s*game_dir\s*=\s*"([^"]+)"' | Select-Object -First 1
|
||||
if ($m) { $Exe = Join-Path $m.Matches[0].Groups[1].Value 'game_scarlett_master.exe' }
|
||||
}
|
||||
}
|
||||
if (-not $Exe -or -not (Test-Path -LiteralPath $Exe)) {
|
||||
Write-Host 'Title executable not found. Pass it with -Exe:'
|
||||
Write-Host " powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'C:\Path\To\game_scarlett_master.exe'"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Build release binary automatically on first run
|
||||
if (-not (Test-Path -LiteralPath $victory)) {
|
||||
Write-Host 'Building release binary (first run only, takes a few minutes)...'
|
||||
Push-Location $repo
|
||||
try {
|
||||
& cargo build --release --locked -j 4 -p victory
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Force $cacheDir | Out-Null
|
||||
New-Item -ItemType Directory -Force $dataDir | Out-Null
|
||||
|
||||
# Read saved F1 menu overrides
|
||||
$menu = [ordered]@{}
|
||||
if (Test-Path -LiteralPath $menuFile) {
|
||||
foreach ($line in Get-Content -LiteralPath $menuFile) {
|
||||
if ($line -match '^\s*(VICTORY_[A-Z0-9_]+)\s*=(.*)$') {
|
||||
$menu[$Matches[1]] = $Matches[2].Trim()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$seriesS = $true
|
||||
$res = '1080to1440'
|
||||
$sRes = '540'
|
||||
$dlssMode = $Dlss
|
||||
$fgOn = [bool]$FrameGen
|
||||
$timesWanted = $FrameGenX
|
||||
$fgKind = $FgType
|
||||
$fpsWanted = 1000
|
||||
|
||||
if ($menu.Contains('VICTORY_MENU_CONSOLE')) { $seriesS = $menu['VICTORY_MENU_CONSOLE'] -eq 'series-s' }
|
||||
if ($menu['VICTORY_MENU_RES'] -in '1440', '1080to1440', '4k') { $res = $menu['VICTORY_MENU_RES'] }
|
||||
if ($menu['VICTORY_MENU_S_RES'] -in '1080', '720', '626', '540') { $sRes = $menu['VICTORY_MENU_S_RES'] }
|
||||
if ($menu['VICTORY_MENU_DLSS'] -in 'off', 'dlaa', 'quality', 'balanced', 'performance') { $dlssMode = $menu['VICTORY_MENU_DLSS'] }
|
||||
if ($seriesS -and $dlssMode -ne 'off' -and $menu.Contains('VICTORY_MENU_S_RES')) {
|
||||
$sMap = @{ '1080' = 'dlaa'; '720' = 'quality'; '626' = 'balanced'; '540' = 'performance' }
|
||||
if ($sMap.ContainsKey($sRes)) { $dlssMode = $sMap[$sRes] }
|
||||
}
|
||||
if ($menu.Contains('VICTORY_MENU_FRAMEGEN')) {
|
||||
$fgOn = $menu['VICTORY_MENU_FRAMEGEN'] -match '^[1-6]$'
|
||||
if ($menu['VICTORY_MENU_FRAMEGEN'] -match '^[2-6]$') { $timesWanted = [int]$menu['VICTORY_MENU_FRAMEGEN'] }
|
||||
}
|
||||
if ($menu['VICTORY_MENU_FG_TYPE'] -in 'auto', 'dlss', 'fsr') { $fgKind = $menu['VICTORY_MENU_FG_TYPE'] }
|
||||
if ($menu['VICTORY_MENU_FPS'] -match '^\d+$' -and [int]$menu['VICTORY_MENU_FPS'] -ge 1 -and [int]$menu['VICTORY_MENU_FPS'] -le 1000) {
|
||||
$fpsWanted = [int]$menu['VICTORY_MENU_FPS']
|
||||
}
|
||||
|
||||
$settings = [ordered]@{
|
||||
VICTORY_CACHE_DIR = $cacheDir
|
||||
VICTORY_DATA_DIR = $dataDir
|
||||
VICTORY_LOG = 'info'
|
||||
|
||||
# CPU threading & submission (FAST_CORES=0 uses both P+E cores on hybrid CPUs)
|
||||
VICTORY_THIN = '0'
|
||||
VICTORY_ASYNC_SUBMIT = '1'
|
||||
VICTORY_JOIN_PARTS = '8'
|
||||
VICTORY_RELAY = '2'
|
||||
VICTORY_RELAY_COPY = '1'
|
||||
VICTORY_WIDE_BACK = '1'
|
||||
VICTORY_CARD_REHASH_RUNS = '1'
|
||||
VICTORY_JOIN_COPIES = '1'
|
||||
VICTORY_CARD_STEPS = '2'
|
||||
VICTORY_CARD_AWAKE = '1'
|
||||
VICTORY_CARD_BUFFERS_MIN_KB = '64'
|
||||
VICTORY_CARD_BUFFERS_MB = '1280'
|
||||
VICTORY_CARD_ROOM_FOR_TARGETS_MB = '1024'
|
||||
VICTORY_CARD_WINDOWS_MB = '0'
|
||||
VICTORY_PORT_CONSTANTS = '1'
|
||||
VICTORY_INDIRECT_WINDOW = '1'
|
||||
VICTORY_INDIRECT_BATCH = '2'
|
||||
VICTORY_UPLOAD_AHEAD = '1'
|
||||
VICTORY_SHOW_AFTER = '1'
|
||||
VICTORY_MAP_THREADS = '1'
|
||||
VICTORY_FAST_CORES = '0'
|
||||
VICTORY_INPLACE = '1'
|
||||
VICTORY_INPLACE_MB = '512'
|
||||
VICTORY_TEXSPK_PASS_MS = '8'
|
||||
VICTORY_PASSES_HOT = '1'
|
||||
VICTORY_HELPER_PRIORITY = '1'
|
||||
VICTORY_WC_NO_BACK = '1'
|
||||
VICTORY_WC_NO_BACK_MIN_KB = '1024'
|
||||
VICTORY_SOFT_VIEWS = 'copies'
|
||||
|
||||
# Texture streaming + 6 GB VRAM mip scale
|
||||
VICTORY_TEXTURE_POOL = '1'
|
||||
VICTORY_RIPE_BLOCKS = '0'
|
||||
VICTORY_TEXTURE_NO_WAIT = '1'
|
||||
VICTORY_TEXTURE_CATCHUP = '0'
|
||||
VICTORY_TEXTURE_STAGE_MS = '16'
|
||||
VICTORY_LEVELS_ON_DEMAND = '0'
|
||||
VICTORY_PRELUDE_UPLOADS = '1'
|
||||
VICTORY_SHOW_NEW_LATER = '1'
|
||||
VICTORY_POOL_SMALL = '0'
|
||||
VICTORY_TABLED_REREAD = '1'
|
||||
VICTORY_QUEUE_HOST_TEXTURES = '0'
|
||||
VICTORY_TEXTURE_DROP_MIPS = [string]$DropMips
|
||||
|
||||
# Descriptor heap fast sync
|
||||
VICTORY_HEAP_SYNC_FIRST = '1'
|
||||
VICTORY_SYNC_IN_PLACE = '1'
|
||||
VICTORY_SPANS_QUICK = '1'
|
||||
VICTORY_SYNC_FINE = '1'
|
||||
VICTORY_HEAP_SYNC_AT_SUBMIT = '1'
|
||||
|
||||
# Visuals (windowed by default; toggleable in F1 menu)
|
||||
VICTORY_AMBIENT = '0.8'
|
||||
VICTORY_AMBIENT_AIR = '1.5'
|
||||
VICTORY_AMBIENT_SPECULAR = '1'
|
||||
VICTORY_WATER_LIGHT = '1'
|
||||
VICTORY_EARLY_DEPTH = '1'
|
||||
VICTORY_LEAVE_OUT = '02384a60fda6f2d0,731a39171b568298'
|
||||
|
||||
# Pipeline caching + short wait cap to prevent 500 ms shader-compile freezes
|
||||
VICTORY_PIPELINE_BOOK = '1'
|
||||
VICTORY_PIPELINE_WAIT_MS = '50'
|
||||
|
||||
# Memory stack (SLOT_EVICT aligned above ROOM% to prevent eviction thrashing)
|
||||
VICTORY_SLOT_EVICT = '1'
|
||||
VICTORY_SLOT_EVICT_PERCENT = '92'
|
||||
VICTORY_SLOT_EVICT_LOW_PERCENT = '82'
|
||||
VICTORY_ALLOCATOR_TRIM = '1'
|
||||
VICTORY_BUDGET_PACK = '1'
|
||||
VICTORY_TEARING = '1'
|
||||
VICTORY_FPS_LINE = '1'
|
||||
}
|
||||
|
||||
if ($Output -eq '936') { $settings['VICTORY_OUTPUT'] = '1664x936' }
|
||||
elseif ($Output -eq '720') { $settings['VICTORY_OUTPUT'] = '1280x720' }
|
||||
|
||||
if (-not $seriesS) {
|
||||
if ($res -eq '1440') { $settings['VICTORY_NATIVE_1440P'] = '1' }
|
||||
elseif ($res -eq '1080to1440') { $settings['VICTORY_RENDER_1080P'] = '1' }
|
||||
}
|
||||
|
||||
if ($dlssMode -ne 'off' -and (Test-Path (Join-Path $slDir 'sl.interposer.dll'))) {
|
||||
$settings['VICTORY_DLSS'] = '1'
|
||||
$settings['VICTORY_DLSS_MODE'] = $dlssMode
|
||||
$settings['VICTORY_STREAMLINE_DIR'] = $slDir
|
||||
}
|
||||
|
||||
if ($dlssMode -ne 'off' -and $fgOn) {
|
||||
if ($fgKind -ne 'dlss' -and (Test-Path (Join-Path $fxDir 'amd_fidelityfx_framegeneration_dx12.dll'))) {
|
||||
$settings['VICTORY_FSR_FRAMEGEN'] = '1'
|
||||
$settings['VICTORY_FIDELITYFX_DIR'] = $fxDir
|
||||
$settings['VICTORY_FRAMEGEN_X'] = [string]$timesWanted
|
||||
$settings['VICTORY_TEXTURE_ROOM_PERCENT'] = '82'
|
||||
$settings['VICTORY_WINDOWS_BAR_MB'] = '128'
|
||||
} elseif ($fgKind -eq 'dlss') {
|
||||
$settings['VICTORY_FRAMEGEN'] = '1'
|
||||
$settings['VICTORY_FRAMEGEN_X'] = [string]$timesWanted
|
||||
$settings['VICTORY_TEXTURE_ROOM_PERCENT'] = '82'
|
||||
$settings['VICTORY_WINDOWS_BAR_MB'] = '128'
|
||||
}
|
||||
} else {
|
||||
$settings['VICTORY_TEXTURE_ROOM_PERCENT'] = '85'
|
||||
$settings['VICTORY_WINDOWS_BAR_MB'] = '256'
|
||||
}
|
||||
|
||||
$settings['VICTORY_FRAME_INTERVAL_US'] = [string][int][math]::Round(1000000 / $fpsWanted)
|
||||
|
||||
# Apply saved F1 menu overrides
|
||||
foreach ($k in $menu.Keys) {
|
||||
if ($k -like 'VICTORY_MENU_*') { continue }
|
||||
if ($menu[$k]) { $settings[$k] = $menu[$k] } else { $settings.Remove($k) }
|
||||
}
|
||||
|
||||
$console = if ($seriesS) { 'series-s' } else { 'series-x' }
|
||||
$settings['VICTORY_MENU_CONSOLE'] = $console
|
||||
$settings['VICTORY_MENU_RES'] = $res
|
||||
$settings['VICTORY_MENU_S_RES'] = $sRes
|
||||
$settings['VICTORY_MENU_DLSS'] = if ($settings.Contains('VICTORY_DLSS')) { $dlssMode } else { 'off' }
|
||||
$settings['VICTORY_MENU_FRAMEGEN'] = if ($settings.Contains('VICTORY_FSR_FRAMEGEN') -or $settings.Contains('VICTORY_FRAMEGEN')) { [string]$timesWanted } else { '0' }
|
||||
$settings['VICTORY_MENU_FG_TYPE'] = $fgKind
|
||||
$settings['VICTORY_MENU_FPS'] = [string]$fpsWanted
|
||||
$settings['VICTORY_MENU_FILE'] = $menuFile
|
||||
$settings['VICTORY_MENU_PLAY'] = $MyInvocation.MyCommand.Path
|
||||
$settings['VICTORY_MENU_ARGS'] = "-Exe '$($Exe -replace "'", "''")'"
|
||||
|
||||
Get-ChildItem Env:VICTORY_* -ErrorAction SilentlyContinue | ForEach-Object { Remove-Item "Env:$($_.Name)" }
|
||||
foreach ($k in $settings.Keys) { Set-Item "Env:$k" $settings[$k] }
|
||||
|
||||
Write-Host "Launching VIctory (6 GB VRAM / 16 GB RAM preset)..."
|
||||
Write-Host " Window: $(if ($settings['VICTORY_OUTPUT']) { $settings['VICTORY_OUTPUT'] } else { '1920x1080' }) | Console: $console | DLSS: $($settings['VICTORY_MENU_DLSS']) | FG: $($settings['VICTORY_MENU_FRAMEGEN'])x ($fgKind) | DropMips: $($settings['VICTORY_TEXTURE_DROP_MIPS'])"
|
||||
Write-Host " Home: $homeDir"
|
||||
Write-Host " Tip: Press F1 for Settings Menu, F3 for Stats Panel."
|
||||
Write-Host ""
|
||||
|
||||
Push-Location $repo
|
||||
try {
|
||||
if ($Preload) {
|
||||
Write-Host "Preloading shaders into $cacheDir..."
|
||||
& $victory preload ([IO.Path]::GetDirectoryName($Exe))
|
||||
}
|
||||
if ($LogFile) {
|
||||
& $victory run $Exe --console $console --execute 2> $LogFile
|
||||
} else {
|
||||
& $victory run $Exe --console $console --execute
|
||||
}
|
||||
exit $LASTEXITCODE
|
||||
} finally {
|
||||
Pop-Location
|
||||
}
|
||||
@@ -1,146 +0,0 @@
|
||||
# One-click GTA VI on trustno1-coder/VIctory-NVIDIA (foxhound base): DLSS Super Resolution + DLSS frame generation.
|
||||
# PLAY_FRAMEGEN.cmd runs this. What it does, in order:
|
||||
# 1. finds the game folder (game_dir.txt in the repository folder, else a search of every drive)
|
||||
# 2. backs up the saves (%LOCALAPPDATA%\victory\data\7952987A) and checks every file by SHA-256
|
||||
# 3. gets NVIDIA's DLSS files once (scripts\get-nvidia-sdks.ps1, from github.com/NVIDIA-RTX/Streamline)
|
||||
# 4. starts scripts\play-foxhound.ps1, which builds the layer the first time (a few minutes)
|
||||
# Modes: 1 Series X 1440p + DLSS Quality + frame generation 2x (default)
|
||||
# 2 same without frame generation
|
||||
# 3 Series S + DLSS Quality + frame generation 2x (faster, softer)
|
||||
# 4 Series X 1440p + DLSS Performance + frame generation 2x
|
||||
param(
|
||||
[ValidateSet('1', '2', '3', '4', '5', '6')][string]$Mode = '1',
|
||||
[string]$GameDir = '',
|
||||
[switch]$Check,
|
||||
[switch]$NoBackup
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$repo = Split-Path $PSScriptRoot -Parent
|
||||
|
||||
# A game folder holds the executable and its data (a lone copy of the exe does not count).
|
||||
function Test-GameDir([string]$d) {
|
||||
if (-not $d -or -not (Test-Path (Join-Path $d 'game_scarlett_master.exe'))) { return $false }
|
||||
return (Test-Path (Join-Path $d 'shaders.rpf')) -or (Test-Path (Join-Path $d 'MicrosoftGame.config'))
|
||||
}
|
||||
function Find-GameDir {
|
||||
$txt = Join-Path $repo 'game_dir.txt'
|
||||
if (Test-Path $txt) {
|
||||
$d = (Get-Content $txt -Encoding UTF8 -TotalCount 1).Trim().Trim('"')
|
||||
if (Test-GameDir $d) { return $d }
|
||||
}
|
||||
foreach ($drive in (Get-PSDrive -PSProvider FileSystem | Where-Object { $null -ne $_.Free })) {
|
||||
$cands = @(Get-ChildItem $drive.Root -Directory -ErrorAction SilentlyContinue)
|
||||
$cands += @($cands | ForEach-Object { Get-ChildItem $_.FullName -Directory -ErrorAction SilentlyContinue })
|
||||
foreach ($c in $cands) { if (Test-GameDir $c.FullName) { return $c.FullName } }
|
||||
}
|
||||
return $null
|
||||
}
|
||||
|
||||
if (-not $GameDir) { $GameDir = Find-GameDir }
|
||||
if (-not (Test-GameDir $GameDir)) {
|
||||
Write-Host 'Game folder not found. Put its full path on the first line of game_dir.txt in this folder.'
|
||||
exit 1
|
||||
}
|
||||
$gameExe = Join-Path $GameDir 'game_scarlett_master.exe'
|
||||
|
||||
switch ($Mode) {
|
||||
'1' { $opts = @{ FrameGen = $true }; $what = 'Series X 2560x1440, DLSS Quality, frame generation 2x' }
|
||||
'2' { $opts = @{}; $what = 'Series X 2560x1440, DLSS Quality, no frame generation' }
|
||||
'3' { $opts = @{ SeriesS = $true; FrameGen = $true }; $what = 'Series S, DLSS Quality, frame generation 2x' }
|
||||
'4' { $opts = @{ Dlss = 'performance'; FrameGen = $true }; $what = 'Series X 2560x1440, DLSS Performance, frame generation 2x' }
|
||||
'5' { $opts = @{ SeriesS = $true; Dlss = 'performance'; FrameGen = $true; Fps = 1000 }; $what = 'EXTREME: Series S, DLSS Performance, frame generation 2x, no cap, big pools, High priority' }
|
||||
'6' { $opts = @{ Dlss = 'performance'; FrameGen = $true; Fps = 1000 }; $what = 'EXTREME: Series X 2560x1440, DLSS Performance, frame generation 2x, no cap, big pools, High priority' }
|
||||
}
|
||||
$sl = Join-Path $repo 'nvidia-sdk\Streamline\bin\x64'
|
||||
$victory = Join-Path $repo 'target\release\victory.exe'
|
||||
$hags = (Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers' -Name HwSchMode -ErrorAction SilentlyContinue).HwSchMode
|
||||
$isWin11 = [Environment]::OSVersion.Version.Build -ge 22000
|
||||
$hagsOff = ($hags -eq 1) -or ($null -eq $hags -and -not $isWin11)
|
||||
$hagsText = if ($hags -eq 2) {
|
||||
'on'
|
||||
} elseif ($null -eq $hags -and $isWin11) {
|
||||
'default (on in Windows 11)'
|
||||
} else {
|
||||
'off: frame generation needs it (Settings > Display > Graphics)'
|
||||
}
|
||||
|
||||
if ($Check) {
|
||||
Write-Host "repo: $repo"
|
||||
Write-Host "game: $gameExe"
|
||||
Write-Host "mode: $Mode ($what)"
|
||||
Write-Host "DLSS: $(if (Test-Path (Join-Path $sl 'sl.interposer.dll')) { 'present' } else { 'not yet (downloaded at first start)' })"
|
||||
Write-Host "built: $(if (Test-Path $victory) { 'yes' } else { 'no (built at first start)' })"
|
||||
Write-Host "HAGS: $hagsText"
|
||||
exit 0
|
||||
}
|
||||
if (Get-Process victory -ErrorAction SilentlyContinue) { Write-Host 'The game is already running. Close it first.'; exit 1 }
|
||||
|
||||
# 2. Saves backup, verified file by file.
|
||||
if (-not $NoBackup) {
|
||||
$src = Join-Path $env:LOCALAPPDATA 'victory\data\7952987A'
|
||||
if (Test-Path $src) {
|
||||
$root = if (Test-Path 'D:\') { 'D:\victory-save-backups' } else { Join-Path $env:USERPROFILE 'victory-save-backups' }
|
||||
$dst = Join-Path $root ('7952987A-{0:yyyyMMdd-HHmmss}-before-nvidia' -f (Get-Date))
|
||||
New-Item -ItemType Directory -Force $root | Out-Null
|
||||
Copy-Item $src $dst -Recurse -Force
|
||||
$files = @(Get-ChildItem $src -Recurse -File)
|
||||
$bad = 0
|
||||
foreach ($f in $files) {
|
||||
$t = Join-Path $dst $f.FullName.Substring($src.Length)
|
||||
try {
|
||||
if (-not (Test-Path $t) -or (Get-FileHash $f.FullName).Hash -ne (Get-FileHash $t).Hash) { $bad++ }
|
||||
} catch { $bad++ }
|
||||
}
|
||||
if ($bad) { Write-Host "Save backup check failed ($bad of $($files.Count) files). Not starting."; exit 1 }
|
||||
Write-Host "Saves backed up and checked: $dst ($($files.Count) files)"
|
||||
}
|
||||
}
|
||||
|
||||
# 3. NVIDIA's DLSS and frame generation files, once.
|
||||
if (-not (Test-Path (Join-Path $sl 'sl.interposer.dll'))) {
|
||||
Write-Host 'Getting NVIDIA DLSS files (about 70 MB, once) ...'
|
||||
try { & (Join-Path $PSScriptRoot 'get-nvidia-sdks.ps1') }
|
||||
catch { Write-Host "Could not get them ($($_.Exception.Message)): the game runs without DLSS and frame generation." }
|
||||
}
|
||||
if ($hagsOff) { Write-Host 'Hardware-accelerated GPU scheduling is off: frame generation will not work until it is on.' }
|
||||
|
||||
# 4. Start (play-foxhound.ps1 builds target\release\victory.exe the first time).
|
||||
if (-not (Test-Path $victory)) { Write-Host 'First start: building the layer, a few minutes ...' }
|
||||
Write-Host "Starting GTA VI: $what"
|
||||
Write-Host 'In the game: F1 settings menu, F3 stats panel. Keep this window open while playing.'
|
||||
$env:VICTORY_GAME_DIR = $GameDir
|
||||
$ErrorActionPreference = 'Continue'
|
||||
# foxhound reads these but play-foxhound.ps1 does not set them: AnyXboxX's worker pools for 16/24+ logical CPUs
|
||||
# (measured on an RTX 4070 SUPER: heavy scenes +22-29 %) and Vice-Tay's placed order. GTA6_NO_TUNE=1: leave them out.
|
||||
$cpus = [Environment]::ProcessorCount
|
||||
$more = @{ VICTORY_PLACED_ORDER = '1' }
|
||||
if ($cpus -ge 24) { $more.VICTORY_THIN_THREADS = '12'; $more.VICTORY_UNDER_THREADS = '8'; $more.VICTORY_LAND_THREADS = '8' }
|
||||
elseif ($cpus -ge 16) { $more.VICTORY_THIN_THREADS = '12'; $more.VICTORY_UNDER_THREADS = '8'; $more.VICTORY_LAND_THREADS = '6' }
|
||||
# Extreme: the landing pool sat full at 8 (x6.1-6.6 of 8 in AnyXboxX's heavy scenes), one more pipeline worker.
|
||||
if (($Mode -in @('5', '6')) -and $cpus -ge 24) { $more.VICTORY_LAND_THREADS = '12'; $more.VICTORY_PIPELINE_WORKERS = '4' }
|
||||
if ($env:GTA6_NO_TUNE -eq '1') { $more = @{}; Write-Host 'GTA6_NO_TUNE=1: foxhound defaults (no pool or placed-order tuning).' }
|
||||
else { Write-Host ("Tuning for {0} logical CPUs: {1}" -f $cpus, (($more.GetEnumerator() | Sort-Object Name | ForEach-Object { "$($_.Name)=$($_.Value)" }) -join ' ')) }
|
||||
$opts.More = $more
|
||||
# RTX 50 cards do multi frame generation: 4x there (the layer asks the driver and gives no more than it does).
|
||||
# GTA6_FRAMEGEN_X=2..6 overrides. RTX 40 stays at 2x.
|
||||
$gpuName = (Get-CimInstance Win32_VideoController -ErrorAction SilentlyContinue | Where-Object { $_.Name -match 'NVIDIA' } | Select-Object -First 1).Name
|
||||
if ($opts.FrameGen) {
|
||||
if ($env:GTA6_FRAMEGEN_X -match '^[2-6]$') { $opts.FrameGenX = [int]$env:GTA6_FRAMEGEN_X }
|
||||
elseif ($gpuName -match 'RTX\s*50\d\d') { $opts.FrameGenX = 4 }
|
||||
$fgx = if ($opts.FrameGenX) { $opts.FrameGenX } else { 2 }
|
||||
Write-Host ('GPU: {0}; frame generation {1}x' -f $gpuName, $fgx)
|
||||
}
|
||||
if ($Mode -in @('5', '6')) {
|
||||
# Raise the game to High priority once it is up (the submitting thread is the limit).
|
||||
$null = Start-Job -ArgumentList $repo -ScriptBlock {
|
||||
param($r)
|
||||
$end = (Get-Date).AddMinutes(15)
|
||||
while ((Get-Date) -lt $end) {
|
||||
$p = Get-Process victory -ErrorAction SilentlyContinue | Where-Object { $_.Path -like "$r*" }
|
||||
if ($p) { $p | ForEach-Object { $_.PriorityClass = 'High' }; break }
|
||||
Start-Sleep -Seconds 2
|
||||
}
|
||||
}
|
||||
Write-Host 'Extreme: the game process goes to High priority once it starts.'
|
||||
}
|
||||
& (Join-Path $PSScriptRoot 'play-foxhound.ps1') -Exe $gameExe -Build release @opts
|
||||
Reference in new issue
Block a user