Now that we have a grasp on how to profile our apps, let's take a look at the primary items that will impact performance. The order of these items is ordered by general importance, but the individual requirements of your app may alter these priorities. Feel free to consult the following checklist the next time you need or want to profile your app:
- Rendering (includes all CPU and memory resources responsible for rendering a frame):
- Render loop (CPU performance): Check the timing of the
render
function and watch for any expensive calls. Ensure that you minimize any object instantiation, logging, or inner loops. Remember that the render function, typically calledUpdate
, will be called 30 times per second or more. All the tools we looked at will let you perform this vital task. - Frame rate (render time): Outside of optimizing your code, the frame rate will often be dictated by the complexity and number of objects we are rendering. As such, you may want to go...
- Render loop (CPU performance): Check the timing of the