This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

I was wondering if anyone might have some insight into how Godot handles situations where there are many sprites made of small pieces.

I don't know enough about game engine architecture to really probe the source code very deep. So I'm in the dark about what kind of optimizations Godot does when you export a project. Does it run some texture packing algorithms at the end? That's the root of my question really.

I would like to pack all my small sprites into a texture atlas, but it seems the only way to make use of this is to use a textured polygon. It's rather tedious to set them up once imported. I'm also not really clear on how to test the performance to compare whatever polygon overhead their might be against just having lots of little separate textures.

Is it even a meaningful optimization?

Perhaps, is there a better approach for using texture atlases?

in Engine by (5,286 points)

1 Answer

0 votes

If you are looking for automatic atlasing, ImageGroups may be what you are looking for:
I assume this works whatever nodes you used to display the images (Sprite, Polygon...)

by (29,510 points)

Thanks for the response.

I've seen this, but I'm working with .tex files, because I would like to use Godot's mipmapping option.

If not, then when making my own, I'm unclear about what will perform the best for rendering. Sprites with sub-regions, or polygons with textures? And are their painless ways of using these things? It seems like a lot of manual entry.

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.