victory run silently skips the ~40 play defaults — applying them doubles FPS (11→24 on RTX 5080) #4960

Open
opened 2026-12-01 15:30:43 +00:00 by github-bot · 5 comments
Owner

@⁠sdelectron on GitHub · 2026-12-01 15:30 UTC · original

Summary

victory run does not apply the environment-variable defaults in apps/victory/src/play.rs (SETTINGS), while victory play does. Anyone launching the game with victory run directly (for example from a batch file or scheduled task) silently misses ~40 optimizations, including the memory stack, pass culling, and submission-overlap switches — and gets roughly half the frame rate.

Measured impact (RTX 5080, Ryzen 9800X3D, 32 GB RAM, v2026.11.30.03, same open-world area, DLSS Quality, frame gen OFF, VICTORY_FRAME_INTERVAL_MS=16.667, VICTORY_HOST_WAVE=32)

Config FPS (window title) ms/frame draws/frame
Direct victory run, no play defaults 11–13 76–91 5,205–6,055
Same + all play.rs SETTINGS (and VICTORY_WC_NO_BACK_MIN_KB=1024) 23.5–24.4 41–42.5 1,483 (light) / 7,079 (busy)

Frame time roughly halved and FPS roughly doubled. The improvement held in a heavier scene (7,079 draws) than the baseline's (5,205–6,055 draws).

Attribution note: the "with defaults" run also changed VICTORY_WC_NO_BACK_MIN_KB 65536 → 1024 (the play default) and was the second launch under VICTORY_HOST_WAVE=32, so no single variable can be credited in isolation. But the defaults are the project's own recommended settings, and the magnitude is large.

Key defaults missed by direct victory run

From apps/victory/src/play.rs SETTINGS (commit e1251c31):

  • Memory stack: VICTORY_SLOT_EVICT=1, VICTORY_ALLOCATOR_TRIM=1, VICTORY_BUDGET_PACK=1
  • Pass culling: VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298 (skips heat-haze + face-relocation passes)
  • Submission overlap: VICTORY_JOIN_PARTS=8, VICTORY_RELAY=2, VICTORY_CARD_STEPS=2, VICTORY_UPLOAD_AHEAD=1, VICTORY_SHOW_AFTER=1, VICTORY_TEXTURE_NO_WAIT=1
  • VICTORY_CARD_ALL=1, VICTORY_UAV_FOLD=1, VICTORY_WAIT_SHARE=1, VICTORY_QUIET_WAITS=1
  • VICTORY_WC_NO_BACK_MIN_KB=1024 (play default; a direct batch I used had 65536)
  • Plus texture-pool, heap-sync, and other SETTINGS entries.

victory play clears all VICTORY_* variables except a short KEPT list before applying SETTINGS. VICTORY_FRAME_INTERVAL_MS and VICTORY_HOST_WAVE are not in KEPT, so a user who sets the frame-interval cap lift (or the NVIDIA wave size) and then launches via victory play has those settings silently wiped.

Suggestion

Either victory run should apply the same SETTINGS defaults as victory play (or at least warn when run without them), or the gap should be documented prominently so direct-run users know to copy the SETTINGS table. Separately, adding VICTORY_FRAME_INTERVAL_MS and VICTORY_HOST_WAVE to the KEPT list would stop victory play from wiping them.

Happy to open a PR for either the KEPT fix or docs if that's the preferred direction.

**@⁠sdelectron** on GitHub · 2026-12-01 15:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4959) ## Summary `victory run` does not apply the environment-variable defaults in `apps/victory/src/play.rs` (`SETTINGS`), while `victory play` does. Anyone launching the game with `victory run` directly (for example from a batch file or scheduled task) silently misses ~40 optimizations, including the memory stack, pass culling, and submission-overlap switches — and gets roughly half the frame rate. ## Measured impact (RTX 5080, Ryzen 9800X3D, 32 GB RAM, v2026.11.30.03, same open-world area, DLSS Quality, frame gen OFF, `VICTORY_FRAME_INTERVAL_MS=16.667`, `VICTORY_HOST_WAVE=32`) | Config | FPS (window title) | ms/frame | draws/frame | |---|---|---|---| | Direct `victory run`, no play defaults | 11–13 | 76–91 | 5,205–6,055 | | Same + all play.rs `SETTINGS` (and `VICTORY_WC_NO_BACK_MIN_KB=1024`) | 23.5–24.4 | 41–42.5 | 1,483 (light) / 7,079 (busy) | Frame time roughly halved and FPS roughly doubled. The improvement held in a heavier scene (7,079 draws) than the baseline's (5,205–6,055 draws). Attribution note: the "with defaults" run also changed `VICTORY_WC_NO_BACK_MIN_KB` 65536 → 1024 (the play default) and was the second launch under `VICTORY_HOST_WAVE=32`, so no single variable can be credited in isolation. But the defaults are the project's own recommended settings, and the magnitude is large. ## Key defaults missed by direct `victory run` From `apps/victory/src/play.rs` `SETTINGS` (commit e1251c31): - Memory stack: `VICTORY_SLOT_EVICT=1`, `VICTORY_ALLOCATOR_TRIM=1`, `VICTORY_BUDGET_PACK=1` - Pass culling: `VICTORY_LEAVE_OUT=02384a60fda6f2d0,731a39171b568298` (skips heat-haze + face-relocation passes) - Submission overlap: `VICTORY_JOIN_PARTS=8`, `VICTORY_RELAY=2`, `VICTORY_CARD_STEPS=2`, `VICTORY_UPLOAD_AHEAD=1`, `VICTORY_SHOW_AFTER=1`, `VICTORY_TEXTURE_NO_WAIT=1` - `VICTORY_CARD_ALL=1`, `VICTORY_UAV_FOLD=1`, `VICTORY_WAIT_SHARE=1`, `VICTORY_QUIET_WAITS=1` - `VICTORY_WC_NO_BACK_MIN_KB=1024` (play default; a direct batch I used had 65536) - Plus texture-pool, heap-sync, and other `SETTINGS` entries. ## Related footgun `victory play` clears all `VICTORY_*` variables except a short `KEPT` list before applying `SETTINGS`. `VICTORY_FRAME_INTERVAL_MS` and `VICTORY_HOST_WAVE` are not in `KEPT`, so a user who sets the frame-interval cap lift (or the NVIDIA wave size) and then launches via `victory play` has those settings silently wiped. ## Suggestion Either `victory run` should apply the same `SETTINGS` defaults as `victory play` (or at least warn when run without them), or the gap should be documented prominently so direct-run users know to copy the `SETTINGS` table. Separately, adding `VICTORY_FRAME_INTERVAL_MS` and `VICTORY_HOST_WAVE` to the `KEPT` list would stop `victory play` from wiping them. Happy to open a PR for either the `KEPT` fix or docs if that's the preferred direction.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 15:30:43 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-12-01 15:30 UTC · original

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.

  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 you have and which Windows version (10 or 11).

If this issue needs logs and none are posted here within 12 hours, it will be closed. Add them by editing your post or in a comment.

**@⁠github-actions[bot]** on GitHub · 2026-12-01 15:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4959#issuecomment-7316027150) 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. 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 you have and which Windows version (10 or 11). **If this issue needs logs and none are posted here within 12 hours, it will be closed.** Add them by editing your post or in a comment.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 15:35 UTC · original

Thanks for the side-by-side report. I checked the v2026.11.30.03 tag and current main. Direct run skips the setup that applies play defaults. The bundled PowerShell launcher already supplies some of its own defaults before invoking run --execute, so I’d document the distinction before changing what bare run does. PowerShell launcher defaults

For your batch file, you can already use the play defaults and keep both explicit overrides by appending --set VICTORY_HOST_WAVE=32 --set VICTORY_FRAME_INTERVAL_MS=16.667 to your play command. In both revisions, play applies these explicit settings after the saved menu settings. Override order in the release

If you take the docs PR, spelling out those two paths and showing the repeatable --set flag would cover the batch-file case without changing existing scripts.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 15:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4959#issuecomment-7316177427) Thanks for the side-by-side report. I checked the v2026.11.30.03 tag and current main. Direct `run` skips the setup that applies `play` defaults. The bundled PowerShell launcher already supplies some of its own defaults before invoking `run --execute`, so I’d document the distinction before changing what bare `run` does. [PowerShell launcher defaults](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/5fabb46eaf6ed8771321787f8871051abde69b9b/scripts/play-nvidia.ps1#L160-L173) For your batch file, you can already use the `play` defaults and keep both explicit overrides by appending `--set VICTORY_HOST_WAVE=32 --set VICTORY_FRAME_INTERVAL_MS=16.667` to your `play` command. In both revisions, `play` applies these explicit settings after the saved menu settings. [Override order in the release](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/v2026.11.30.03/apps/victory/src/play.rs#L648-L663) If you take the docs PR, spelling out those two paths and showing the repeatable `--set` flag would cover the batch-file case without changing existing scripts.
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-12-01 15:36 UTC · original

One thing to watch if victory run starts applying play.rs's SETTINGS: the two launchers don't agree on the texture memory switches today, so whichever list wins changes memory use on 8 GB cards.

On main at 5fabb46ea:

Switch victory play (apps/victory/src/play.rs, SETTINGS) scripts/play-nvidia.ps1 (launches victory run)
VICTORY_POOL_SMALL 0 ("Off again (2026-11-28): with it on, trees flashed in and out in play") 1 (comment: 1.52 GB instead of 2.24 on an RTX 5070 Ti; about 10 to 13 fps and ~800 MB less on an RTX 2060, Series S)
VICTORY_LEVELS_ON_DEMAND 0 auto
VICTORY_TEXTURE_CATCHUP 1 0
VICTORY_TEXTURE_STAGE_MS 24 32

What we measured, posted in #4463 (#4463): RTX 2070 SUPER 8 GB, driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB, Windows 11, Series S, DLSS Performance, FSR 3 frame generation, GPU clocks unlocked, our fork's diag build. One session each, a memory measurement only (no fps comparison):

  • With the memory switches set back to the script's (POOL_SMALL=1), cold textures of 64 KiB or less took 59-91 MB. In our earlier session with POOL_SMALL=0, they took 0.9-1.4 GB (median 1.2 GB). Other memory switches also differed between the two sessions, so this is not a one-switch comparison.
  • None of 48 of our logs with POOL_SMALL=1 (2026-11-28 to 12-01, our fork's builds, other switches varying) shows a device loss. That shows no cause either way. We did not look for the tree flashing that play.rs gives as the reason for 0.

So if the two lists are merged, it may be worth choosing POOL_SMALL and LEVELS_ON_DEMAND on purpose rather than by which list wins. Not tested: any GPU other than ours, AMD, Series X, frame generation off.

Drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-12-01 15:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4959#issuecomment-7316189257) One thing to watch if `victory run` starts applying `play.rs`'s `SETTINGS`: the two launchers don't agree on the texture memory switches today, so whichever list wins changes memory use on 8 GB cards. On `main` at `5fabb46ea`: | Switch | `victory play` (`apps/victory/src/play.rs`, `SETTINGS`) | `scripts/play-nvidia.ps1` (launches `victory run`) | |---|---|---| | `VICTORY_POOL_SMALL` | `0` ("Off again (2026-11-28): with it on, trees flashed in and out in play") | `1` (comment: 1.52 GB instead of 2.24 on an RTX 5070 Ti; about 10 to 13 fps and ~800 MB less on an RTX 2060, Series S) | | `VICTORY_LEVELS_ON_DEMAND` | `0` | `auto` | | `VICTORY_TEXTURE_CATCHUP` | `1` | `0` | | `VICTORY_TEXTURE_STAGE_MS` | `24` | `32` | What we measured, posted in #4463 (https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4463): RTX 2070 SUPER 8 GB, driver 621.40, ReBAR off, Ryzen 7 5800X, 32 GB, Windows 11, Series S, DLSS Performance, FSR 3 frame generation, GPU clocks unlocked, our fork's diag build. One session each, a memory measurement only (no fps comparison): - With the memory switches set back to the script's (`POOL_SMALL=1`), cold textures of 64 KiB or less took 59-91 MB. In our earlier session with `POOL_SMALL=0`, they took 0.9-1.4 GB (median 1.2 GB). Other memory switches also differed between the two sessions, so this is not a one-switch comparison. - None of 48 of our logs with `POOL_SMALL=1` (2026-11-28 to 12-01, our fork's builds, other switches varying) shows a device loss. That shows no cause either way. We did not look for the tree flashing that `play.rs` gives as the reason for `0`. So if the two lists are merged, it may be worth choosing `POOL_SMALL` and `LEVELS_ON_DEMAND` on purpose rather than by which list wins. Not tested: any GPU other than ours, AMD, Series X, frame generation off. Drafted with AI assistance (Claude Code).
Author
Owner

@⁠7hostt-bit on GitHub · 2026-12-01 16:18 UTC · original

And what happens if I run exe? Do I have this optimizations?

**@⁠7hostt-bit** on GitHub · 2026-12-01 16:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4959#issuecomment-7317387068) And what happens if I run exe? Do I have this optimizations?
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 16:24 UTC · original

Yes. On Windows, double-clicking victory.exe or running it with no arguments starts play, which applies the launcher defaults. This report is about explicitly running victory.exe run …. The switches: line at the top of a play log lists the settings actually applied, including saved F1 overrides. Double-click path · Play log header

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 16:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4959#issuecomment-7317544341) Yes. On Windows, double-clicking `victory.exe` or running it with no arguments starts `play`, which applies the launcher defaults. This report is about explicitly running `victory.exe run …`. The `switches:` line at the top of a play log lists the settings actually applied, including saved F1 overrides. [Double-click path](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/v2026.11.30.03/apps/victory/src/main.rs#L612-L623) · [Play log header](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/v2026.11.30.03/apps/victory/src/play.rs#L1475-L1489)
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#4960
No description provided.