是否有GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT)任何替代? [英] Is there any alternative for GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT)?

查看:2490
本文介绍了是否有GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT)任何替代?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到关于我的应用程序30fps的填充速率。我知道,GLES20.glClear()用于清除屏幕,每平局。如果我评论它,我获得约60fps的一款FPS。但并不如预期的输出。我不得不重新绘制在每一帧整个屏幕内容。是否有任何替代方案,我可以重绘了使用GLES20.glClear()整个屏幕。请让我知道,如果有是提高性能的任何方式与GLES20.glClear(戏耍)?

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?

推荐答案

如果你与你的几何图形每一帧,你可以只清除深度缓冲脱身覆盖整个颜色缓冲区。

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.

这篇关于是否有GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT)任何替代?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆