Optimising VIctory on the worst case (6 GB laptop GPU + 5400 rpm HDD): public REA repo with findings, scores and reproducible builds #3816

Open
opened 2026-11-29 02:49:14 +00:00 by lucaseddd · 2 comments
lucaseddd commented 2026-11-29 02:49:14 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-29T02:49:14Z.


I've been running a coordinated reverse-engineering and A/B testing workflow (REA) for VIctory on a low-end machine, and all of it is public in lucaseddd/victory-rea. This post explains what it is, where it stands, and how to reproduce my builds. If you work on low-VRAM or HDD setups, the findings and scripts may save you time.

Please read this first: this is the worst case

  • GPU: RTX 3060 Laptop, 6 GB. Windows gives the game a D3D12 budget of only about 5.0–5.2 GB.
  • Storage: the game package sits on a 5400 rpm HDD. Only the shader and pipeline caches are on an SSD.
  • CPU and RAM: Ryzen 7 5700X (8C/16T), 32 GB RAM, Windows 10 22H2.

A better GPU with more VRAM will certainly run at a higher frame rate and with better graphics than anything here. So will an SSD for the package. My numbers are a floor, not a ceiling. The goal is to see how far careful optimisation can push the weakest realistic setup.

How the work is done

  • REA tasks on GitHub. Each optimisation question is a long task issue: CPU preparation, copy-back, VRAM budget, DirectStorage on HDD, shader coverage, engine knobs and so on.
    • AI investigators (Claude, GPT, Gemini) claim a task, read the VIctory source and forks, the logs and the docs, and record every finding with an evidence tag ([observed], [reported], [estimated]) and the best fix.
    • One PR per attempt, merged into main.
    • The protocol is AI-SESSION.md.
  • Log analysis and a session score. Every launch is scored 0–100 from the runtime's own log: performance 60 (median and p10 fps against 30), stability 25, loading 15. Each build is archived by hash with its configuration.
  • Visual feedback. Every test is checked by eye: hair, skin, floors, walls, lights, shadows. Fps that comes from a broken image does not count.
  • Build rounds. The findings are merged into one exe. Test 1 runs everything; Tests 2 and 3 each remove a different suspect group; then a verdict from the visual check and the statistics.

Where it stands (29 Nov 2026)

Build Median / p10 fps (world) Notes
R27 "T2" (VI-BR-PORT 2954325 + profile) 9.6 / 8.2 best image, about 500 MB of VRAM free
Build round 1, Test 1 10.2 / 9.3 correct image; host preparation 106 → 82 ms, copy-back 56 → 39 ms; loading and input lag still being separated in Tests 2–3
VIctory-Hydra Stage 14 with 6 GB overrides 17.3 / 12.2 fastest, but no hair and the VRAM at its limit (report)

Some findings that may help others:

  • On 6 GB, VIctory-Hydra's "textures past the budget" is a render-target reserve that runs away. It grows 256 MB per second and is never given back, up to 3 GB (R32 report). Pinning VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536 avoids it.
  • The engine knob VICTORY_LOW_VOLUMETRIC=1 turns floors and walls black indoors on R27-based builds, and blows out lights, because it shrinks the reflection cubemap. VICTORY_LOD_SCALE=0.35, VICTORY_SMALL_CULL=2.5, VICTORY_VEHICLE_LOD_BIAS=0.5 and VICTORY_LOW_SHADOWS=1024 are clean (R29).
  • Reporting a 4:3 display mode (VICTORY_DISPLAY_MODE=1024x768) gave black walls. Use VICTORY_WINDOW_MAX for a small window instead.
  • On a 5400 rpm HDD, 16 unordered DirectStorage workers seek-thrash. Sorted reads with 3 workers were up to 4x faster in an offline replay (R33). In-game confirmation is in progress.
  • A 720p output saved only about 300 MB and looked much worse, so it is not a VRAM fix on 6 GB (#3810).
  • Closing GPU apps (a miner, a browser) while the game sits at the VRAM limit reset the driver twice. Close them before launching.

How to reproduce my build

Everything is text: diffs, launchers and reports. No game files.

  1. Base: VI-BR-PORT at 2954325.
  2. Apply the changes listed in Build round 1:
    • VIctory-Hydra's engine.rs;
    • the R31 root-constant cache (diff);
    • the R33 DirectStorage change (diff);
    • R32 and R20, which are inert under the T2 switches but harmless.
  3. Build with MSVC 2022 and cargo +1.98.1 rustc --release --features diagnostics -p victory --bin victory -- -C link-arg=/EXPORT:D3D12SDKPath,DATA -C link-arg=/EXPORT:D3D12SDKVersion,DATA.
  4. Launch with the switches in Run-Round.ps1, plus the T2 profile:
    • VICTORY_TEXTURE_POOL=0;
    • VICTORY_LATE_WAIT_LISTS=256;
    • VICTORY_TEXTURE_ROOM_PERCENT=90;
    • VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536;
    • VICTORY_LEVELS_ON_DEMAND=1;
    • VICTORY_MEMORY_CARD_MB=512;
    • VICTORY_UPSCALER=6;
    • --console series-s.

The current state of the machine, the working switches and every negative result are in docs/state-of-play.md.

Feedback welcome

If you have a similar card or an HDD install, I'd love to compare numbers. If you see a finding that contradicts your own measurements, or a change in main or a fork that I should test next, please reply here or open an issue in the REA repo. The VRAM-specific discussion continues in #3810.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6674069821 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3816). Originally posted by [lucaseddd](https://github.com/lucaseddd) on 2026-11-29T02:49:14Z. --- I've been running a coordinated **reverse-engineering and A/B testing workflow (REA)** for VIctory on a low-end machine, and all of it is public in **[lucaseddd/victory-rea](https://github.com/lucaseddd/victory-rea)**. This post explains what it is, where it stands, and how to reproduce my builds. If you work on low-VRAM or HDD setups, the findings and scripts may save you time. ## Please read this first: this is the worst case - **GPU:** RTX 3060 **Laptop, 6 GB**. Windows gives the game a D3D12 budget of only about **5.0–5.2 GB**. - **Storage:** the game package sits on a **5400 rpm HDD**. Only the shader and pipeline caches are on an SSD. - **CPU and RAM:** Ryzen 7 5700X (8C/16T), 32 GB RAM, Windows 10 22H2. **A better GPU with more VRAM will certainly run at a higher frame rate and with better graphics than anything here.** So will an SSD for the package. My numbers are a floor, not a ceiling. The goal is to see how far careful optimisation can push the weakest realistic setup. ## How the work is done - **REA tasks on GitHub.** Each optimisation question is a long task issue: CPU preparation, copy-back, VRAM budget, DirectStorage on HDD, shader coverage, engine knobs and so on. - AI investigators (Claude, GPT, Gemini) claim a task, read the VIctory source and forks, the logs and the docs, and record every finding with an evidence tag (`[observed]`, `[reported]`, `[estimated]`) and the best fix. - One PR per attempt, merged into `main`. - The protocol is [AI-SESSION.md](https://github.com/lucaseddd/victory-rea/blob/main/AI-SESSION.md). - **Log analysis and a session score.** Every launch is scored 0–100 from the runtime's own log: performance 60 (median and p10 fps against 30), stability 25, loading 15. Each build is archived by hash with its configuration. - **Visual feedback.** Every test is checked by eye: hair, skin, floors, walls, lights, shadows. Fps that comes from a broken image does not count. - **Build rounds.** The findings are merged into one exe. Test 1 runs everything; Tests 2 and 3 each remove a different suspect group; then a verdict from the visual check and the statistics. ## Where it stands (29 Nov 2026) | Build | Median / p10 fps (world) | Notes | |---|---|---| | R27 "T2" (VI-BR-PORT `2954325` + profile) | 9.6 / 8.2 | best image, about 500 MB of VRAM free | | **Build round 1, Test 1** | **10.2 / 9.3** | correct image; host preparation 106 → 82 ms, copy-back 56 → 39 ms; loading and input lag still being separated in Tests 2–3 | | VIctory-Hydra Stage 14 with 6 GB overrides | 17.3 / 12.2 | fastest, but no hair and the VRAM at its limit ([report](https://github.com/lucaseddd/victory-rea/blob/main/attempts/Hydra/Hydra-Stage14-01/report.md)) | Some findings that may help others: - **On 6 GB, VIctory-Hydra's "textures past the budget" is a render-target reserve that runs away.** It grows 256 MB per second and is never given back, up to 3 GB ([R32 report](https://github.com/lucaseddd/victory-rea/blob/main/attempts/R32/R32-ClaudeOpus55-01/report.md)). Pinning `VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536` avoids it. - **The engine knob `VICTORY_LOW_VOLUMETRIC=1` turns floors and walls black indoors on R27-based builds**, and blows out lights, because it shrinks the reflection cubemap. `VICTORY_LOD_SCALE=0.35`, `VICTORY_SMALL_CULL=2.5`, `VICTORY_VEHICLE_LOD_BIAS=0.5` and `VICTORY_LOW_SHADOWS=1024` are clean ([R29](https://github.com/lucaseddd/victory-rea/blob/main/attempts/R29/R29-Gemini4Hydrogen-01/report.md)). - **Reporting a 4:3 display mode** (`VICTORY_DISPLAY_MODE=1024x768`) **gave black walls**. Use `VICTORY_WINDOW_MAX` for a small window instead. - **On a 5400 rpm HDD, 16 unordered DirectStorage workers seek-thrash.** Sorted reads with 3 workers were up to 4x faster in an offline replay ([R33](https://github.com/lucaseddd/victory-rea/blob/main/attempts/R33/R33-Gemini4Hydrogen-01/report.md)). In-game confirmation is in progress. - **A 720p output saved only about 300 MB** and looked much worse, so it is not a VRAM fix on 6 GB (#3810). - **Closing GPU apps (a miner, a browser) while the game sits at the VRAM limit reset the driver twice.** Close them before launching. ## How to reproduce my build Everything is text: diffs, launchers and reports. No game files. 1. Base: [VI-BR-PORT](https://github.com/edsuuu/VI-BR-PORT) at `2954325`. 2. Apply the changes listed in [Build round 1](https://github.com/lucaseddd/victory-rea/blob/main/attempts/Builds/Round-01/report.md): - VIctory-Hydra's `engine.rs`; - the R31 root-constant cache ([diff](https://github.com/lucaseddd/victory-rea/blob/main/attempts/R31/R31-GPT62Sol-01/source-change.md)); - the R33 DirectStorage change ([diff](https://github.com/lucaseddd/victory-rea/blob/main/attempts/R33/R33-Gemini4Hydrogen-01/source-change.md)); - R32 and R20, which are inert under the T2 switches but harmless. 3. Build with MSVC 2022 and `cargo +1.98.1 rustc --release --features diagnostics -p victory --bin victory -- -C link-arg=/EXPORT:D3D12SDKPath,DATA -C link-arg=/EXPORT:D3D12SDKVersion,DATA`. 4. Launch with the switches in [Run-Round.ps1](https://github.com/lucaseddd/victory-rea/blob/main/attempts/Builds/Round-01/Run-Round.ps1), plus the T2 profile: - `VICTORY_TEXTURE_POOL=0`; - `VICTORY_LATE_WAIT_LISTS=256`; - `VICTORY_TEXTURE_ROOM_PERCENT=90`; - `VICTORY_CARD_ROOM_FOR_TARGETS_MB=1536`; - `VICTORY_LEVELS_ON_DEMAND=1`; - `VICTORY_MEMORY_CARD_MB=512`; - `VICTORY_UPSCALER=6`; - `--console series-s`. The current state of the machine, the working switches and every negative result are in [docs/state-of-play.md](https://github.com/lucaseddd/victory-rea/blob/main/docs/state-of-play.md). ## Feedback welcome If you have a similar card or an HDD install, I'd love to compare numbers. If you see a finding that contradicts your own measurements, or a change in `main` or a fork that I should test next, please reply here or open an issue in the REA repo. The VRAM-specific discussion continues in #3810.
lucaseddd commented 2026-11-29 04:22:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-29T04:22:48Z.


Keymap data for anyone who wants the same layout in their own build: https://github.com/lucaseddd/xbox-to-pc-keys (GPL-3.0). It is the table our R27 build uses with VICTORY_KBM_GTA=1; the icon artwork is not included.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7250616898 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3816#issuecomment-7250616898). Originally posted by [lucaseddd](https://github.com/lucaseddd) on 2026-11-29T04:22:48Z. --- Keymap data for anyone who wants the same layout in their own build: https://github.com/lucaseddd/xbox-to-pc-keys (GPL-3.0). It is the table our R27 build uses with VICTORY_KBM_GTA=1; the icon artwork is not included.
lucaseddd commented 2026-11-29 06:11:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by lucaseddd on 2026-11-29T06:11:24Z.


Build round 2 on the worst case (RTX 3060 Laptop 6 GB, Ryzen 7 5700X, 32 GB, game on a 5400 rpm HDD). Base: VI-BR-PORT 2954325 plus our R27 changes. One exe for all three tests; each group is behind switches.

Round 1 daily Round 2, best test
Median / p10 fps (world, ≥1,000 draws) 10.3 / 3.2 10.4 / 9.0
Host preparation / copy-back 79 / 42 ms 78 / 39 ms
Time to the world from the HDD 483 s 434 s

Findings that may help others:

  • Scene-cut history reset on an ambient stand-in can turn walls and floors black.
    • We tested a cut reset (adapted from VI-BR-PORT 370700b6). It made the room's log-luminance snap to the current frame, which is exactly 0 in a dark interior.
    • The key gain then pinned at its 6.0 cap in about half of the samples.
    • Walls and floors went black in both runs with it on, and came back with it off.
  • Putting the static-sampler order into pipeline-library names is not cheap.
    • Doing this only for pipelines with static samplers still re-keyed more than half of a 521 MB library: 2,067 made against 1,725 loaded.
    • With 600–1,000 pipelines queued for the whole session, draws were dropped. Treat it as a cold-cache change.
  • Placed-view key normalization (VI-BR-PORT f46218d5 + 5c7e7a18, from project-flamingo #620) applied cleanly. An exhaustive test confirms every meaningful SRV/UAV word stays distinct.
  • s_min/s_max SCC: the same defect fixed in VIctory-NVIDIA 532127a7 (after Vice-Tay 3c83a339) is present in VI-BR-PORT 2954325. Upstream main already has the fix (lower.rs, the s_min/s_max arm returns the comparison as SCC); forks pinned before it should pick it up.

Links:

<!-- greyfinch-sync:Marvisak/VIctory:comment:7251702460 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3816#issuecomment-7251702460). Originally posted by [lucaseddd](https://github.com/lucaseddd) on 2026-11-29T06:11:24Z. --- **Build round 2 on the worst case** (RTX 3060 Laptop 6 GB, Ryzen 7 5700X, 32 GB, game on a 5400 rpm HDD). Base: VI-BR-PORT `2954325` plus our R27 changes. One exe for all three tests; each group is behind switches. | | Round 1 daily | Round 2, best test | |---|---|---| | Median / p10 fps (world, ≥1,000 draws) | 10.3 / 3.2 | **10.4 / 9.0** | | Host preparation / copy-back | 79 / 42 ms | **78 / 39 ms** | | Time to the world from the HDD | 483 s | **434 s** | Findings that may help others: - **Scene-cut history reset on an ambient stand-in can turn walls and floors black.** - We tested a cut reset (adapted from VI-BR-PORT `370700b6`). It made the room's log-luminance snap to the current frame, which is exactly 0 in a dark interior. - The key gain then pinned at its 6.0 cap in about half of the samples. - Walls and floors went black in both runs with it on, and came back with it off. - **Putting the static-sampler order into pipeline-library names is not cheap.** - Doing this only for pipelines with static samplers still re-keyed more than half of a 521 MB library: 2,067 made against 1,725 loaded. - With 600–1,000 pipelines queued for the whole session, draws were dropped. Treat it as a cold-cache change. - **Placed-view key normalization** (VI-BR-PORT `f46218d5` + `5c7e7a18`, from project-flamingo #620) applied cleanly. An exhaustive test confirms every meaningful SRV/UAV word stays distinct. - **`s_min`/`s_max` SCC:** the same defect fixed in VIctory-NVIDIA `532127a7` (after Vice-Tay `3c83a339`) is present in VI-BR-PORT `2954325`. Upstream main already has the fix (`lower.rs`, the `s_min`/`s_max` arm returns the comparison as SCC); forks pinned before it should pick it up. Links: - Report, with every number and the verdict: https://github.com/lucaseddd/victory-rea/pull/70 - Player-facing guide, 6 GB profile and the exact source (`source` branch): https://github.com/lucaseddd/Victory-Plus - Keyboard/mouse layout: https://github.com/lucaseddd/xbox-to-pc-keys
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory#3816
No description provided.