I am working with the 3D model and I am using the Scene Kit for rendering and Model I/O for loading the obj file. It works perfectly fine for the small size of obj. But now I have 250MB of file and when It starts loading it takes too much memory and lower end devices are crashing.
How can I read this obj files that is used by the scene kit or any alternate way to read this file? Below is the line of code I used for reading obj file:
MDLAsset *asset = [[MDLAsset alloc] initWithURL:mapURL]; MDLMesh *object = (MDLMesh*)[asset objectAtIndex:0];
Is there any alternative way to load large obj files?