Flint Particle System Forum - particles dead how can I delete them ?2012-05-26T06:15:36+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
particles dead how can I delete them ?http://flintparticles.org/forum/comments.php?DiscussionID=534&Focus=1777#Comment_17772011-11-07T17:31:37+00:002012-05-26T06:15:36+01:00lisztomaniahttp://flintparticles.org/forum/account.php?u=562
Hi,
I post a previous message but now it's ok.
But my program got too many lags :/ I create a deathzone on all my scene (so all particles are dead but still laggy...)
So my question is quite ...
I post a previous message but now it's ok. But my program got too many lags :/ I create a deathzone on all my scene (so all particles are dead but still laggy...) So my question is quite simple : How can I delete a particle when its variable isDead is true ? Because I have 400 particles per ghost and I've max 4 ghost at the same time on my stage and it's very slow...
Maybe it's cause by the Blurfilter : GetRenderer().addFilter(new BlurFilter(2, 2, 1)); but I think it's not only that or not that.
If you can help me :D
Good night !]]>
particles dead how can I delete them ?http://flintparticles.org/forum/comments.php?DiscussionID=534&Focus=1779#Comment_17792011-11-08T08:09:11+00:002012-05-26T06:15:36+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
If a particle is marked dead (particle.isDead is true) then the system will remove it on the next frame update. You don't have to do anything to remove the particle.
particles dead how can I delete them ?http://flintparticles.org/forum/comments.php?DiscussionID=534&Focus=1781#Comment_17812011-11-08T16:18:55+00:002012-05-26T06:15:36+01:00lisztomaniahttp://flintparticles.org/forum/account.php?u=562
ok, thanks to your fast answer :D
So I think it's the blurfilter function which is the problem :/ I need this effect but I don't know how to optimize it é_è
So I think it's the blurfilter function which is the problem :/ I need this effect but I don't know how to optimize it é_è]]>
particles dead how can I delete them ?http://flintparticles.org/forum/comments.php?DiscussionID=534&Focus=1787#Comment_17872011-11-15T07:21:47+00:002011-11-15T07:22:03+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
Is your bitmap renderer as small as possible? Making the renderer's canvas smaller is the most effective way to optimise the filters.
particles dead how can I delete them ?http://flintparticles.org/forum/comments.php?DiscussionID=534&Focus=1791#Comment_17912011-11-24T03:17:38+00:002012-05-26T06:15:36+01:00haoyutanghttp://flintparticles.org/forum/account.php?u=569
I met same problem before, I start the emitters again and again and found that the performance was going lower.
My solution is: (I did below steps before each start())
1. call killAllParticles() ...
My solution is: (I did below steps before each start()) 1. call killAllParticles() for each emitter. 2. remove the emitters from the renderer. Hope it helps :)]]>