开发者

Recreating an Android View in OpenGL

开发者 https://www.devze.com 2023-04-09 18:49 出处:网络
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

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

精彩评论

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