Optimized updating for particles.