O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Optimizing the AIController script

In this first section, we will go back to our AIController script, which we had already created in the previous chapter. However, this AIController script needs a little more tweaking to make our game frame rate higher.

Prepare for Lift Off

Before we start tweaking the AIController script, we need to see the frame rate result in our game.

First, click Play to run the game and open the Statistics window by clicking on the Stats option on the top-right corner of the Game view to bring up the Statistics window. In this window, you can see many parameters that are very useful if you are trying to debug your game and see how much Frame Rate, Draw Calls, Tris (triangles), Verts (vertices), Textures, and Memory the game ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required