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

When the editor replays, Updating Runner may have a negative deltaTime #130

Open
Rotanticu opened this issue Jul 28, 2024 · 0 comments
Open

Comments

@Rotanticu
Copy link

RunnerCache will cache the Updating Runner, so replaying it will not create a new Updating Runner, only Reset()
However, the Reset() function of the Updating Runner does not reset the time, which can result in an error in calculating the first frame time
The time should be reset in the Reset() function of the Updating Runner Like this
public void Reset() { storage.Reset(); prevTime = 0d; prevUnscaledTime = 0d; prevRealtime = 0d; }

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