SceneKit(ARKit) - Huge lag on adding multiple nodes

Viewed 520

In my AR game, at specific intervals, a function is called that adds multiple nodes to the scene (between 1 and 12 nodes). These individual nodes are all the same - they consist of the same blender model, same SCNCone, same spotlight and same physics bodies. But when I add them performance drops from 60fps to 30 fps.

Tride solutions: cloning nodes and sharing geometries, preparing to render on SCNView, preloading and storing loaded nodes but nothing helps.

Please help me to find a correct solution for best performance!

Some data about objects:

vertex: ~5000 per 1 objects

polygons: ~1800 per 1 objects

Bounding Box: width - 60 height - 25 depth - 20

Thanks for any help!

0 Answers
Related