Displaying an image contains four steps. Simply put, the CPU compares the display list, the GPU renders the picture display, the memory stores the picture and the data, the battery provides the point force energy. Each part of the hardware has a limit, exceeding this limit will cause the application to run slower, poor display performance, or power consumption.
In order to find the cause of these problems, you need a deep search for the cause, using tools to collect data when your app executes. Use lists and images to visualize, understand and analyze to optimize your code.
Android Studio and your device provide an optimization tool to record and visualize your app's rendering, calculation, memory and power consumption situations.
Note: When you use the Optimization tool, you need to disable Instant Run.
This article Song Zhihui
Personal Weibo: Click to enter
6.0. Android Studio Performance Optimization Tool