cont103
07-08-2002, 12:06 PM
Hi,
I have a code like this:
void display(void)
{ disp++;
glClear(GL_COLOR_BUFFER_BIT
| GL_DEPTH_BUFFER_BIT);
glCallList(a_large_bit_map_file);
glutSwapBuffers()
if(disp==200) exit(0);
glutPostRedislay()
}
the total time to draw the scene 200 times is very high. Could you give me some advices about different techniques to reduce the total time? (in fact a draw different bitmap files in each display)
Another question: is there a way to select the software or hardware acceleration in opengl?
Thanks.
I have a code like this:
void display(void)
{ disp++;
glClear(GL_COLOR_BUFFER_BIT
| GL_DEPTH_BUFFER_BIT);
glCallList(a_large_bit_map_file);
glutSwapBuffers()
if(disp==200) exit(0);
glutPostRedislay()
}
the total time to draw the scene 200 times is very high. Could you give me some advices about different techniques to reduce the total time? (in fact a draw different bitmap files in each display)
Another question: is there a way to select the software or hardware acceleration in opengl?
Thanks.