FLASH 8: particle.swarm.draw
Here’s a slightly modified version of the particle.swarm .swf from two days ago. Time the agents are acting as drawing points, illustrating the history of the swarm. Clicking anywhere will change color - pressing any key will swap between blur and non-blur.
This example used a modified version of Grant Skinner’s bitmap caching routine to enable a whole tonne of lines to be drawn without hampering the memory. The lines are cached into a bitmap 6 times a second, and then the vectors are cleared from the memory.
There are 60 agents again in this example - a nice demo again of the performance increases in Flash 8. Not quite near the 10,000 agents that I have running in war.paint, but definitely an improvement.





