hi, please help
Gotta problem with gl lists. Normaly Lists are faster than raw geometry, but I get some understandible “hitches” with many or small geometry count. Even with 10 polygon they get slower… Is this due to a bad list pointer (generated with glGenLists) ?
When using vertex pointer there is less render time, but there is still a terrible hitch ! PFD is under Double Buffering so this is not the problem…
int ivert=0;
int itex=0;
for (int t=0; t<tri_count; t++){
glBegin(GL_TRIANGLES);
glTexCoord2f(ptex_coord[itex], ptex_coord[itex+1]);
itex+=2;
vec v = pvert[ivert];
glVertex3f(v.x,v.y,v.z);
ivert++;
glTexCoord2f(ptex_coord[itex], ptex_coord[itex+1]);
itex+=2;
v = pvert[ivert];
glVertex3f(v.x,v.y,v.z);
ivert++;
glTexCoord2f(ptex_coord[itex], ptex_coord[itex+1]);
itex+=2;
v = pvert[ivert];
glVertex3f(v.x,v.y,v.z);
ivert++;
glEnd();
now add the functions of newlists and pointers…
This code is perfectly speed enough for small polygon count… But why, why with display lists the frame time raise suddenly very very high for only a couple frame (even worse with vertex pointer and 10 polygon)??? There is no tasks running on the system… Cpu is at 98% free on 3ghz so performance is not the problem.
Maybe some know… well even if not, thank you for your time