To improve OpenGL’s performance to draw things, it is often considered faster to render ONE long triangle strip than to render thousands of small strips.
Why? You can probably find some answers from the following links:
But then, the question becomes: how to combine several triangle strips into one strip?
It is actually quite easy to achieve that; the idea is to use degenerated triangles to connect all the strips together. To create degenerated triangles, what you can typically do is creating some ‘fake vertices’ in between strips:
- 1st strip
- repeat last vertex of 1st strip
- repeat first vertex of 2nd strip
- 2nd strip
- etcetera …
Try search ‘degenerate triangles’ on Google.