M
M
Mercury132016-05-01 15:20:47
Android
Mercury13, 2016-05-01 15:20:47

Animation that adapts to FPS?

Suppose we have a turn-based game with complex rules. To explain where and where the resources come from, we use an animation when a number flies from point A to point B.
Questions begin when we expect the game to run on machines with completely different processors. And here the question arises.
• If you do a fixed animation duration, on a slow machine it will last two or three frames.
• If you do a fixed FPS, the animation will take a very long time on a slow machine.
Or maybe the task is not worth it at all? I especially ask developers for Android, because your processors will be slower.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2016-05-01
@GavriKos

The animation lasts n seconds - this is fixed. In 1 second, it must pass n frames. If the FPS is lower than the number of frames required for the animation, then some animation frames are simply skipped. It turns out jerking, which is called "brakes due to low FPS".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question