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

Add support for delta-time playback #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ebeneliason
Copy link

This adds the option to use delta-time playback as needed to perform time-based synchronization or achieve time dilation effects. Calling update(dt) each frame will override the underlying animation loop timing and set the appropriate frame according to the elapsed time, while respecting all available options (delay, loop, step, startFrame, endFrame, paused, etc.). If update is not called, the behavior remains unchanged.

This adds the option to use delta-time playback as needed to perform
time-based synchronization or achieve time dilation effects. Calling
`update(dt)` each frame will override the underlying animation loop
and set the appropriate frame according to the elapsed time, while
respecting all available options (delay, loop, step, start/end frame,
paused, etc.). When `update` is not called, behavior remains unchanged.
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