From b78c91f1275ce4e9fb1ae5492382c830b6b4673f Mon Sep 17 00:00:00 2001 From: theme613 <66501763+theme613@users.noreply.github.com> Date: Sat, 28 Nov 2026 23:11:13 +0800 Subject: [PATCH] docs: add dedicated troubleshooting guide and link it from README --- README.md | 16 ++++ docs/troubleshooting.md | 190 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 206 insertions(+) create mode 100644 docs/troubleshooting.md diff --git a/README.md b/README.md index 9f9357c..171d7d9 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ 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 a game file natively on Windows from files **you** supply. > **This repository contains no game files, code, or assets.** You must supply your own legally obtained game file (`.exe`). Not affiliated with or endorsed by any developer, publisher, NVIDIA, or AMD. See [docs/asset-policy.md](docs/asset-policy.md). +> +> **Having issues? (crashes, pagefile, flashing/lighting, low FPS, DLSS/FSR, build errors)** → Open the full **[Troubleshooting Guide (`docs/troubleshooting.md`)](docs/troubleshooting.md)**. --- @@ -178,6 +180,20 @@ All numbers below were measured on the same Windows 11 gaming laptop (**Intel Co --- +## Troubleshooting & Common Fixes + +For full step-by-step fixes, see the dedicated **[Troubleshooting Guide (`docs/troubleshooting.md`)](docs/troubleshooting.md)**: + +- **[16 GB RAM crashes / `E_OUTOFMEMORY` — Step-by-step 32–48 GB SSD pagefile guide](docs/troubleshooting.md#1-out-of-memory--crashes-on-16-gb-ram-3248-gb-ssd-pagefile-setup)** +- **[Wrong F1 settings / pitch-black indoors — How to reset `victory-settings.txt`](docs/troubleshooting.md#2-wrong-or-broken-f1-settings-how-to-reset)** +- **[Blinding sun, indoor flashing, white dots, blurry graphics, or missing heads](docs/troubleshooting.md#3-graphics--lighting-issues)** +- **[Low FPS, roaming VRAM stutters, input lag, & laptop thermal throttling](docs/troubleshooting.md#4-low-fps-stuttering-input-lag--laptop-thermal-throttling)** +- **[DLSS / AMD FSR 3 Frame Generation not working](docs/troubleshooting.md#5-dlss-or-fsr-3-frame-generation-not-working)** +- **[Build errors, `git pull` rebuild, Windows 10 DX12, & low C: space](docs/troubleshooting.md#6-build-git-pull-windows-10--launch-errors)** +- **[Shader preloading (`-Preload`) & pop-in in new areas](docs/troubleshooting.md#7-shader-preloading--pop-in-in-new-areas)** + +--- + ## Known Limitations - **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. diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md new file mode 100644 index 0000000..b2ff7be --- /dev/null +++ b/docs/troubleshooting.md @@ -0,0 +1,190 @@ +# Troubleshooting Guide (6 GB VRAM / 16 GB RAM & Windows) + +> Back to main setup guide: **[README.md](../README.md)** · Detailed memory notes: **[windows-memory.md](windows-memory.md)** · DLSS/FG details: **[dlss.md](dlss.md)** + +## Quick Jump + +- [1. Out of Memory / Crashes on 16 GB RAM (32–48 GB SSD Pagefile Setup)](#1-out-of-memory--crashes-on-16-gb-ram-3248-gb-ssd-pagefile-setup) +- [2. Wrong or Broken F1 Settings (How to Reset)](#2-wrong-or-broken-f1-settings-how-to-reset) +- [3. Graphics & Lighting Issues (Blinding Sun, Indoor Flashing, White Dots, Blurry Image, Missing Heads)](#3-graphics--lighting-issues) +- [4. Low FPS, Stuttering, Input Lag, & Laptop Thermal Throttling](#4-low-fps-stuttering-input-lag--laptop-thermal-throttling) +- [5. DLSS or FSR 3 Frame Generation Not Working](#5-dlss-or-fsr-3-frame-generation-not-working) +- [6. Build, Git Pull, Windows 10, & Launch Errors](#6-build-git-pull-windows-10--launch-errors) +- [7. Shader Preloading (`-Preload`) & Pop-In in New Areas](#7-shader-preloading--pop-in-in-new-areas) +- [8. Collecting Logs for Bug Reports](#8-collecting-logs-for-bug-reports) + +--- + +## 1. Out of Memory / Crashes on 16 GB RAM (32–48 GB SSD Pagefile Setup) + +Open-world texture and buffer streaming temporarily reserves more virtual commit than 16 GB of physical RAM. If Windows' pagefile is too small, the emulator will crash with `E_OUTOFMEMORY` or exit during loading. + +### Step-by-Step: Set a 32–48 GB Custom SSD Pagefile +1. Press **`Win + R`**, type **`sysdm.cpl`**, and press **Enter**. +2. Open the **Advanced** tab → under **Performance**, click **Settings…**. +3. Open the **Advanced** tab → under **Virtual memory**, click **Change…**. +4. Uncheck **Automatically manage paging file size for all drives**. +5. Select your fastest **SSD** (C: or D: with at least 60 GB free). +6. Select **Custom size**: + - **Initial size (MB):** `32768` *(32 GB)* + - **Maximum size (MB):** `49152` *(48 GB)* +7. Click **Set** → **OK** → **OK** → **Restart your PC**. + +### Verify It Worked +- Open **Task Manager** (`Ctrl + Shift + Esc`) → **Performance** → **Memory**. +- Check **Committed**: the right-hand limit should now show **48–64 GB** (16 GB RAM + 32–48 GB pagefile). +- Before launching, close heavy background apps (Chrome/Edge tabs, Discord, IDEs) to maximize free physical RAM. + +--- + +## 2. Wrong or Broken F1 Settings (How to Reset) + +Changes saved in the **F1** menu are written to `victory-settings.txt` and **override the launcher script on every future launch**. If you accidentally turned off lighting, broke resolution, or switched to blurry settings: + +- **In-game (easiest):** Press **`F1`**, scroll to **`RESET ALL TO PLAY DEFAULTS`**, and press **Enter**. *(Do NOT press `SAVE AND RESTART NOW` if you want to discard bad changes.)* +- **Outside the game:** Delete the saved settings file and relaunch: + ```powershell + Remove-Item "$env:LOCALAPPDATA\victory\victory-settings.txt" -ErrorAction SilentlyContinue + # If you set VICTORY_HOME (for example D:\victory): + Remove-Item "$env:VICTORY_HOME\victory-settings.txt" -ErrorAction SilentlyContinue + ``` + +--- + +## 3. Graphics & Lighting Issues + +### Pitch-black character / dark rooms indoors with glowing eyes +- **Cause:** `LIGHT ESTIMATE` (`VICTORY_AMBIENT`) and/or `REFLECTION ESTIMATE` (`VICTORY_AMBIENT_SPECULAR`) was saved as OFF in `victory-settings.txt`. +- **Fix:** Reset F1 settings to defaults (see [Section 2](#2-wrong-or-broken-f1-settings-how-to-reset)). `play-6gb.ps1` uses `VICTORY_AMBIENT=0.65` and `VICTORY_AMBIENT_SPECULAR=1`. + +### Sunlight looks blinding / overexposed +- **Cause:** `VICTORY_AMBIENT` set too high (`0.8`–`1.0`). +- **Fix:** Lower **`LIGHT ESTIMATE`** in F1 (or set `VICTORY_AMBIENT=0.65` / `0.55`). + +### Indoor rooms flashing / strobing bright and dark +- **Cause:** `VICTORY_AMBIENT_ONCE=1` can oscillate frame-to-frame indoors where there is little direct light. +- **Fix:** Do **not** set `VICTORY_AMBIENT_ONCE=1`. Use the default `play-6gb.ps1` settings (`VICTORY_AMBIENT=0.65`, `VICTORY_AMBIENT_ONCE` unset). + +### White dots / specular fireflies / violet tint +- **Cause:** Skipping screen-probe or reflection shaders via extra hashes in `VICTORY_LEAVE_OUT`. +- **Fix:** Only leave out the 2 safe passes (`VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298`), which is already default in `play-6gb.ps1`. If shiny surfaces still show bright speckles, toggle **`REFLECTION ESTIMATE`** in F1. + +### Image looks very blurry or textures look muddy +- **Cause:** Running `640x360` DLSS Ultra Performance (`-Dlss ultraperformance`) and/or Quarter textures (`-DropMips 2`). +- **Fix:** Use the sharp 1080p default (`960x540` DLSS Performance + Half textures): + ```powershell + powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Dlss performance -DropMips 1 + ``` + You can also change **`SERIES S PICTURE`** (`960X540` / `1113X626` / `1280X720`) and **`TEXTURE SCALE (VRAM)`** (`HALF (6GB GPU)`) in F1. + +### Missing character heads or disappearing geometry +- **Cause:** `VICTORY_THIN=1` (`THIN LISTS = 1` in F1) can drop geometry/heads on some builds and increases RAM usage on 16 GB PCs. +- **Fix:** Keep **`THIN LISTS`** set to **`0`** (`VICTORY_THIN=0`, default in `play-6gb.ps1`). + +### Dark/blocky patches on water +- **Cause:** `WATER LIGHT` turned off, or outdated shader cache from an older build. +- **Fix:** Keep **`WATER LIGHT: ON`** in F1 (`VICTORY_WATER_LIGHT=1`). + +--- + +## 4. Low FPS, Stuttering, Input Lag, & Laptop Thermal Throttling + +### Laptop FPS starts fine (~10–12 real / 20–24 FG) then drops after 15–20 minutes +- **Cause:** Thermal throttling — once a gaming laptop heatsink saturates at **85–86 °C**, CPU turbo clocks drop by 30–40%, directly lowering FPS. +- **Fix:** + - Always play plugged into **AC power**. + - Switch your OEM control app (Lenovo Vantage / Armoury Crate / NitroSense / OMEN) to **Performance Mode** (`Fn + Q`) with **Max / Performance fan curve**. + - Elevate the back of the laptop 1–2 cm (or use a cooling pad) so bottom intake vents breathe freely. + +### Low FPS on Intel 12th–14th Gen hybrid CPUs (P-cores + E-cores) +- **Cause:** Pinning worker threads exclusively to P-cores (`VICTORY_FAST_CORES=2`) starves the submission and recording threads on 4P+4E / 6P+4E CPUs. +- **Fix:** Keep **`VICTORY_FAST_CORES=0`** (already default in `play-6gb.ps1` — typically +13% to +16% real FPS on hybrid CPUs). + +### Stuttering while roaming on 6 GB VRAM GPUs +- **Cause:** VRAM exceeding your DXGI local budget (~5.0–5.2 GB on 6 GB cards), causing Windows (WDDM) to spill textures over PCIe into system RAM. +- **Fix:** + - Press **`F3`** to watch the `VRAM X.X / Y.Y GB` readout — keep usage comfortably below the budget (`4.2–4.8 GB`). + - Keep `DropMips=1` with `WINDOWS_BAR_MB=128–256` (default in `play-6gb.ps1`), or drop to `-DropMips 2` (`QUARTER` in F1) on 4 GB cards. + - Ensure `VICTORY_SLOT_EVICT_PERCENT` (`92`) stays strictly higher than `VICTORY_TEXTURE_ROOM_PERCENT` (`82–85`) so eviction doesn't thrash every second. + +### Sluggish controls / input lag with Frame Generation ON +- **Cause:** Frame Generation adds ~1 frame of presentation latency (noticeable when base real FPS is ~10 fps). +- **Fix:** Launch with **`-NoFrameGen`** or set **`FRAME GENERATION: OFF`** in F1 for lowest input latency: + ```powershell + powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -NoFrameGen + ``` + +--- + +## 5. DLSS or FSR 3 Frame Generation Not Working + +- **Missing DLLs:** Make sure you ran the one-time download scripts from inside the repository folder: + ```powershell + .\Get-NVIDIA-DLSS.cmd + .\Get-AMD-FSR.cmd + ``` +- **Window not focused:** Both DLSS FG and FSR 3 FG only generate interpolated frames while the game window is the active focused window. +- **RTX 20 / 30 or AMD / Intel GPU:** Use **AMD FSR 3 (`-FgType fsr`, default in `play-6gb.ps1`)** for 2X Frame Generation. Native DLSS Frame Generation (`-FgType dlss`) requires **RTX 40 / 50** plus **Hardware-Accelerated GPU Scheduling (HAGS)** enabled in *Windows Settings → System → Display → Graphics → Default graphics settings*. +- **Do not enable `MFG UNLOCKER` on RTX 20/30:** Multi-Frame Generation unlocker only applies to RTX 40/50 DLSS FG. + +--- + +## 6. Build, Git Pull, Windows 10, & Launch Errors + +### PowerShell says "running scripts is disabled on this system" +Always launch with `-ExecutionPolicy Bypass`: +```powershell +powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' +``` + +### `cargo build` fails with `linker 'link.exe' not found` or missing Windows SDK +1. Open **Visual Studio Installer** → **Modify** Visual Studio Build Tools. +2. Check **"Desktop development with C++"** (ensure **MSVC v143 build tools** and **Windows 10/11 SDK** are checked on the right). +3. Install, close PowerShell, open a **new** PowerShell window, and retry. + +### Ran `git pull`, but nothing changed in-game +`scripts\play-6gb.ps1` only builds automatically when `target\release\victory.exe` does not exist yet. After pulling new code, always rebuild: +```powershell +git pull origin main +cargo build --release --locked -j 4 -p victory +``` + +### Windows 10 DX12 / Shader Model 6.6 error on startup +Run the Agility SDK helper script once and update your GPU driver: +```powershell +powershell -ExecutionPolicy Bypass -File scripts\get-d3d12.ps1 +``` + +### C: drive running out of disk space (shader cache / saves) +Move caches, saves, settings, and logs to another drive (e.g. `D:\victory`) once, then open a new PowerShell window: +```powershell +setx VICTORY_HOME D:\victory +``` + +### "Game file (.exe) not found" +Wrap paths containing spaces in single quotes: +```powershell +powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\My Folder\your.exe' +``` + +--- + +## 7. Shader Preloading (`-Preload`) & Pop-In in New Areas + +- Every shader translated during gameplay is automatically cached on disk (`%LOCALAPPDATA%\victory\cache\shaders` or `$env:VICTORY_HOME\cache\shaders`), so areas you have already visited load cleanly on future runs. +- When entering **brand-new areas** for the first time, new shaders compile in the background (capped at 50 ms/frame by `VICTORY_PIPELINE_WAIT_MS=50` to avoid 500 ms freezes, which can briefly cause objects to pop in). +- To translate all shaders ahead of time once (~10–20 minutes on a laptop CPU, eliminates new-area pop-in; does not change steady FPS in already-cached areas): + ```powershell + powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -Preload + ``` + Or select **`PRELOAD SHADERS (RESTARTS THE GAME)`** in the F1 menu. + +--- + +## 8. Collecting Logs for Bug Reports + +If you hit a crash, freeze, or graphical bug, capture a log with `-LogFile` and share the last ~100 lines along with your CPU, GPU, RAM, Windows version, and a screenshot of the **`F3`** stats panel: + +```powershell +powershell -ExecutionPolicy Bypass -File scripts\play-6gb.ps1 -Exe 'D:\path\to\your.exe' -LogFile D:\victory.log +```