English 中文(简体)
gl
原标题:glReadPixels too slow to use

我现在使用<条码>glReadPixels,在<条码>dFrrawame 的<条码>方法上,定期进行录音。 我需要定期抽取这一数据,以便按照我的评估要求保存我的数据。

但是,<代码>glReadPixels的性能确实缓慢,显示滞后。 这里我如何使用这种方法:

gl.glReadPixels(0, 0, 1280, 752, GL10.GL_RGBA,GL10.GL_UNSIGNED_BYTE, bb);

是否有使用<代码>glReadPixels的替代方法? 我如何能够在不造成滞后的情况下挽救形象?

最佳回答

我不知道这是否在甲状腺上提供,但可能的话,PBO(Pixel缓冲物体)会提高性能。 见。 OpenGL.org thread

然而,不期望奇迹! 有了1280*752 RGBA图像,你将每个框架的3.67 甲基溴数据转让。 我不知道安康的数字,但我很幸运的是,你正面临一个记忆带宽或硬盘书写瓶颈。 如果你减少你们的读者人数,并取得更好的业绩,你知道,这个问题是个问题。

另外,你们是否需要“A”部分? 或许可以读回《欧洲刑法》的速度更快。 阅读方式不同。 有些网站way比其他网站更快,因为它们对开放式广播公司记忆进行更好的测绘。 例如,巴西地理统计局可能比阿根廷地理统计局快。 当你要求采用一种与开放式利比里亚公司相当的格式时,每台子必须在运行期间转换。

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签