x


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?

more ▼

asked Aug 20 '11 at 12:14 AM

Overlord gravatar image

Overlord
484 67 78 88

Clearly the problem is your AI code, but that's all anyone can really say without more detail.

Aug 20 '11 at 01:21 AM Eric5h5

When you were Looking at the AI? this can be due to very complex models or very large scripts...

Aug 20 '11 at 02:00 AM stopsecret

Well, the model is a test model made in Unity (A cube, cylinder, and a sphere). The script is the turret script by TornadoTwins.

Aug 20 '11 at 02:11 AM Overlord
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x960
x801
x592
x177
x156

asked: Aug 20 '11 at 12:14 AM

Seen: 963 times

Last Updated: Aug 20 '11 at 02:11 AM