Flint Particle System Forum - Garbage collection issue with PV3DParticleRenderer?2010-11-17T12:50:43+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Garbage collection issue with PV3DParticleRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=122&Focus=493#Comment_4932008-11-13T18:20:27+00:002010-11-17T12:50:43+00:00mindhttp://flintparticles.org/forum/account.php?u=99
Hello,
i took the fountain example from google code and changed the renderer from Pixelrenderer to PV3DParticleRenderer. I also have put a StatsView to see how it is going. FIrst everything seems ...
i took the fountain example from google code and changed the renderer from Pixelrenderer to PV3DParticleRenderer. I also have put a StatsView to see how it is going. FIrst everything seems to be normal, it makes 25 Fps or so. But memory usage gets constantly higher (it does drop sometimes a little but not back normal again) and after a while (some minutes) the Fps also drops down to 10 and even lower. It starts with using 7 MB and after a minutes its 30 MB and growing..
public class flintfountain extends Sprite { private var viewport:Viewport3D; private var emitter:Emitter3D; private var pv3dRenderer:BasicRenderEngine; private var flintRenderer:PV3DParticleRenderer; private var scene:Scene3D; private var camera:Camera3D;
public var particles:Particles;
public function flintfountain() { viewport = new Viewport3D( 500, 500 ); addChild( viewport ); pv3dRenderer = new BasicRenderEngine(); scene = new Scene3D(); camera = new Camera3D(); camera.z = -300;
class Fountain extends Emitter3D { public function Fountain() { counter = new Steady( 500 ); addInitializer( new PV3DObjectClass( Particle, null, 4 ) ); addInitializer( new ApplyMaterial( ParticleMaterial, 0x666666, 1, ParticleMaterial.SHAPE_CIRCLE ) );
addInitializer( new ColorInit( 0xFFCCCCFF, 0xFF6666FF ) ); addInitializer( new Velocity( new DiscZone( new Vector3D( 0, 250, 0 ), new Vector3D( 0, 1, 0 ), 60 ) ) ); addInitializer( new Lifetime( 3.2 ) );
addAction( new Move() ); addAction( new Accelerate( new Vector3D( 0, -150, 0 ) ) ); addAction( new Age() ); } }]]>
Garbage collection issue with PV3DParticleRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=122&Focus=497#Comment_4972008-11-13T22:21:33+00:002008-11-13T22:21:51+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
I ran your code with no problem. Then, just to check, I dropped back to an earlier version of Papervision and ran it and had the problem you observe. When using the original papervision 2.0 beta the ...
Garbage collection issue with PV3DParticleRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=122&Focus=500#Comment_5002008-11-14T13:39:12+00:002010-11-17T12:50:43+00:00mindhttp://flintparticles.org/forum/account.php?u=99
wow, thanks a lot that's good news! i go get the latest revision.
sorry i did not think of that before.
btw great work with the whole library, respect.
Balazs
sorry i did not think of that before.