开发者

Recreating an Android View in OpenGL

Android views are generally quite 开发者_如何学Golaggy. I was wondering if it could be possible to like recreate them in OpenGL-ES to use hardware acceleration on it. If it was possible i'd guess it would have been done already. Is it usefull or possible?


You can implement a GLSurfaceView and draw whatever you like. But I would not recommend recreating an existing view. I don't know which views you mean but on my device they aren't laggy at all...

Update: My statement that views are already hardware accelerated was disproved (see comment). So I did research and found this article (which underlines the contradiction). So hardware acceleration is available in android 3.0+. Still, I wouldn't recommend to reimplement default widgets. There's still a lot you could do wrong and so impact the performance in a negative way.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜