GLES20Canvas.nDrawDisplayList is slow

隐身守侯 提交于 2019-12-23 09:33:08

问题


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:


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



来源:https://stackoverflow.com/questions/6630672/gles20canvas-ndrawdisplaylist-is-slow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!