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

Accumulator not updating between fixed timestep ticks #49

Open
DasEtwas opened this issue Feb 4, 2023 · 1 comment
Open

Accumulator not updating between fixed timestep ticks #49

DasEtwas opened this issue Feb 4, 2023 · 1 comment

Comments

@DasEtwas
Copy link

DasEtwas commented Feb 4, 2023

Is there any particular reason why FixedTimestepInfo is only updated shortly before a FixedTimestepStage runs its system?
I'm working on interpolating my physics between rendered frames. I planned on using FixedTimestepInfo::accumulator as the interpolator in a render sync system, but to my disappointment this doesn't work.

Thanks for the great work!

@DasEtwas
Copy link
Author

DasEtwas commented Feb 4, 2023

To avoid updating it every frame, maybe one could store the timestamp of the last tick instead of the accumulator.

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