I’ve been experimenting with adding multiple instances of the default Godot logo as a sprite in my scene. My understanding was that using the same sprite multiple times should only necessitate a single draw call. Surprisingly, I’m observing that the number of draw calls corresponds to the number of sprites. Is this behavior expected?
I’ve noticed the same pattern when using the same object in a tilemap. However, an interesting shift occurs when I switch the project’s rendering mode from Forward+ (or Mobile) to Compatibility: it then batches the rendering into a single draw call as I initially expected.
This issue isn’t new; I observed the same behavior in version 4.2.1, as confirmed by measurements taken with the RenderDoc tool.
I’m curious about the rationale behind this decision. Please don’t get me wrong; I’m just looking to understand the situation better. Is the absence of 2D batching in Vulkan’s renderers due to a specific characteristic of Vulkan, or perhaps a consensus that it’s not a priority for development at this time? Or is it something that’s currently being worked on?
Vulkan 2D batching is planned to be implemented at some point (as it helps reduce CPU overhead and power consumption), but we can’t give an ETA as nobody is currently working on this.