0 votes

I make ItemSlot scene with panel and texture on it


then when I instance 64 of it to GridContainer it cost 128 draw calls
why is it not batching?

batching work fine when I turn off visible on texture left only panel visible

|->texture x

this cost only 1 draw calls

why it uses so many draw calls and how I make batching work with texture on it

Godot version Godot_v3.4-beta5_win64 GLES3
in Engine by (133 points)

figure it out,
to make batching work you must separate its drawlayer.

currently, I make Node2D on top of texture and set its z_index to 4000


still not a good solution but at least it works.

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.