Loader: the simulation's longest step is 250 ms (game speed at low fps) #319

Closed
github-bot wants to merge 0 commits from github-bot/gh-319 into main AGit
Owner

@⁠Kajcsi on GitHub · 2026-12-01 13:12 UTC · original
Kajcsi:max-step → main · +115 −0 · 2 files · 72 commits · closed without merging

The title takes each timer's step as at most 1/15 s, so below 15 frames a second the game runs slower than real time (at 12 fps, at 80 % of its speed). With frame generation on, a base rate under 15 is common in heavy scenes, and the whole game (traffic, timers, the clock) slowed down with it.

Change

  • In build 1.0.2.1, the load of that limit at +0x2226045 (in the function at +0x2226040) reads a shared .rdata constant that other code also reads. The patch points this one load at a float of our own in the int3 padding after the function (+0x2226128), so only this step changes. The bytes are compared before anything is written.
  • VICTORY_MAX_STEP_MS sets the step: from 67 to 1000, default 250. off keeps the title's own limit.
  • Frames longer than the new limit, such as loading hitches, still slow the game down rather than jump it ahead.
  • The run prints the patch and the lowest frame rate that still runs at full speed.

Ported from trustno1-coder/VIctory-NVIDIA (GPL-3.0) cf47892f.

Testing

  • cargo clippy --workspace --all-targets --locked -- -D warnings, the same with --all-features, the new tests and xtask's policy tests pass on this branch alone.
  • Played with all five of these PRs together on an RTX 4090 (Series X profile, 1440p, DLSS with frame generation). The run logs the patch as done on 1.0.2.1.

🤖 Generated with Claude Code

**@⁠Kajcsi** on GitHub · 2026-12-01 13:12 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/319) `Kajcsi:max-step` → `main` · +115 −0 · 2 files · 72 commits · closed without merging The title takes each timer's step as at most 1/15 s, so below 15 frames a second the game runs slower than real time (at 12 fps, at 80 % of its speed). With frame generation on, a base rate under 15 is common in heavy scenes, and the whole game (traffic, timers, the clock) slowed down with it. **Change** - In build 1.0.2.1, the load of that limit at +0x2226045 (in the function at +0x2226040) reads a shared .rdata constant that other code also reads. The patch points this one load at a float of our own in the int3 padding after the function (+0x2226128), so only this step changes. The bytes are compared before anything is written. - `VICTORY_MAX_STEP_MS` sets the step: from 67 to 1000, default 250. `off` keeps the title's own limit. - Frames longer than the new limit, such as loading hitches, still slow the game down rather than jump it ahead. - The run prints the patch and the lowest frame rate that still runs at full speed. Ported from trustno1-coder/VIctory-NVIDIA (GPL-3.0) cf47892f. **Testing** - `cargo clippy --workspace --all-targets --locked -- -D warnings`, the same with `--all-features`, the new tests and xtask's policy tests pass on this branch alone. - Played with all five of these PRs together on an RTX 4090 (Series X profile, 1440p, DLSS with frame generation). The run logs the patch as done on 1.0.2.1. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The title takes each timer's step as at most 1/15 s (+0x2226040, a load of a
shared .rdata constant at +0x2226045), so below 15 frames a second the game
ran slower than real time (at 12 fps, at 80 % of its speed). The load is
pointed at a float of our own in the int3 padding after the function
(+0x2226128), bytes compared first; VICTORY_MAX_STEP_MS sets it (67 to 1000,
250 by default; off: the title's own). Frames longer than that (loading
hitches) still slow the game rather than jump it. Build 1.0.2.1.

Ported from trustno1-coder/VIctory-NVIDIA (GPL-3.0) cf47892f.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 13:17:24 +00:00
github-bot closed this pull request 2026-12-02 07:54:43 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.