UnleashedRecomp icon indicating copy to clipboard operation
UnleashedRecomp copied to clipboard

Fix Options Menu sliders being frame-dependent at lower framerates

Open Onaterdem opened this issue 9 months ago • 1 comments

Options menu sliders use their local deltaTime values to determine the fastIncrement logic, which causes issues at low framerates. Changed the logic to use a persistent variable and fixed a few related bugs (such as 1/119 dT and 1/120 INCREMENT_TIME causing two increments)

Onaterdem avatar Mar 02 '25 23:03 Onaterdem

@DarioSamo marked you for reviews as I think your expertise regarding frame rate dependent bugs could be used here.

DeaTh-G avatar Mar 05 '25 05:03 DeaTh-G

Framerate independence looks good to me. Double checking that someone else tests if it works as intended.

DarioSamo avatar Mar 19 '25 21:03 DarioSamo