Hi All,
I’m posting regarding a small app i’m working on that basically allows a grid of particles to be manipulated based on the mouse position.
It is fairly primitive in its ideas, but I thought it would be a good test of my newly aquired actionscripting knowledge!
It runs on the basic idea that (when clicked) a force is applied to a particle (movieclip instance). The force is inversely proportional to it’s distance.
A loop goes through all the particles in the grid (a 1 dimensional array) and calculates this force, changes the velocity, and then the position. This happens every frame for every particle.
At about 10,000 particles however I notice a huge decrease in fps. I know what you’re thinking, its because of the amount of particles! However, I thought that the performance of the app would be directly affected by the processing power. Considering my itouch can easily handle about 8000 particles I’m guessing my pc should be able to handle 10000 particles a lot better.
I was hoping any of you more experienced users could guide me as to what things affect calculation times/cpu usage etc. I have attached the .swf of it running at 10000 particles.
Thank you in advance!