Getting an object out of memory

Software: Away3D 4.x

3dNewb, Sr. Member
Posted: 07 January 2013 02:54 PM   Total Posts: 105

Is it enough to call ObjectContainer3D.dispose() to remove if from Flashplayer memory? Or do I need to iterate all the children and all the subgeometries and dispose of everything seperatly?

   

Avatar
80prozent, Sr. Member
Posted: 07 January 2013 06:21 PM   Total Posts: 430   [ # 1 ]

hi

disposing the object should do, but it will still be in memory till the next time the garbageCollector will be automaticlly executed.

if you are trying to delete something, but the memeory does not get freed in reasonable time, keep in mind that a object will not be deleted from memory, as long as it is still referenced by something.

hope that helps

 Signature 

sorry…i hope my actionscript is better than my english…

   

bart_the_13th, Newbie
Posted: 09 January 2013 10:31 AM   Total Posts: 14   [ # 2 ]

I believe you can force gc to run by calling System.gc() twice. Not a good idea to put it in the main loop though
Still, I’m not sure how flash deals with graphic card’s memory

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X