I have a 46x46 texture and I'm drawing irregular chunks of it 1200 times.
On a PowerVR Rogue GE8100, a budget mobile GPU I'm getting 40 FPS.
It's this performance expected from Godot?
What can I do to speed it up?
Below is a simplified example of my code.
Thanks!
export(Texture) var myTexture
var myTextureRegions = [
Rect2(0,0,23,23),
Rect2(23,0,23,23),
Rect2(0,23,20,20),
Rect2(23,23,2,14)
]
var cellSize = 23
func _draw():
for i in range(0, 40):
for j in range(0, 30):
draw_texture_rect_region(myTexture,
Rect2(i*cellSize,j*cellSize,cellSize,cellSize),
myTextureRegions[0],Color.white)