-
Notifications
You must be signed in to change notification settings - Fork 214
Fix Options Menu sliders being frame-dependent at lower framerates #677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…holdTime variable, rather than the current frame's deltaTime
|
@DarioSamo marked you for reviews as I think your expertise regarding frame rate dependent bugs could be used here. |
DarioSamo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested it personally but changes look good other than needing to address the comment I left, which was a problem with the original code.
|
Framerate independence looks good to me. Double checking that someone else tests if it works as intended. |
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)