mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-24 21:55:57 +00:00
Make the frame limit a setting: 30, 60, 120, 144 or the monitor's refresh rate
TOTK_FPS_LIMIT (fps_limit in totk.ini, live, menu row on the Game tab) replaces the 30/60 choice of TOTK_FPS60. The pacer holds frames to the limit in nanoseconds instead of 60 Hz ticks; the real-time step has no lower bound, so game speed stays 1.000 above 60. `display` follows the exact refresh rate of the window's monitor (QueryDisplayConfig), measured again when the window moves or the display mode changes. A limit of 30 switches the patch set fps60 off as before; unset, the older fps60 = 0 still means 30. Above 60 needs the real-time step and is marked experimental. The vsync event stays at 60 Hz: on 1.4.3 the title runs at 144 fps with it, so the game does not wait for it each frame. Field on machine A: 69-88 fps, CPU-bound (GPU 3.4 ms per frame). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cdecd014f6
commit
b1cbbb93a6
12 files changed
+155
-38
No files matched your search
+2
-1
@@ -31,7 +31,8 @@ typedef enum {
|
||||
UI_PERF_LINE_FPS, UI_PERF_LINE_FULL,
|
||||
|
||||
// Game
|
||||
UI_MENU_FPS60, UI_MENU_FPS60_DESC, UI_MENU_FPS_60, UI_MENU_FPS_30,
|
||||
UI_MENU_FPS_LIMIT, UI_MENU_FPS_LIMIT_DESC, UI_MENU_FPS_30, UI_MENU_FPS_60, UI_MENU_FPS_120, UI_MENU_FPS_144,
|
||||
UI_MENU_FPS_DISPLAY, UI_MENU_FPS_DISPLAY_HZ,
|
||||
UI_MENU_REALTIME, UI_MENU_REALTIME_DESC,
|
||||
UI_MENU_CLOTH_REALTIME, UI_MENU_CLOTH_REALTIME_DESC,
|
||||
UI_MENU_HIGHFPS_FIX, UI_MENU_HIGHFPS_FIX_DESC,
|
||||
|
||||
Reference in new issue
Block a user