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

Open
github-bot wants to merge 3 commits from github-bot/gh-65 into main AGit
Owner

@⁠wasonidas on GitHub · 2026-11-27 15:39 UTC · original
wasonidas:launcher/real-speed-pipeline-makers → main · +16 −2 · 1 files · 3 commits · open

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.
**@⁠wasonidas** on GitHub · 2026-11-27 15:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/65) `wasonidas:launcher/real-speed-pipeline-makers` → `main` · +16 −2 · 1 files · 3 commits · open 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`.
With our clock alone faster (VICTORY_FRAME_INTERVAL_US) the title's
simulation still stepped at least 1/30 s a frame: step = clamp(dt,
1/sim_rate, 1/15 s), so above 30 rendered frames a second the game ran
FPS/30 times too fast. The launcher now sets VICTORY_FRAME_INTERVAL_MS,
which also patches the title's own rate; -FixedStep keeps our clock alone,
as before.

Without a cap (-Fps 1000, the default): no wait of ours
(VICTORY_FRAME_INTERVAL_MS=0) and the title told 59
(VICTORY_TITLE_FPS=59), not its own "no limit", which halves a per-frame
scale of its own and shows the title's scripts 1000 FPS. Measured on an
RTX 5080 (Series X profile, 2560x1440, DLSS Quality): game time 0.985x of
the wall clock at 30-36 FPS; release exe 295 s without errors.

From 96fb3e55 (the frame interval part) and 9a7fa0e1 of the RTX 5080
branch.
Pipelines the library cannot hold (those with static samplers, some 1,360
here) are made again at every start. With the makers at lowest priority
and the slow limit they were still being made 170 s in, under the intro
cutscene; with 12 makers at normal priority and no slow limit
(VICTORY_PIPELINE_LOWEST=0, VICTORY_PIPELINE_WORKERS=12,
VICTORY_PIPELINE_SLOW=0) they are done before the world (38-46 s).

Measured on an RTX 5080 with a 9800X3D (Series X profile, 2560x1440, DLSS
Quality): intro cutscene 18.5 -> 26-27 FPS over two runs (27.2 FPS, p99
98 ms in the second), no half-second stalls, visual review clean.

The wait for a pipeline stays at 500 ms: at 50 ms a pass a face needs was
dropped.

From b3e14a61 of the RTX 5080 branch.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 15:50:31 +00:00
Both sides added a parameter after -Fps and changed the lines around the frame interval in
scripts/play-foxhound.ps1; both are kept. Against main the branch still changes that script only.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/65/head:github-bot/gh-65'
git switch 'github-bot/gh-65'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-65'
git switch 'github-bot/gh-65'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-65'
git switch 'github-bot/gh-65'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-65'
git switch 'main'
git merge --squash 'github-bot/gh-65'
git switch 'main'
git merge --ff-only 'github-bot/gh-65'
git switch 'main'
git merge 'github-bot/gh-65'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.