Hello everybody! I’ve been using Babylon with great pleasure for the development of my RTS game.
I’m now experiencing some weird behavior with instances. I load some OBJ files, create a single mesh out of each OBJ and then create instances of those meshes. The meshes have color materials (no textures). The instances work fine when I only create instances of one mesh. When I create an instance of another mesh (so I have 2 different instances on screen, e.g. a tank and a buggy), the game starts lagging really badly.
I can have dozens of buggies OR dozens of tanks and things run smoothly. As soon as I start mixing them with only 1 of each type, things get laggy.
Does this sound familiar to anyone? What can be done about it?
Using Babylon 4.1.