* support any number of particles by re-using temp buffer * fix exception when changing particle count