mirror of https://github.com/godotengine/godot
Interleaving draw_rect calls with and without a texture forces every rect to have its own draw call. In this case it meant that there is a draw call for every single tile in the atlas. This change makes it so the renderer can batch draw calls which reduced the draw call count by a factor of 512 |
||
|---|---|---|
| .. | ||
| effects | ||
| environment | ||
| shaders | ||
| storage | ||
| SCsub | ||
| rasterizer_canvas_gles3.cpp | ||
| rasterizer_canvas_gles3.h | ||
| rasterizer_gles3.cpp | ||
| rasterizer_gles3.h | ||
| rasterizer_scene_gles3.cpp | ||
| rasterizer_scene_gles3.h | ||
| shader_gles3.cpp | ||
| shader_gles3.h | ||