Search code examples
androidbattery

Implications of using GLSurfaceView on power consumption and battery life


My app is using GLSurfaceView for displaying images (and fast transformation). I've noticed that even when I merely initialize the surface, fill it with solid color and don't call any further OpenGL functions, after some time of activity staying in foreground the tablet starts getting hot. CPU consumption is almost 0%, so I assume it's GPU. Am I right? And if so, is there any way to throttle GPU? The operations I'm using OpenGL for are not at all performance-demanding.


Solution

  • Have you set the render mode to RENDERMODE_ONDEMAND? See docs here: http://developer.android.com/reference/android/opengl/GLSurfaceView.html#setRenderMode(int)