Unlock the frame rate: 60 fps and above instead of the game's 30 #20

Open
opened 2026-11-28 21:53:00 +00:00 by edsuuu · 0 comments
edsuuu commented 2026-11-28 21:53:00 +00:00 (Migrated from github.com)
Contributor

Imported from edsuuu/VI-BR-PORT. Originally posted by edsuuu on 2026-11-28T21:53:00Z.


The game runs at most at 30 frames a second: the title sets its frame interval itself (the console's 30 Hz pacing) and our engine follows it. Machines that render faster than 33 ms a frame should be able to go to 60 and above, from a setting.

Where the cap is

crates/victory-gpu/src/frame.rs: the title sets a frame interval and waits for each frame to begin; ours is a clock started by the first interval set, ticking once per interval (origin, vblank and flip events once per tick). The title paces itself by the blocking wait for the flip before each present, so the interval it asks for is the frame rate it gets.

What to do

  • A switch that overrides the interval the title asks for: VICTORY_FRAME_INTERVAL_US=<µs> (16667 for 60, 8333 for 120, a very small value for no cap), the title's own interval when unset. Other forks use the same name (VICTORY_FRAME_INTERVAL_US=1000 meaning no cap), worth keeping compatible.
  • A launcher option: 30 (the game's), 60, 120, no cap.
  • The window's present: no added wait (tearing is already on), so the cap is only the interval.

To check

  • Game speed: whether the title runs its simulation, animation and physics by the time between frames, or counts frames. If it counts frames, a higher rate makes the game run faster and the override needs to be limited to the presentation (or not done at all for that part).
  • Cutscenes and videos: they are timed to 30 fps on the console; check that they keep their speed and stay in sync with the sound.
  • Scripts and UI: blinking, fades and menus that may count frames.
  • The frame meter and the panel: they must report the real rate.
  • Cost: with no cap the card works all the time; measure the opening, the prison and the boat at 30, 60 and uncapped.

Reference

The NVIDIA fork (trustno1-coder/VIctory-NVIDIA, commit 22c6be2e7, "no frame rate cap") sets VICTORY_FRAME_INTERVAL_US=1000 by default from its launcher, with the cap in its F1 menu.

<!-- greyfinch-sync:edsuuu/VI-BR-PORT:issue:6671577552 --> Imported from [edsuuu/VI-BR-PORT](https://github.com/edsuuu/VI-BR-PORT/issues/20). Originally posted by [edsuuu](https://github.com/edsuuu) on 2026-11-28T21:53:00Z. --- The game runs at most at 30 frames a second: the title sets its frame interval itself (the console's 30 Hz pacing) and our engine follows it. Machines that render faster than 33 ms a frame should be able to go to 60 and above, from a setting. ## Where the cap is `crates/victory-gpu/src/frame.rs`: the title sets a frame interval and waits for each frame to begin; ours is a clock started by the first interval set, ticking once per interval (origin, vblank and flip events once per tick). The title paces itself by the blocking wait for the flip before each present, so the interval it asks for is the frame rate it gets. ## What to do - A switch that overrides the interval the title asks for: `VICTORY_FRAME_INTERVAL_US=<µs>` (16667 for 60, 8333 for 120, a very small value for no cap), the title's own interval when unset. Other forks use the same name (`VICTORY_FRAME_INTERVAL_US=1000` meaning no cap), worth keeping compatible. - A launcher option: 30 (the game's), 60, 120, no cap. - The window's present: no added wait (tearing is already on), so the cap is only the interval. ## To check - **Game speed:** whether the title runs its simulation, animation and physics by the time between frames, or counts frames. If it counts frames, a higher rate makes the game run faster and the override needs to be limited to the presentation (or not done at all for that part). - **Cutscenes and videos:** they are timed to 30 fps on the console; check that they keep their speed and stay in sync with the sound. - **Scripts and UI:** blinking, fades and menus that may count frames. - **The frame meter and the panel:** they must report the real rate. - **Cost:** with no cap the card works all the time; measure the opening, the prison and the boat at 30, 60 and uncapped. ## Reference The NVIDIA fork (`trustno1-coder/VIctory-NVIDIA`, commit `22c6be2e7`, "no frame rate cap") sets `VICTORY_FRAME_INTERVAL_US=1000` by default from its launcher, with the cap in its F1 menu.
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
edsuuu/VI-BR-PORT#20
No description provided.