Reputation: 32891
I get a fill rate of about 30fps in my application. I know that GLES20.glClear() is used to clear the screen for every draw. If i comment it i get a fps of about 60fps. But the output is not as expected. I have a content to be redrawn for the whole screen in every frame. Is there any alternative where i can redraw the whole screen with out using the GLES20.glClear(). Please let me know if there is any way to play around with GLES20.glClear() to improve the performance?
Upvotes: 1
Views: 2274
Reputation: 52167
If you overwrite the entire color buffer with your geometry each frame you can get away with just clearing the depth buffer.
Should save you some memory bandwidth.
Upvotes: 2