diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-29 23:24:01 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-29 23:24:01 -0500 |
| commit | 936843f59037e4f74412ec48d1a01ab9af33d9b4 (patch) | |
| tree | b9c1047b0223714d8fdfda20fc12bc5b47043c6a /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp | |
| parent | 998fcbcac03f56165826c0643a42921fde747453 (diff) | |
Loader: the title's game step allowed past 1/15 s (LEONIDA_SIM_MAX_STEP_MS); the scripts told 59 with 60 fps
- LEONIDA_SIM_MAX_STEP_MS=100|125|200|250 (unset: the title's own): the title's game timers step
clamp(real time, 1 / rate, 1/15 s) a frame (+0x2226040, run from the frame's timer at +0x22264d0), so a frame
longer than 66.7 ms moves game time only 66.7 ms: under 15 frames a second the world runs slower than the wall
clock. The two loads of that ceiling (vmovss at +0x2226045 and +0x2226833) are pointed at another constant of
the image's .rdata holding the asked value, the constants checked first (all or none). After
kylepelham/El1xr 9372c47f (GPL-3.0), whose runs measured game time 0.92 and 0.89 of the wall clock with the
title's ceiling and 0.97 and 0.98 with 100 ms. The step function's clamp was read in a local decompile
(fast-decomp) of the 1.0.2.1 executable.
- SCRIPTS_59 (vipatch.rs, always on with the 60 fps patch): the function that tells the scripts the frame rate
(+0x3eaf5d0, one million over the interval at +0x98f84ac, truncated) answers 59: with FPS_60's interval of
16 666 it said 60, from which the title halves a per-frame count it hands the scripts (+0x234490). After
trustno1-coder/VIctory-NVIDIA PR #65 (0.985 of real time at 30-36 fps) and El1xr's sim_target.rs (GPL-3.0).
Every place is checked against the 1.0.2.1 executable: the tests the_game_step_loads_point_at_the_ceiling_asked_for,
the_scripts_are_told_fifty_nine, and the retail-executable checks of hooks.rs and vipatch.rs (LEONIDA_GAME_DIR),
all passed; a run with LEONIDA_SIM_MAX_STEP_MS=100 logged every game-step patch applied.
AI-assisted (Claude). Tested on an RTX 4060 Ti 16 GB, driver 616.64, Ryzen 5 7600X.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions