AWPDynamicsWorld memory deallocation

Software: Away3D 4.x

Denis, Newbie
Posted: 22 January 2013 04:06 PM   Total Posts: 15

I need to create different levels. How do I completely remove AWPDynamicsWorld? I do so:

//create
AWPWorld = new AWPDynamicsWorld();
AWPWorld.initWithDbvtBroadphase();
AWPWorld.gravity = new Vector3D(00, -10);

.
.
.
.
//deallocate
AWPWorld.cleanWorld(true);
AWPWorld.dispose();
AWPWorld null

But when I create new levels by 3-4 times, the memory starts to increase. What am I doing wrong?

   

Yang Li, Administrator
Posted: 24 January 2013 04:38 AM   Total Posts: 80   [ # 1 ]

are you sure dispose all away3d mesh and material?

   

Denis, Newbie
Posted: 24 January 2013 07:24 AM   Total Posts: 15   [ # 2 ]

I’ve checked everything without initializing physics, memory is freed very well. As soon as I add this code just for the test, and create a class object and then delete and so repeat 3-4 times the memory is not freed.

   

Daniel88, Newbie
Posted: 31 January 2013 08:58 AM   Total Posts: 6   [ # 3 ]
Denis - 24 January 2013 07:24 AM

I’ve checked everything without initializing physics, memory is freed very well. As soon as I add this code just for the test, and create a class object and then delete and so repeat 3-4 times the memory is not freed.

That is a good way.. i folllowed you and good results. Thanks
Vietnam travel-Vietnam holiday tours-Paloma cruise Halong

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X