I have a static mesh of quads and tris. To speed up my performance i put them into a Display List. It looks like following:
modelList = glGenLists(1);
if (modelList != 0) {
glNewList (modelList, GL_COMPILE);
glEnableClientState (GL_COLOR_ARRAY);
glColorPointer(3,GL_FLOAT,0,vertex_color);
glEnableClientState (GL_VERTEX_ARRAY);
glVertexPointer (3, GL_FLOAT, 0, vertices);
glDrawElements (GL_QUADS, numQuads*4, GL_UNSIGNED_INT, elements_quad);
glDrawElements (GL_TRIANGLES, numTrias*3, GL_UNSIGNED_INT, elements_tria);
glEndList();
}
It increases my perfomrance for models with about 50.000 elements quite good. But if my modelsize is about 300.000 elements there is nearly no difference. Is there a size limit or did i make a mistake?
Thanks
Juergen




