By watsoncarl
on Wed, 06/20/2012 - 17:12
Hi there,
I have created an app based on the image targets sample that has 60+ models. The user chooses the model to display by rotating a picker on an overlay view controller.
If I load all the objects when I launch the AR environment, the app gives a memory warning and crashes. Ideally I'd only load up the object the picker selects and a couple more on either side ready for when the selection changes. To keep the app stable I need to be able to flush the unused models. What is the best way of doing this selective loading and unloading of model objects in memory? Help!
In this case the geometry of each model is the same and only the texture changes, so a method of loading and unloading textures as the user makes selections would work also.
Thanks in advance!
Carl.
Re: Loading many different Object3D objects prompts memory warni
Re: Loading many different Object3D objects prompts memory warni