본문 바로가기
User Guide

Debug GPU Overdraw Walkthrough (52)

by 각종 잡상식 지식 모음 2016. 6. 10.
반응형

Debug GPU Overdraw Walkthrough

This walkthrough shows how to visualize overdraw on your mobile device by color-coding interface elements based on how often they are drawn underneath.

What it's good for:

  • Showing where an app might be doing more rendering work than necessary.
  • Helping you see where you might be able to reduce rendering overhead.

Prerequisites


Visualizing Overdraw on Your Mobile Device


    1. Figure 1. Steps for turning on Debug GPU Overdraw.

    2. On your mobile device, go to Settings and tap Developer Options.
    3. In the Hardware accelerated rendering section, select Debug GPU Overdraw.
    4. In the Debug GPU overdraw popup, select Show overdraw areas.

    1. Figure 2. Example of
      Debug GPU Overdraw output.

    2. Don't panic as your screen turns into a delirium of colors. The coloring is provided to help you diagnose your app's display behavior.

    1. Figure 3. Color key for Debug GPU Overdraw output.



    2. The colors are hinting at the amount of overdraw on your screen for each pixel, as follows:
      • True color: No overdraw
      • Blue: Overdrawn once
      • Green: Overdrawn twice
      • Pink: Overdrawn three times
      • Red: Overdrawn four or more times

    1. Figure 4. Examples of undesirable and desirable 
      Debug GPU Overdraw output.




    2. Some overdraw is unavoidable. As you are tuning your app's user interface, the goal is to arrive at a visualization that shows mostly true colors and 1X overdraw in blue.
반응형

'User Guide' 카테고리의 다른 글

GPU Monitor (51)  (0) 2016.06.10
Perfect GPU Use (50)  (0) 2016.06.10
CPU Monitor (49)  (0) 2016.06.10
Investigating Your RAM Usage (48)  (0) 2016.06.10
Memory Monitor (47)  (0) 2016.06.10

댓글