Is there a limit on maximum number of primitives to be rendered on FBO per frame? If so, is there any glGet or any other API to find out the maximum number of primitives allowed per frame?
I开发者_如何学编程 draw a set of triangles into a texture using FBO. When the number of triangles exceed a certain limit, the rendering of that frame fails. Since my code behaves differently for different cards, I believe its graphics card dependent.
It works in Galaxy tab with PowerVR SGX 540 and not in Milestone with PowerVR SGX 530.
EDIT: I found the same problem being discussed in this thread http://www.khronos.org/message_boards/viewtopic.php?f=4&t=1276 Just that instead of the time lag, the application proceeds without rendering that frame in my case. Please look into the thread for more details. Could anyone let me know the answer for this?
Are you using VBOs? I would guess it's more likely that you're exceeding the memory limit on the gpu. You can query the memory size and do some quick math to see if that's the case.
精彩评论