麻烦本地OpenGL渲染麻烦、OpenGL

2023-09-08 09:24:20 作者:带你装B带你飞

我使用本地code呈现在Android的OpenGL和我得到的是这样的周期性误差:

I am using Native code to render OpenGL in Android and I get periodic errors that look like this:

ERROR / IMGSRV(1435):frameresource.c:610:WaitUntilResourceIsNotNeeded:PVRSRVEventObjectWait失败。

ERROR/IMGSRV(1435): frameresource.c:610: WaitUntilResourceIsNotNeeded: PVRSRVEventObjectWait failed

ERROR / IMGSRV(1018):sgxif.c:124:WaitForRender:PVRSRVEventObjectWait失败。

ERROR/IMGSRV(1018): sgxif.c:124: WaitForRender: PVRSRVEventObjectWait failed

ERROR / IMGSRV(1435):osfunc_um.c:318:PVRSRVEventObjectWait:错误13返回

ERROR/IMGSRV(1435): osfunc_um.c:318: PVRSRVEventObjectWait: Error 13 returned

一旦这些错误拿出我必须重新启动手机或渲染将无法正常重新启动。我已经做了很多网络搜索的,我无法找出什么可能是这些错误的原因。没有任何人有什么建议?

Once these errors come up I have to restart the phone or the rendering won't start again correctly. I have done a lot of web searching and I can't find out what could be the cause of these errors. Does anyone else have any suggestions?

推荐答案

嗯,这是很难说没有看你的code,它可以是一个驱动程序问题,或者一些错误的code。

Well, it is hard to tell without looking at your code, it can either be a driver issue, or something wrong in your code.

请尝试以下操作:

请确保您的GL通话是在同一线程上。尝试注释掉所有渲染code和开始添加行回来,直到你看到再次出现问题。检查内存泄漏
 
精彩推荐
图片推荐