Hi there.

I have a little problem. I have a lot of geometry in an Array-Buffer. ( > 10.000 triangles)

Sometimes I want to hide some of the triangles temporarily. My thought was, that its a simple thing to just overwrite the triangle data in the buffer with all zeroes.

So I would be rendering a triangle where all 3 vertices are equal.

Now, how would the performance be? I know the worst-case is "it is as much work as rendering a normal triangle". But I would like to know if I save much by doing this.

I was thinking that the vertex shader would probably still have to run for all vertices of the triangle but the fragment shader is likely to not run at all since no fragments will be created, correct?

Is there any other good way to temporarily hide some of my geometry, am I missing something obvious?

Thank you in advance.