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

[BUG] - Playback rate of flipbooks depend on momentary framerate #274

Closed
Codas opened this issue Jul 23, 2024 · 1 comment
Closed

[BUG] - Playback rate of flipbooks depend on momentary framerate #274

Codas opened this issue Jul 23, 2024 · 1 comment

Comments

@Codas
Copy link
Contributor

Codas commented Jul 23, 2024

Flipbooks currently exhibit inconsistent playback rates that vary with the current frame rate and are relative to the frame rate when the flipbook animation was first started.

Reproducing it can be finicky in certain cases, but the easiest way is: Set FPS in foundry to 60 or something like that. Create a flipbook animation and play it. In the best case scenario, the animation will play back as if set to 24 fps. lower the framerate in foundry to 30. The animation will now play with 12 fps.

The reason for this is that the AnimatedSprite implementation by default plays each frame for exactly one rendered frame. With a fixed 60 fps, the hardcoded playbackRate lets the animation correctly play at 24 fps.

In reality however, many systems cannot handle a static 60 fps wheras others have the framerate unlocked to above 60.

The AnimatedSprite has the possibility to instead of a list of textures be supplied with a list of FrameObjects that encode timing information for each frame together with the texture to be played.

@Codas Codas changed the title [BUG] - Playback rate of flipbooks depending on chaning and moentary framerate [BUG] - Playback rate of flipbooks depend on momentary framerate Aug 19, 2024
@Haxxer
Copy link
Collaborator

Haxxer commented Oct 24, 2024

Fixed in 3.4.0

@Haxxer Haxxer closed this as completed Oct 24, 2024
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

2 participants