I missed you, but I tried to stay connected as much as possible with you.
Hope you are all good!
I have some time to do experiments so, why not. I want to create a big scene with max 5 objects, custom objects, imported, but those objects are low poly, aprox 500 verts each.
First atempt was with instances…It worked, but after I draw all the objects even if they are instances the scene moves with delay.
The second was with SPS. Which works prety well, but here I have other problem which I’m trying to understand. Maybe I’m doing something wrong, I don’t know.
I created a SPS foreach imported object, calculate all the transforms I need and at the end I’m creathing the SPS. But if I increase the number of SPS then the scene freeze, till the SPS is done or in the worst case I get a snag error.
I found a solution if I put a delay between SPS creations, this seems to work better but still get some freeze or memory error for big numbers.
The question was. I’m doing something wrong? There is a better solution maybe?
Eg: https://playground.babylonjs.com/#9UYDLC#4 . If you increase rows and cols to 40 and 50 it begin to freeze and with 70 as example I’m getting a webgl error.