Frame rate switch: the timers' shortest step follows the rate too (+0x2241fd0)

Run fps-1 (our clock at 16.667 ms, the title left at 30): the menus ran at
16.7 ms until the title's own limiter came up at 30 s (then 33.3 ms), and
meanwhile five of its seven timers stepped 33.3 ms a frame: game time ran
at twice the wall clock. The timer update (+0x2226040) takes the real time
since the last frame but at least 1/rate (+0x6849844), and that rate comes
from +0x2241fd0, a third read of the same setting. It now returns the rate
asked for (1000 for no limit), the original bytes checked first.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 08b88b8266c2d0294d483d29b15534872ebc7da9)
This commit is contained in:
local authored and readmet3xt-lab committed 2026-11-27 01:08:53 +05:30
1 parent bacb402091
commit 45f6250378
2 files changed
+101 -33

No files matched your search

+1 -1
View File
@@ -259,7 +259,7 @@ pub fn run(
let done = unsafe { apply(image.base(), size, rate, &SITES) };
let patched = done.iter().filter(|d| **d == Patched::Done).count();
println!(
"frame rate: our clock {ms} ms; the title's rate {rate} ({patched} of {} loads of its setting patched; it asks for {} us at 60 Hz)",
"frame rate: our clock {ms} ms; the title's rate {rate} ({patched} of {} reads of its setting patched; it asks for {} us at 60 Hz)",
SITES.len(),
title_interval_us(rate, false)
);