开发者

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开发者_如何学JAVA'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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜