简体   繁体   中英

performance between ImageView or opengl-es when drawing multiple bitmaps in android

I have multiple bitmaps to be drawn in the screen(the images will be loaded online and changed accordingly).

I can display them using either ImageView or opengl-es, so now I wonder if there is any performance difference between them?

I had this same question a while back. I decided to use the ImageView widget, simply because I sought to avoid the complications of OpenGLES. The ImageView class is extremely fast, and later I would find out why: on my devices at least (Nexus 4 and Nexus 7), ImageView is implemented under the hood using OpenGLES. I found this out when my devices started streaming OpenGL rendering errors one day after a code change.

So in the end I had to wind up delving into OpenGLES and could not avoid it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM