开发者

Stuck in glDrawElements

开发者 https://www.devze.com 2023-04-08 14:27 出处:网络
I have a very strange problem. My game engine performs loading of model asynchronously. After that it is added to the rendering loop.

I have a very strange problem. My game engine performs loading of model asynchronously. After that it is added to the rendering loop.

The problem is that sometimes (and it's absolutely random) after model was loaded the execution freezes at glDrawElements. I don't get any EXC_BAD_ACCESS or smth like that.

It seems that all execution is performed inside glD开发者_如何学运维rawElements in some infinite loop. Here is the snapshot that I made in profiler:

Stuck in glDrawElements

Maybe someone knows how glDrawElements works internally and can point me to the possible reason of the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消