+1 vote

Hellou good people!

The question is for someone, who knows how GODOT works behind the scenes to draw sprites/polygons on screen.

Let's assume I have a big layer (10 times bigger than the screen size).
Now... I can draw it in several ways:
- draw it as one big sprite
- draw it as many smaller sprites aligned at edges
- draw it as a big multitriangular polygon
- draw it as many smaller multitriangular polygons

Now... the intuition tells me, that using polygon approach will be more efficient, than using sprites, as there will be less overhead with transparent pixels and also more triangles makes it easier for gpu to determine whether draw one or not.

What I am not sure about is if there will be a noticeable difference between using one complicated polygon and many smaller polygons. I would assume, that many polygons would be easier, as bounding boxes can quickly rule out all offscreen ones. But on the other hand same goes for individual triangles.

Therefore question is - which method would be best in such situation?
Thanks in advance for help and answers :).

in Engine by (243 points)

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