Start a new topic

Memory issue with 3D models

Memory issue with 3D models


Hi,

When I try to load more 3d models in the app, the app crashes because it reaches the memory limit (Terminated due to Memory Pressure).

This is the code I use to load and unload 3d models

 

Creating a model:

World.currentModel = new AR.Model("3d/"+World.markerNear.id+".wt3", {

onLoaded : function()

{

this.rotate.heading = 60.0;

this.translate.x = -10.0;

$("#loading").removeClass("loadingShow");

$("#loading").addClass("loadingNotShow");

  

}

  

});

 

 

Deleting a model

 


World.currentModel.destroy();

World.currentModel = null;

 

How can I solve this issue?

 

 

EDIT:

I also tried adding a clearCache command when I'm deleting the model, but nothing's changed.

Up please.

Hi Luca,

Can you please update the SDK to version 4.0 which was launched yesterday and check if the behavior is fixed. You can download the SDK from here.

Should you need anything further, just let me know anytime.

Greetings

Nicola

Hi Nicola.

It seems to be solved with 4.0. Thanks
Login or Signup to post a comment