Closed GoogleCodeExporter closed 8 years ago
I investigated further into the memory leak problem and came up with something
interesting :
Test 1 : on EnterFrame basis
1 - add plane to a scene3D (addChild)
2 - remove plane (removeChild)
3 - destroy plane (unregister plane at it's material, nullify geometry and
all...)
4 - render the scene3D
==> No memory leak
Test 2 : on EnterFrame basis
1 - add plane to a scene3D (addChild)
2 - render the scene3D
3 - remove plane (removeChild)
4 - destroy plane (unregister plane at it's material, nullify geometry and
all...)
==> memory leak with intensity depending on the mesh tessellation and not the
material size
Conclusion : The renderer create somewhere a copy of the geometry of new
objects
which is completely independant of the initial displayObject reference (since
it has
been nullified).
I worked hard to find where but i lack the debugging tool to spot where the
memory
goes. Sadly for me it means, Papervision is useless till this issue is solved.
I may
continue my search in my spare time though...
Original comment by Krob...@gmail.com
on 14 Sep 2008 at 11:21
Additional information :
The memory leak occurs when the object has a bitmapMaterial and not with a
WireframeMaterial or ColorMaterial.
There is a memory leak though with Wireframe and ColorMaterial if you dont
unregister object after removal from the displayList
Original comment by Krob...@gmail.com
on 14 Sep 2008 at 5:22
Fixed
Original comment by r.hauw...@gmail.com
on 17 Nov 2008 at 12:07
Original issue reported on code.google.com by
Krob...@gmail.com
on 11 Sep 2008 at 8:46