Accname
2D-Graphics enthusiast
- Reaction score
- 1,462
Hi guys.
Just a question about performance of draw calls to a graphics card.
Which is the faster way to draw a hexagon with triangles?
Version 1).
Using a triangle strip and 6 vertices. [Look at picture]
Version 2).
Using a triangle fan and 7 vertices. [Look at picture]
I know the second version needs one more vertice but maybe it might be faster. I dont know, maybe its more efficient or something.
Any help is greatly appreciated.
Edit: On a sidenote; what would be the best way to wrap a quadratic texture around these? I really dont like the idea to have hexagon-shaped textures, there is too much cutoff.
Just a question about performance of draw calls to a graphics card.
Which is the faster way to draw a hexagon with triangles?
Version 1).
Using a triangle strip and 6 vertices. [Look at picture]
Version 2).
Using a triangle fan and 7 vertices. [Look at picture]
I know the second version needs one more vertice but maybe it might be faster. I dont know, maybe its more efficient or something.
Any help is greatly appreciated.
Edit: On a sidenote; what would be the best way to wrap a quadratic texture around these? I really dont like the idea to have hexagon-shaped textures, there is too much cutoff.