Systers Community
(Part 1 of 2) Inspect GPU Rendering Speed and Overdraws
The Profile GPU Rendering tool displays, as a scrolling histogram, a visual representation of how much time it takes to render the frames of a UI window relative to a benchmark of 16ms per frame. GPU overdraw helps to identify overdraw by color-coding your UI.
Prerequisite
- Setup Powerup Android.
Steps
- Enable the profiler
- On your device, go to Settings and tap Developer Options.
- In the Monitoring section, select Profile GPU Rendering.
- In the Profile GPU Rendering dialog, choose On screen as bars to overlay the graphs on the screen of your device.
- Open the Powerup app that you want to profile.
- Inspect the output
- The following are a few things to note about the output:
- Each bar has colored components that map to a stage in the rendering pipeline, mention rendering stages for each segment.
- The following are a few things to note about the output:
- Visualize GPU overdraw
- On your device, go to Settings and tap Developer Options.
- Scroll down to the Hardware accelerated rendering section, and select Debug GPU Overdraw.
- In the Debug GPU overdraw dialog, select Show overdraw areas.
Work submission
- Submit screenshots of Profile GPU Rendering graph and the above mentioned requirements.
- Submit the screenshots of GPU overdraw areas.
- Submit all the screenshots in the form of a document along with your report for each screenshot.
- Continue to (Part 2 of 2) AFTER completing this.
Resources
- Ask any questions in #powerup on Systers Open source Slack.
- Reference article
Task tags
Students who completed this task
Chinmay Kulkarni, Yuyuan Luo