My application is at 2 fps on a pentium II 300 on a linux debian with mesa 3.1,
it is much too slow !!!
Is there any linux opengl benchmarks, that can give me performance of mesa implementation ?
(I wanna know perf diffs from mesa 3.1 to mesa 4)
I use opengl only for 2d drawing, no 3d, what GL inits hints can give me max perf ?
I actually use this code
(l and h is the canvas height and width)
--------------------
glViewport (0, 0, l, h);
glMatrixMode (GL_PROJECTION);
glLoadIdentity ();
glOrtho (0, l, 0, h, -1, 1);
glMatrixMode (GL_MODELVIEW);
glLoadIdentity();
/* Simplest Lighting model*/
glShadeModel(GL_FLAT);
/* I need transparency so... */
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
/* I turn all these off for faster drawing with quality loss*/
glEnable (GL_LINE_SMOOTH);
glEnable (GL_POINT_SMOOTH);
glEnable (GL_POLYGON_SMOOTH);
/**/
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
/*This matters on 3d scene, does it here ?*/
glHint( GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST );
/* Is it the fastest in 2d ?*/
glPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
------------------------
Any clues ?



