2.1 The optimization process

Optimization is the process of taking an application and making it more efficient. For graphical applications, this typically means modifying the application to make it faster.

For example, a game with a low frame rate means it appears jumpy. This gives a bad impression and can make a game difficult to play. You can use optimization to improve the frame rate of a game making it a better, smoother experience.
To optimize your code, use the optimization process. This is an iterative process that guides you through finding and removing performance problems.
The optimization process consists of the following steps:
  1. Take measurements of your application with a profiler.
  2. Analyze the data to locate the bottleneck.
  3. Determine the relevant optimization to apply.
  4. Verify that the optimization works.
  5. If the performance is not acceptable return to step 1 and repeat the process.
The following is an example of the optimization process:
  1. If you have a game that does not have the performance you require, you can use the Unity profiler to take measurements.
  2. Use the Unity profiler to analyze the measurements so you can isolate and identify the source of the performance problem.
  3. The problem with the game is, for example, rendering too many vertices.
  4. Reduce the number of vertices in your code.
  5. Execute the game again to ensure the optimization worked.
If you do this and the game still does not perform as expected, restart the process by profiling the application again to find out what else is causing problems.
Expect to repeat this process a number of times. Optimization is an iterative process where you might find performance problems in a number of different areas.
Non-ConfidentialPDF file icon PDF versionARM 100140_0201_00_en
Copyright © 2014, 2015 ARM. All rights reserved.