Time for action – Fine tuning the application (Pro Versions)

Now we're going to take our application and tune it so that it performs well, and has consistent behavior, regardless of where we are in the environment.

  1. Start the Profiler by selecting it from the Window menu (Window | Profiler):
    Time for action – Fine tuning the application (Pro Versions)

    The profiler will start and display the profiling interface for Unity. If you are familiar with the XCode tool Instruments you will find many of the same design and interface concepts in the Unity profiler:

    Time for action – Fine tuning the application (Pro Versions)

    The Profiler will display metrics across a range of different settings: CPU Usage, Rendering, Memory, Audio, and Physics. You can remove profilers by clicking on the X in the upper-left corner of the Profiler.

  2. Remove the Audio profiler by clicking on the X in the upper-left corner of the Profiler:
    Time for action – Fine tuning the application (Pro Versions)
  3. Add the Audio profiler back by clicking on the Add Profiler drop-down and selecting the Audio profiler:
    Time for action – Fine tuning the application (Pro Versions)

    The profilers that are already added will be greyed out. In this example both Audio and Physics can be added to the Profiler.

  4. Start the game by pressing the Play button. Immediately you will see the profiler fill with data from the profiling session:
    Time for action – Fine tuning the application (Pro Versions)

What just happened?

We have used the build in Unity profiler to examine the performance of our application and explore the different metrics that it is returning so that we can gain some insight to the bottlenecks in our application. Now that we've done this we can identify some hot spots and look at a few ways to fix the issues that we uncover.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.254.133