Optimized Real-time Flocking