GLES20Canvas.nDrawDisplayList is slow

2019-06-20 05:02发布

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?

1条回答
来,给爷笑一个
2楼-- · 2019-06-20 05:13

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

查看更多
登录 后发表回答