I'm optimising my 2d game at the moment and noticed an opengl method taking up 4.6% of a processing for each game loop. The line in question is below,
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
I removed it and the game runs fine saving me a bit of processing power... Do I need the line? What's it actually for, sorry for being a pain im still struggling to get to grips with opengl.