particle system optimization