removeRigidBody doesnt delete from memory

Software: Away3D 4.x

John Brookes, Moderator
Posted: 06 July 2012 05:54 PM   Total Posts: 732

A rigidbody or any collsionObject stays in memory after being removed from the physics world using either removeRigidBody or removeCollisionObject.

   

John Brookes, Moderator
Posted: 08 July 2012 11:27 AM   Total Posts: 732   [ # 1 ]

Confused on this.
Profiling shows the number of rigidbodies increasing everytime I reload a level.
Also memory increases.
But running the game and swapping through levels several times doesnt show the memory increases.

So erm maybe not a bug :/

   

Yang Li, Administrator
Posted: 13 July 2012 07:41 AM   Total Posts: 80   [ # 2 ]

yeah, removeRigidBody just remove the body from physics world, but not release the pointer in memory. I will add dispose method in AWPCollisionObject to fix this.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X