🐛 Logged: Bug: Incorrect gif rendering for frame rates of 60 and 120

Hi team,

Here I have a single animation rendered as gifs at all of the frame rate options provided by the Rive Editor (version BETA 0.8.3105, MacOS). As expected, the animation gets smoother and smoother as the frame rate increases, with no other differences. That is, until we get to 60 and 120 fps.

It seems that Rive caps the frame rate for gifs at 50 fps, which seems reasonable (the internet says higher frame rates may not play correctly). However, what happens in practice is that the full extent of the timeline is quantized to 50 frames @ 50fps, and then an extra 10 or 70 frames are added onto the end of the gif by looping back and starting to render the timeline again (when looping is enabled). This results in longer animations than expected for 60 and 120 fps, plus jarring discontinuities in the animation.

One could say this is an expected issue and to not try to use frame rates above 50, but the problem is that Rive defaults to 60 fps. So I was naively trying to export a gif, without even thinking about frame rate, and I got the discontinuity and length issues described above with no warning or explanation from the editor.

Here are the renders plus analysis from R's "av" package.

8fps

frames: 8, framerate: 8


12fps

frames: 12, framerate: 11.98801


15fps

frames: 15, framerate: 15


24fps

frames: 24, framerate: 24


30fps

frames: 30, framerate: 29.97003


50fps

frames: 50, framerate: 50


60fps

frames: 60, framerate: 50


120fps

frames: 120, framerate: 50


Attaching my rev so you can see if I have a simple settings issue.

spiral_render_al.rev

Thanks!