Topic was automatically imported from the old Question2Answer platform.
Asked By
drawgy
As far as I know multimesh method just spams the same object on a surface without much manual control. I’m adding trees to my game and if I just copy-paste them, draw calls go up to hundreds and if I add rocks etc. draw calls will grow even more.
So, how can I reduce the amount of drawcalls?
for i in range($School.multimesh.instance_count):
var position = Transform()
position = position.translated(Vector3(randf() * 100 - 50, randf() * 50 - 25, randf() * 50 - 25))
$School.multimesh.set_instance_transform(i, position)