Reputation: 31
In my ARKit project when I'm adding an object to the scene, screen freezes, but next times after this object was deleted - it is added without any lags. The usual approach we used in many similar projects is SceneKit "prepare" method, but this time it doesn't help. Objects I'm adding are 2-5k polygons with diffuse textures about 500px.
What solutions can you suggest?
Upvotes: 1
Views: 351
Reputation: 4064
To preload the right shaders, call 'prepare' on a scene that has the object you want to preload and the same lighting conditions as your final scene destination
Upvotes: 1