Flint Particle System Forum - Strange memory usage (Particle2d / Steady counter) 2011-10-16T21:53:49+01:00 http://flintparticles.org/forum/ Lussumo Vanilla & Feed Publisher Strange memory usage (Particle2d / Steady counter) http://flintparticles.org/forum/comments.php?DiscussionID=526&Focus=1741#Comment_1741 2011-10-06T20:09:57+01:00 2011-10-16T21:53:49+01:00 evo http://flintparticles.org/forum/account.php?u=553 Hey, first I want to say that I love the Flint engine and I'm sure I will be using it a ton in the future! I guess I'll start by showing a picture explaining the issue: At the top if my ...
I guess I'll start by showing a picture explaining the issue:



At the top if my memory usage profiler (Flashdevelop). Middle are the "Live Objects" Max Count / Current Count / Memory. Last is my code.

In the memory profiler pic you can see a seesaw during the first third, this is before the emitter is created. After that I create the emitter and you can see the memory steadily increase. While watching the Live Object viewer I could see that PortalBlueDot Count (2nd column) was pretty much increasing/decreasing in sync with what the profiler shows. It does this until reaching a Max Count (which I assume is the maximum objects of this type alive at any one time) of 1500 than does the complete drop off you see at the end of the profiler. From then on the current count stayed around 300, expected for 100 particles/sec with a lifetime of 2-3, right?

What I'm trying to figure out is what caused the large buildup of extra particles when they weren't required, what triggered the "evening out" of memory usage, and finally how can I prevent the buildup and keep the particle creation "steady" as the counter name implies?

Additional info:

PortalDotBlue is a simple 5px circular sprite created in Flash CS4.
This entire process was done with the application running idle with the exception of me clicking to start the emitter.

Thanks in advance!]]>
Strange memory usage (Particle2d / Steady counter) http://flintparticles.org/forum/comments.php?DiscussionID=526&Focus=1742#Comment_1742 2011-10-08T08:28:58+01:00 2011-10-16T21:53:49+01:00 evo http://flintparticles.org/forum/account.php?u=553 Analyzing things again it seems that the number of particles being created is working fine, never getting much about 300 (as shown by Particle2d's count)... it's that the graphic being used in ...