|
From: Chetan D. <che...@as...> - 2003-12-01 19:07:52
|
Dear All,
On a opengl discussion board, I recently found a post saying
GL_COMPILE_AND_EXECUTE
slows down the rendering.
What we genereally do (in glam and my application) is:
void render()
{
if(!mDisplayListId)
{
mDisplayListId = glGenLists(1);
glNewList(mDisplayListId,
GL_COMPILE_AND_EXECUTE);//<-----------------------------
.......
glEndList();
}
else
glCallList(mDisplayListId);
}
If the above post is correct, we should make some changes, like having a
separate subroutine
for just compiling the display lists (using GL_COMPILE), and only
calling them in the
render() function.
|