Do not extend GLSurfaceView. If you have not already done so, save the renderer as a variable in your activity class:
public class MyActivity extends Activity { protected GLSurfaceView mGLView; protected GraphicsRenderer graphicsRenderer;
Then you can create a method in your renderer to control the frame rate:
public class GraphicsRenderer implements GLSurfaceView.Renderer { private long framesPerSecond; private long frameInterval;
source share