- Home /
Animation vs. Lerp / MoveTowards Performance Comparison
For simple animations such as spinning or moving objects which one is best when it comes to performance?
Answer by Nick4 · May 18, 2014 at 02:34 PM
Well, I had to test it myself so here's the result if there's anyone who's also interested.
I made a simple animation with a cube using both MoveTowards method through script and Unity's built-in animation system. There was almost no change in gpu's latency. However, cpu's latency was more sensitive. So, through script, MoveTowards method caused up to 0.10 ms latency while playing regular animation almost made no change. If there was anything it could be something between 0.1 and 0.3 ms.
Long story short, animation is better when performance is on the table. I can't say the same when it comes to long animations though. I've only tested a simple transformation of a cube.