The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

Hello,

I made a simple animation using AnimationPlayer and a few sprites in a scene. The animation consists of a continuous linear rotation of all the sprites as seen below. The total animation duration is 30 seconds, looping.

The animation is configured with the "Autoplay on load" option. The scene is defined as the "main scene" so it loads at application startup.

Problem is : while I get exactly what I expect on Ubuntu Desktop, the animation runs at crazy speed on my Android tablet (a Samsung Tab A10 referred as SM-T580 from 2016 running LineageOS 17 based on Android 10).

Is there something I can do about this? Am I missing something?

The tablet itself runs other games pretty fine so I don't expect it to have graphics issues, even though I only tested one Godot sample.

This is the Ubuntu Desktop rendering (good):
Animation running as expected on Ubuntu Desktop

This is the Android rendering (bad):
Animation running crazy on Android tablet

My scene setup:
enter image description here

Thank you for any help! :)

in Engine by (13 points)

Did you create the animations only in the Godot editor "Animation" tab? Is the animation tied to the _process() function?

Hi, thanks for your question. I only used the GUI to create the animation, no script involved.

Maybe the problem is with the delta as it is different in each system. I think linking it with the process function in gdscript and multipling it with the delta should do the work. This is total assumption from me as this can be caused from varied reasons. (like if there is an engine bug (as I have encountered it several times with animation player)). Hope this helps.

Thanks Dinoking. Seems there is a problem with delta: inside _process(), I print the value of delta and I get:

-139812
-139812
...
1957340
1957340
...
-2236964
-2236964
...
31317468
31317468
...
-35791396
-35791396
...

Yup the delta is way too crazy. Try starting a new project and make every thing from scratch again cause sometimes it gets unbalanced and goes haywire. Maybe this should do . Pls do comment if the solution doesn't work :)

I've created a new project from scrath with nothing but a 2D scene with a node where I log the delta value from _process() and got the same results.

However, I found a similar bug reported on the github repository here. So I guess it's an exotic issue with the combination of Godot + LineageOS.

I will try to investigate on that with the help I can find on Github.

Yeah good luck

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.