- Home /
AI Slowing Down Game
I making a Space Sim. For some reason, when the player is flying out in open space, the game runs fine, but when it faces the AI, the game starts freezing and slowing down. To check this, I turned off all the AI, and the game ran fine, but when I added the AI again, the game slowed down only when I was looking at the AI. The AI is super simple. Actually, the AI are just turrets, and even if the turrets are doing nothing, the stay like that. How should I fix this?
Clearly the problem is your AI code, but that's all anyone can really say without more detail.
When you were Looking at the AI? this can be due to very complex models or very large scripts...
Well, the model is a test model made in Unity (A cube, cylinder, and a sphere). The script is the turret script by TornadoTwins.
Your answer
Follow this Question
Related Questions
Why is Unity 4.3 so unstable? 0 Answers
Game crashing on startup? 0 Answers
iOS Game freeze, when particles emitted for first time. 2 Answers
Who to make the game more fast and with better resolution? 1 Answer