Redundant calls to glBegin(GL_TRIANGLE) seem to be making my code faster by 3 times :O!
Heres a pastie:
http://www.pastie.org/612337
Basically List 5 is:
begin triangle list
vertex
vertex
vertex
......
vertex
vertex
vertex
end triangle list
and List 6 is:
begin triangles
vertex
vertex
vertex
end triangles
begin triangles
vertex
vertex
vertex
end triangles
...
begin triangle list
vertex
vertex
vertex
end triangle list
Both lists have the exact same number of triangles in them.
When I run my code, list 5 takes 0.09 seconds to draw, and list 6 takes me only 0.03!
Can anyone see if i'm doing something stupid in my code? Is this normal? Its convenient the later is faster, but I have no idea why and its driving me mad! :(
Thanks in advance :D