+3 votes

I have noticed there are many ways of animating. One of the most obvious ones (to me) is the option of having a single image file with multiple animation sprites, or multiple files each containing one sprite per animation frame.

Which option is most efficient? I personally would like to use a single image instead of multiple; but if using multiple images is more efficient; well - I would go with the most efficient method.

I am still new to animation so any additional tips are welcome :)

in Engine by (491 points)

1 Answer

+4 votes
Best answer

I don't have benchmarks for this, but I think that using a single spritesheet for animation is more performant, as texture switches are kinda expensive in OpenGL iirc.

However, Godot provides the possibility to automatically pack all your images into TextureAtlases during the export process. So I'd say just use the method you're most comfortable with, in the end it will be same :)

by (924 points)
selected by

Ah, neat. Not familiar with TextureAtlases; but at least that way I wont have to worry about how I setup my animations :)

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 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 webmaster@godotengine.org with your username.