Optimize game loop for better latency.