Flint Particle System Forum - improve performance2011-12-13T04:00:32+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
improve performancehttp://flintparticles.org/forum/comments.php?DiscussionID=394&Focus=1332#Comment_13322010-09-11T05:10:54+01:002011-12-13T04:00:32+00:00sheisdigitalhttp://flintparticles.org/forum/account.php?u=400
Most of my game runs great. There is one place where the frame rate drops to an unacceptable 20 FPS.
I am looking for ideas on any tweaks big or small that will bring me closer to my desired frame ...
I am looking for ideas on any tweaks big or small that will bring me closer to my desired frame rate (30 FPS).
A little info about the game - I am using an emitter to spit particles from 5 different zones so it actually looks like I have 5 emitters on screen. I have already played around with the imageclass to see which yields best results. I want my particle streams to be thick - so my counter is set to around 100.
The overall dimensions of my game are 930 x 500 but only 640 x 480 contain the particles (Im using a death zone to kill particles beyond that point). I'm using a collision bounding box of 640 x 480 because the particles need to bounce off eachother.
The collision box (ON or OFF) barely effects the frame rate.
Any ideas? I'm so close!]]>
improve performancehttp://flintparticles.org/forum/comments.php?DiscussionID=394&Focus=1335#Comment_13352010-09-12T11:27:03+01:002011-12-13T04:00:32+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
Hi
If you're using a BitmapRenderer or PixelRenderer, make sure the rectangle defining it is no bigger than you need. So in your case it would be 640 x 480 pixels. You shouldn't need both the ...
If you're using a BitmapRenderer or PixelRenderer, make sure the rectangle defining it is no bigger than you need. So in your case it would be 640 x 480 pixels. You shouldn't need both the CollisionZone and the DeathZone, since the former keeps the particles inside the space and the latter kills them if they move outside the space.
For more specific tips I would need to see your code.]]>
improve performancehttp://flintparticles.org/forum/comments.php?DiscussionID=394&Focus=1365#Comment_13652010-09-17T13:53:39+01:002011-12-13T04:00:32+00:00sheisdigitalhttp://flintparticles.org/forum/account.php?u=400
Thanks Richard. I am testing with both DisplayObjectRenderer and Bitmap Renderer and am defining the canvas as you mentioned. The reason Im using both CollisionZone and Deathzone is that I want ...
improve performancehttp://flintparticles.org/forum/comments.php?DiscussionID=394&Focus=1369#Comment_13692010-09-21T13:17:12+01:002011-12-13T04:00:32+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
A CollisionZone doesn't make the particles collide with each other, it makes them collide with the edges of the zone. To make particles collide with each other you need the Collide action.
Collide action.]]>