Hi,
I have a freeware game which will have a final release in 2 weeks. http://www.multimania.com/nitrocodecorps
‘F’ to have the FPS
When I draw 2D background and Icons to play : 90 fps ( TNT2 m64 )
Since I start to draw only the ground, 60fps( no depth buffer test ), +Hero 40fps, +walls 20fps
And it’s not resolution dependant, FPS are the same for 640480 and 12801024.
And shame on me: 2200 poly per frame
Here is how I draw my objects (OpenIL Loads textures ):
Note: I have the same result with this and with movements inperpolated and polygons sent with glBegin( GL_TRIANGLES )… glEnd();
glEnableClientState(GL_TEXTURE_COORD_ARRAY );
glEnableClientState( GL_NORMAL_ARRAY );
glEnableClientState( GL_VERTEX_ARRAY );
glEnable(GL_TEXTURE_2D);
glColor4f( 1.0f, 1.0f, 1.0f, 0.0f);
for(int a=0 ; a<this->nb_sub_objects ; a++ ){
glBindTexture(GL_TEXTURE_2D,
this->tab_de_textures[a]);
glVertexPointer( 3 , GL_FLOAT , 0 , this->tab_de_ver[a] );
glNormalPointer( GL_FLOAT , 0 , this->tab_de_nor[a] );
glTexCoordPointer( 2 , GL_FLOAT , 0 , this->tab_de_tex[a] );
glDrawArrays( GL_TRIANGLES , 0 , this->nb_vertex[a]*3 );
}
glDisableClientState( GL_VERTEX_ARRAY );
glDisableClientState( GL_NORMAL_ARRAY );
glDisableClientState( TEXTURE_COORD_ARRAY );
Can you help me ?? Please, it’s a freeware … Please gurus …
Thanks.