I am drawing lots of rectangles in a 2D application. For each rectangle I am drawing 2 triangles.
Right now I am using a VBO with an Array-Buffer and an Element-Array-Buffer in combination with glDrawElements.
However, I dont use many shared vertices. Each rectangle has 4 vertices and 6 indices, so only 2 vertices are shared per 2 triangles.
So I was thinking that maybe using glDrawArrays with GL_QUADS instead of GL_TRIANGLES would be a better idea.
My benchmarks have shown absolutely no difference in terms of performance with either of both. However, I am not quite sure how this would go on other kinds of hardware, especially laptops with limited graphics capabilities.
Thank you very very much for the help. I really appreciate it.