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

Delta time should be capped #58

Open
silverweed opened this issue Sep 15, 2021 · 0 comments
Open

Delta time should be capped #58

silverweed opened this issue Sep 15, 2021 · 0 comments

Comments

@silverweed
Copy link

I tried the "underrun" example on browser and my PC had a couple of hiccups since I was compiling some code in the meantime.
Every time this happens the character gets "teleported" a long distance because the delta time between frames is never capped to a maximum amount, so it may grow huge when the browser freezes for more than a fraction of a second.

I'm not sure if this would be preferably done at the "engine" level (basically here) or if every game should decide what's its delta time cap - I'd probably go with the first but there's no right answer here.

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

No branches or pull requests

1 participant