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?
Asked
Active
Viewed 2,172 times
1
-
2AFAIK glClear() shouldn't cost you anything like 30fps. Are you absolutely certain about that observation? Are you using the depth buffer at all? – Reuben Scratton Jan 18 '12 at 14:12
-
Most likely frame rate is dependent on screen refresh rate. If rendering is not fast enough to produce 60fps, it will update screen every other frame. This doesn't mean that clearing screen takes entire 16.6 ms. – Pointer Null Jul 31 '13 at 08:14
1 Answers
2
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.

genpfault
- 51,148
- 11
- 85
- 139