Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GLES20Canvas.nDrawDisplayList is slow

I have a custom view that I am trying to display, however I am seeing a bunch of jitter on it. Everything scrolls slow and it isn't as responsive as it should be.

I used traceview and saw that

GLES20Canvas.nDrawDisplayList

seems responsible for taking a lot of time to execute.

Any help please?

like image 990
Frank Sposaro Avatar asked Jul 08 '11 21:07

Frank Sposaro


1 Answers

GLES20Canvas.nDrawDisplayList is expected to have a large portion of the time if you are drawing a lot, especially very big views. If you are seeing this all over your traceview the answer is "DRAW LESS"

In my specific issue I was drawing a large alpha layer over large views. I would recommend reading the Do's and Dont's from Android 3.0 Hardware Acceleration by Romain Guy

like image 183
Frank Sposaro Avatar answered Oct 15 '22 21:10

Frank Sposaro