AI Performance Optimization in Games