Skip to content
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

Smoother FPS changes #89

Merged
merged 5 commits into from
Apr 10, 2019
Merged

Smoother FPS changes #89

merged 5 commits into from
Apr 10, 2019

Conversation

ericente
Copy link
Collaborator

When changing FPS of a playing MovieClip, the current time value was being recalculated to be at the start of the current frame at the new FPS. This can cause a stutter because we're going back in time by a small amount. Multiple changes to FPS in less than 1/FPS seconds cause a hang in the animation.

This change updates the time more accurately as to actual progress through the animation, eliminating stutter/hang on FPS change.

@ericente ericente merged commit 654b994 into pixijs:master Apr 10, 2019
@ericente ericente deleted the dynamic-framerate branch April 10, 2019 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant