SurfaceFlinger
Dump of SERVICE SurfaceFlinger
Find more information about dumpsys
1
|
|
Frame Latency
1
|
|
According to output definitive, The data returned looks like this:
1 2 3 4 5 |
|
The first line is the refresh period (here 16.95 ms), it is followed by 128 lines w/ 3 timestamps in nanosecond each:
A) when the app started to draw
B) the vsync immediately preceding SF submitting the frame to the h/w
C) timestamp immediately after SF submitted that frame to the h/w
The difference between the 1st and 3rd timestamp is the frame-latency.
Observe composite rate in logcat
1
|
|
Force using SurfaceFlinger as compositor
1
|
|
HWUI
Disable HWUI
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
OpenGLRenderer (libhwui) Properties
http://source.android.com/devices/tuning.html
Google IO 2012: Accelerating Android Rendering
Android 3.0 introduce a new hardware accelerated 2D rendering.
Guy and Haase have presented
- How is android UI being drawn
- How to enable/disable hardware acceleration in application/acitivity/window level
- Limitations for hw acceleration
- ComposeShader
- Old and New drawing model
- DisplayList
- Set layer type per view
- Reasons to use different type of layers
- Tips & tricks for application developers