# any TBDR limitations?

**URL:** <https://forums.imgtec.com/t/any-tbdr-limitations/142>\
**Category:** PowerVR Insider\
**Created:** [September 16, 2008, 6:45pm UTC](https://forums.imgtec.com/t/any-tbdr-limitations/142 "2008-09-16T18:45:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![d1mbu1b](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@d1mbu1b](https://forums.imgtec.com/u/d1mbu1b)\
**Post date:** [September 16, 2008, 6:45pm UTC](https://forums.imgtec.com/t/any-tbdr-limitations/142/1 "2008-09-16T18:45:31Z")

</div>

Kindly direct me to any developer guidelines you may have for your PowerVR MBX chip.  
  
Does the nature of the TBDR mean that instructions get buffered?  
If so are there any limits on this buffer?  
  
I am having a problem drawing 6000+ GL\_LINE\_STRIPS (coastline data) using one VBO containing&nbsp; 115000+ vertices.  
  
I can draw all of them in different frames but cannot execute all 6000+ glDrawArrays() calls in one frame.

---

<div class="post-metadata">

**Author:** ![xmas](https://avatars.discourse-cdn.com/v4/letter/x/958977/32.png) [@xmas](https://forums.imgtec.com/u/xmas)\
**Post date:** [September 17, 2008, 8:13am UTC](https://forums.imgtec.com/t/any-tbdr-limitations/142/2 "2008-09-17T08:13:25Z")

</div>

Hi,  
  
  
  
  
  
MBX developer guidelines are part of our [POWERVR OpenGL ES 1.1 SDK](https://www.imgtec.com/powervr/insider/sdk/KhronosOpenGLES1xMBX.asp).  
  
  
  
  
  
Yes, buffering of scene data is inherent to a TBDR. The amount of buffer space is implementation-dependent, but POWERVR hardware has mechanisms in place that ensure the scene is rendered correctly even when this buffer becomes full. However I should highlight that 6000 draw calls per frame won’t be fast even if you had just a single line per call, simply because of the overhead associated with each draw call. Can you combine multiple strips to a single one?  
  
  
  
  
  
If you see any particular limits on a specific platform you are targeting, you need to contact the platform provider.

---

<div class="post-metadata">

**Author:** ![d1mbu1b](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@d1mbu1b](https://forums.imgtec.com/u/d1mbu1b)\
**Post date:** [September 17, 2008, 12:08pm UTC](https://forums.imgtec.com/t/any-tbdr-limitations/142/3 "2008-09-17T12:08:30Z")

</div>

Thank you for the reply, tips, and, pointer to the guidelines. Very much appreciated.  
  
Understood. About the manufacturer.  
  
For the sake of followup:  
calling glDrawArrays(GL\_LINES, 0, numVerts); fails as well.  
&nbsp;&nbsp;&nbsp; ...correction above, meant to say GL\_LINES instead of GL\_LINE\_STRIP  
I have to limit the count to about 20000 vertices somewhere around 256K of data.  
and multiple subsequent calls to this fails also.  
I was hoping to add dummy endpoints to each line strip and call with GL\_LINES twice to save instruction overhead as recommended.   
  
basically a poor mans interlacer.  
  
Although the 6000+ instructions per frame yields acceptable (to me) performance on lesser platforms.  
  
  
It acts as if the graphics chip does not have direct memory access to the vertex data even though I am using a VBO.  
I am not sure of the architecture. if the VBO is in shared memory I could be having race condition. If the vertex data is on the graphics chip then I'm hosed.  
again its acting as if all the VBO data is getting sent across the CPU/GPU bus each frame.  
I'm confused and frustrated.  
Is it posible I am trying to access the VBO memory from both sides.  
I see that glBufferSubData() acts like glMapData(). Since glMapData() and glUnMapData() are not part of OpenGL-ES 1.x the is it possible I need to unmap the data mapped by the original load using glBuffer(Sub)Data()?  
  
I assume since I am the only one with this problem, that this is MY bug.  
  
I am using glBindBuffer(GL\_ARRAY\_BUFFER, 0); when I am done with rendering from the VBO.  
I could not find this documented anywhere. Maybe this is the problem.  
Is it possible to differentiate between a VBO and an VertexPointer with a VBO still bound?  
I will be adding this discussion to the khronos forum so please forgive the duplicate effort.  
  
thanks again for the help  
  
  
d1mbu1b2008-09-17 14:11:14

---

<div class="post-metadata">

**Author:** ![xmas](https://avatars.discourse-cdn.com/v4/letter/x/958977/32.png) [@xmas](https://forums.imgtec.com/u/xmas)\
**Post date:** [October 1, 2008, 12:42pm UTC](https://forums.imgtec.com/t/any-tbdr-limitations/142/4 "2008-10-01T12:42:40Z")

</div>

I don’t think there is any problem with VBOs at all. From what you’ve written I can’t see why you believe VBOs are the issue. It is just possible that the platform you are targeting has certain limits regarding vertex data per frame. Unfortunately in this case we won’t be able to help you since this does not apply to MBX in general.
