• RuntimesUnity
  • Spine animation left on idle (loop) slows down over time

I have a game that has a background spine animation that is looping all the time. When the game is left on idle for multiple days (4-5 days), the animation starts to really slow down to what seems to be like 1-3 fps. The fps of the game itself does not drop. Any idea? Thanks!

Related Discussions
...

The issue you're experiencing with the Spine animation slowing down over time while the game itself maintains its frame rate could be related to resource management or memory leaks. Over extended periods, the continuous looping of animations might lead to accumulated computational overhead or memory usage that isn't being properly cleared. This can happen if there are issues with how the animation state is managed or if there are inefficiencies in the update loop that become more pronounced over time.

To address this, you might want to profile your application to identify any memory leaks or excessive CPU usage related to the animation. Additionally, consider implementing a mechanism to reset or refresh the animation state periodically to prevent such slowdowns. Ensuring that resources are properly managed and released when not needed can also help maintain performance over long periods.

It may be that accumulated time gets very large, then some operation either works inefficiently with that or maybe loses precision. It would be worth debugging further to see why it becomes slow.