yaro_dup1
07-15-2003, 08:52 AM
Hi,
I was experimenting with that code:
void render()
{
glBegin( GL_QUADS );
for( float i = 0; i < 100; i += 0.1f )
{
glVertex3f( 0, 1, i );
glVertex3f( 0, 0, i );
glVertex3f( 1, 0, i );
glVertex3f( 1, 1, i );
}
glEnd();
}
First I called render() for every frame, next I've compiled this function into display list, and later I used LockArraysEXT (with created array of vertices with that coordinates). In all three cases I've got the same number of FPS. Is it normal?
I've checked this codes on AMD K6-2 500 MHz and AMD Athlon XP 2000+. There was the same result: 42 FPS. I've tested it on the same GPU GeForce2 GTS and I think that no matter what CPU I've got because I'm calling only OpenGL commands which contains GPU? Am I right? But could someone give me an example of using display lists or EXT_compiled_array that speeds up the rendering?
thanks
yaro
[This message has been edited by glYaro (edited 07-15-2003).]
I was experimenting with that code:
void render()
{
glBegin( GL_QUADS );
for( float i = 0; i < 100; i += 0.1f )
{
glVertex3f( 0, 1, i );
glVertex3f( 0, 0, i );
glVertex3f( 1, 0, i );
glVertex3f( 1, 1, i );
}
glEnd();
}
First I called render() for every frame, next I've compiled this function into display list, and later I used LockArraysEXT (with created array of vertices with that coordinates). In all three cases I've got the same number of FPS. Is it normal?
I've checked this codes on AMD K6-2 500 MHz and AMD Athlon XP 2000+. There was the same result: 42 FPS. I've tested it on the same GPU GeForce2 GTS and I think that no matter what CPU I've got because I'm calling only OpenGL commands which contains GPU? Am I right? But could someone give me an example of using display lists or EXT_compiled_array that speeds up the rendering?
thanks
yaro
[This message has been edited by glYaro (edited 07-15-2003).]