Launcher: real game speed above 30 FPS (the title told its rate), 12 pipeline makers at normal priority #65

Merged
wasonidas merged 4 commits from upstream-pr/65 into main 2026-11-28 19:01:28 +00:00
wasonidas commented 2026-11-27 15:39:11 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wasonidas on 2026-11-27T15:39:11Z.


Launcher only (scripts/play-foxhound.ps1); two commits.

Problem

  1. The game runs fast above 30 FPS. The launcher sets only our frame clock (VICTORY_FRAME_INTERVAL_US, 1000 by default: no cap). The title's simulation still steps clamp(dt, 1/sim_rate, 1/15 s) with its own rate left at 30, so every frame shorter than 33.3 ms moves game time 33.3 ms: at N rendered frames a second the game runs N/30 times too fast.
  2. Stalls in the intro cutscene. Pipelines the library cannot hold (those with static samplers, some 1,360 on this profile) are made again at every start. With the makers at lowest priority and the slow limit they are still being made 170 s in, under the cutscene.

Change

  • -Fps now sets VICTORY_FRAME_INTERVAL_MS, which also patches the title's own rate. Without a cap (the default) the launcher sets VICTORY_FRAME_INTERVAL_MS=0 and VICTORY_TITLE_FPS=59: the title is told 59 rather than its own "no limit", which halves a per-frame scale of its own and shows its scripts 1000 FPS. -FixedStep keeps our clock alone, as before.
  • VICTORY_PIPELINE_LOWEST=0, VICTORY_PIPELINE_WORKERS=12, VICTORY_PIPELINE_SLOW=0: 12 makers at normal priority, no slow limit; they finish before the world (38-46 s). The wait for a pipeline stays at 500 ms: at 50 ms a pass a face needs was dropped.

No Rust code changes: the switches are the ones main already reads (frame.rs, frame_rate.rs, pipeline/make.rs). victory play (apps/victory/src/play.rs) has its own settings list, still sets VICTORY_FRAME_INTERVAL_US, and is not changed here. -More overrides any of these, for instance -More @{VICTORY_PIPELINE_WORKERS='4'} on a processor with fewer threads.

Relation to #18

#18 makes VICTORY_FRAME_INTERVAL_US count for the title's rate too. With no cap that gives the title its "no limit" (1000), the case this PR avoids by telling it 59.

Measured

RTX 5080, Ryzen 7 9800X3D (8 cores, 16 threads), 32 GB, Series X profile, 2560x1440, DLSS Quality, diagnostics build, 294 s unattended runs of the prologue.

Pipeline makers, intro cutscene (73-125 s):

FPS p95 p99
before 18.2 90.6 ms 482.5 ms
12 makers, normal priority, no slow limit 26.9 67.4 ms 98.9 ms

Cell scene (135-145 s) in the same two runs: 27.0 -> 30.5 FPS. Visual review clean.

Game speed:

game time against the wall clock
before (VICTORY_FRAME_INTERVAL_US=1000) N/30 at N FPS above 30
VICTORY_FRAME_INTERVAL_MS=0 + VICTORY_TITLE_FPS=59 0.985 at 30-36 FPS

The run with both changes: cutscene 24.3 FPS, cell 29.9, route (199-226 s) 30.3, no device removed, no out-of-memory lines; the release exe ran 295 s without errors. Real speed brings no frame rate of its own, and frame rates above 30 measured with the old clock had the speed-up in them.

Checks

  • Merged with main (0cef07e9): -Preload and the FSR 3 block are kept beside -FixedStep and the frame interval; against main the branch changes this script only. The script parses (PowerShell 5.1); cargo check --workspace --all-targets --locked and cargo test -p xtask (asset policy) pass.
  • No GPU run was made on top of current main; the measurements above are from our RTX 5080 branch, whose base is this repository's 9d6300fa.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5529278898 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/65). Originally posted by [wasonidas](https://github.com/wasonidas) on 2026-11-27T15:39:11Z. --- Launcher only (`scripts/play-foxhound.ps1`); two commits. ## Problem 1. **The game runs fast above 30 FPS.** The launcher sets only our frame clock (`VICTORY_FRAME_INTERVAL_US`, 1000 by default: no cap). The title's simulation still steps `clamp(dt, 1/sim_rate, 1/15 s)` with its own rate left at 30, so every frame shorter than 33.3 ms moves game time 33.3 ms: at N rendered frames a second the game runs N/30 times too fast. 2. **Stalls in the intro cutscene.** Pipelines the library cannot hold (those with static samplers, some 1,360 on this profile) are made again at every start. With the makers at lowest priority and the slow limit they are still being made 170 s in, under the cutscene. ## Change - `-Fps` now sets `VICTORY_FRAME_INTERVAL_MS`, which also patches the title's own rate. Without a cap (the default) the launcher sets `VICTORY_FRAME_INTERVAL_MS=0` and `VICTORY_TITLE_FPS=59`: the title is told 59 rather than its own "no limit", which halves a per-frame scale of its own and shows its scripts 1000 FPS. `-FixedStep` keeps our clock alone, as before. - `VICTORY_PIPELINE_LOWEST=0`, `VICTORY_PIPELINE_WORKERS=12`, `VICTORY_PIPELINE_SLOW=0`: 12 makers at normal priority, no slow limit; they finish before the world (38-46 s). The wait for a pipeline stays at 500 ms: at 50 ms a pass a face needs was dropped. No Rust code changes: the switches are the ones `main` already reads (`frame.rs`, `frame_rate.rs`, `pipeline/make.rs`). `victory play` (`apps/victory/src/play.rs`) has its own settings list, still sets `VICTORY_FRAME_INTERVAL_US`, and is not changed here. `-More` overrides any of these, for instance `-More @{VICTORY_PIPELINE_WORKERS='4'}` on a processor with fewer threads. ## Relation to #18 #18 makes `VICTORY_FRAME_INTERVAL_US` count for the title's rate too. With no cap that gives the title its "no limit" (1000), the case this PR avoids by telling it 59. ## Measured RTX 5080, Ryzen 7 9800X3D (8 cores, 16 threads), 32 GB, Series X profile, 2560x1440, DLSS Quality, diagnostics build, 294 s unattended runs of the prologue. Pipeline makers, intro cutscene (73-125 s): | | FPS | p95 | p99 | |---|---|---|---| | before | 18.2 | 90.6 ms | 482.5 ms | | 12 makers, normal priority, no slow limit | 26.9 | 67.4 ms | 98.9 ms | Cell scene (135-145 s) in the same two runs: 27.0 -> 30.5 FPS. Visual review clean. Game speed: | | game time against the wall clock | |---|---| | before (`VICTORY_FRAME_INTERVAL_US=1000`) | N/30 at N FPS above 30 | | `VICTORY_FRAME_INTERVAL_MS=0` + `VICTORY_TITLE_FPS=59` | 0.985 at 30-36 FPS | The run with both changes: cutscene 24.3 FPS, cell 29.9, route (199-226 s) 30.3, no device removed, no out-of-memory lines; the release exe ran 295 s without errors. Real speed brings no frame rate of its own, and frame rates above 30 measured with the old clock had the speed-up in them. ## Checks - Merged with `main` (`0cef07e9`): `-Preload` and the FSR 3 block are kept beside `-FixedStep` and the frame interval; against `main` the branch changes this script only. The script parses (PowerShell 5.1); `cargo check --workspace --all-targets --locked` and `cargo test -p xtask` (asset policy) pass. - No GPU run was made on top of current `main`; the measurements above are from our RTX 5080 branch, whose base is this repository's `9d6300fa`.
Sign in to join this conversation.
No reviewers
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
trustno1-coder/VIctory-NVIDIA!65
No description provided.