0 votes

For simple shapes for example, is it better for performance to use custom drawing or sprites? Intuitively I would say there's no difference, because you end up with the same amount of pixels, but what do I know? What do you think?

in Engine by (840 points)

I'm curious about this too.
In my case have a bunch of layered textures that I could either add as a bunch of sprites, or as draw from the texture using the CanvasItem functions.

In regards with performance I can't tell for sure, but it seems to me that rendering would just take the same processing, unless the several sprites require rendering per frame where as the other method only needs to process on update().

But one thing I've noticed for sure is that the draw method behaves better with regards of scaling and quality, they usually get artifacts garbage on the image. Another thing I want to try, is to "draw" a texture resource from these other textures if possible, but gonna make another question for it.

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 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.