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

Smooth delta time #22

Open
belohlavek opened this issue Dec 1, 2018 · 0 comments
Open

Smooth delta time #22

belohlavek opened this issue Dec 1, 2018 · 0 comments
Assignees

Comments

@belohlavek
Copy link
Contributor

Basically, it does exactly what it says; it smooths the deltaTime:

Say the frame rate is humming along at 30 fps, then you experience a hiccup of a few frames at 15. DeltaTime will report a difference of 2 ms (30 fps = 2ms / frame, 15 fps = 4ms / frame), but smoothDeltaTime will report something closer to 2ms (but weighted by the frame loss).

https://forum.unity.com/threads/time-smoothdeltatime.10253/

Note: this should not be part of the core ECS, buit an supeset on top of PIXI's update loop

@belohlavek belohlavek self-assigned this Dec 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant