Ok, here’s the setup. 500mhz p3 with Geforce 2 GTS board. Latest drivers (6.31?) installed.
The code renders 3300 strips, resulting in a total of 13k polygons drawn.
Pseudo code like this:
for (s32 nStrip=0;nStrip<nStrips;nStrip++)
//putting the glcolor call here = 200fps
glColor3f(r,g,b); //putting it here = 600fps
for (s32 v=0;v<pStripLengths[nStrip];v++)
Now, look at that code, it generates a display list, and it draws properly…but look where I put the glColor3f() call. If I put it there, it runs at nearly 600fps. If I move the glColor3f call outside the glBegin/glEnd pair it’ll slow down to 200FPS!
Anybody else think thats wierd? Am I just on crack here and am overlooking something obvious? Figured I’d pass the word along since a 3x speed increase is a big deal to most people…and some people may be doing this without knowing it!