-
Notifications
You must be signed in to change notification settings - Fork 120
tweak(scrolling): Prevent far camera jumps when scrolling while the game stalls #1661
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
|
This creates an issue in this situation:
|
|
Oh yes this happens because of the sudden change of average frame rate. Ok in that case we need a different solution. |
222f9ef to
4291c8d
Compare
|
I have appended a new solution that will floor the fps ratio at 5 fps to prevent big jumps on stalls. |
4291c8d to
ce035c5
Compare
|
Rebased. |
Mauller
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.
Looks good to me
|
Title probably wants to be changed to something along the lines of "tweak(scrolling): Use update frame rate over base fps to scale movement for scrolling and camera" |
|
Title updated. |
…olling and camera
… for scrolling and camera" This reverts commit c2aaeb9.
ce035c5 to
b3bf1e2
Compare
|
Replicated in Generals without conflicts |
This change uses smoothened frame rate to scale movement for scrolling and camera to avoid jumps on longer stalls.
TODO