Help wanted: frame pacing and a 60 fps / uncapped option #41

Open
opened 2026-11-27 03:14:46 +00:00 by github-bot · 1 comment
Owner

@⁠ThatRecompDev on GitHub · 2026-11-25 16:23 UTC · original

the game targets 30 fps on console. once the world runs at speed we'd like an option to unlock it (60 fps or uncapped), like other PC ports offer.

what we need to find out:

  • how the game paces frames: present interval / vsync count, a frame-time target in its own code, or a wait on the display's vblank through the console's present APIs (our D3D12.X present shim and frame pacing are where that lands today)
  • whether game logic, animation and physics are tied to the frame rate (a common source of bugs when unlocking), and which values to patch or override
  • then a loader option, e.g. --fps-cap 60 / --fps-cap 0, plus whatever the game needs to stay correct at a different rate

no game data or exe bytes in the issue please, addresses/RVAs and a description of the code are fine. background: docs/d3d12x-shim.md (present, frame pacing).

**@⁠ThatRecompDev** on GitHub · 2026-11-25 16:23 UTC · [original](https://github.com/ThatRecompDev/five-star-recomp/issues/41) the game targets 30 fps on console. once the world runs at speed we'd like an option to unlock it (60 fps or uncapped), like other PC ports offer. what we need to find out: - how the game paces frames: present interval / vsync count, a frame-time target in its own code, or a wait on the display's vblank through the console's present APIs (our D3D12.X present shim and frame pacing are where that lands today) - whether game logic, animation and physics are tied to the frame rate (a common source of bugs when unlocking), and which values to patch or override - then a loader option, e.g. `--fps-cap 60` / `--fps-cap 0`, plus whatever the game needs to stay correct at a different rate no game data or exe bytes in the issue please, addresses/RVAs and a description of the code are fine. background: `docs/d3d12x-shim.md` (present, frame pacing).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:14:47 +00:00
Author
Owner

@⁠ThatRecompDev on GitHub · 2026-11-25 17:05 UTC · original

dug into this a bit. the 30 fps cap is actually the game's own choice: every frame it says which rate it wants, and that becomes a 33.3 ms interval for the console's frame events, which our pacer just follows. the engine clearly runs at other rates too (it has dividers for 60/30/20/15 and a 120 Hz table, plus an unlocked mode that doesn't wait on frame events at all), so it most likely measures frame time instead of assuming fixed steps.

so there's now a --frame-rate 30|60|uncapped option on main (default 30, same as console). 60 shortens the frame interval to one 60 Hz refresh, uncapped drops the wait and vsync. haven't checked physics/animation at 60 in the world yet, so if anyone tries it, cutscene speed vs audio and walking speed are the things to watch

(honest note: right now the GPU side is way slower than 30 anyway, --gpu-timings from #40 shows one pass alone eating ~276 ms a frame, so that's where the real work is)

**@⁠ThatRecompDev** on GitHub · 2026-11-25 17:05 UTC · [original](https://github.com/ThatRecompDev/five-star-recomp/issues/41#issuecomment-7168978462) dug into this a bit. the 30 fps cap is actually the game's own choice: every frame it says which rate it wants, and that becomes a 33.3 ms interval for the console's frame events, which our pacer just follows. the engine clearly runs at other rates too (it has dividers for 60/30/20/15 and a 120 Hz table, plus an unlocked mode that doesn't wait on frame events at all), so it most likely measures frame time instead of assuming fixed steps. so there's now a `--frame-rate 30|60|uncapped` option on main (default 30, same as console). 60 shortens the frame interval to one 60 Hz refresh, uncapped drops the wait and vsync. haven't checked physics/animation at 60 in the world yet, so if anyone tries it, cutscene speed vs audio and walking speed are the things to watch (honest note: right now the GPU side is way slower than 30 anyway, --gpu-timings from #40 shows one pass alone eating ~276 ms a frame, so that's where the real work is)
This discussion has been locked. Commenting is limited to contributors.
No description provided.