I have some code that generates particles at random locations, and moving in random directions and speed.
Each iteration through a loop, I move all the particles, an
Try using java.awt.image.VolatileImage. It can potentially be used with full hardware acceleration without any CPU rendering.