[Bf-committers] OpenGL fast option (interpolation benchmark)

Campbell Barton cbarton at metavr.com
Sun Aug 13 16:13:04 CEST 2006


Hi, Iv been interested in the possibility to select fast OpenGL  options 
for a while.

one possible area for speedup is opengl mipmapping interpolation.
but before doing this its worth testing  drawtines, I did some tests 
with a 3d window with 3 models, zoomed in, medium and small in teh view 
so its testing scaling up and down.

I tried replacing
          glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, minfilter);
          glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
with
            glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, 
GL_NEAREST);
            glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, 
GL_NEAREST);

Here are the results for my nvidia drivers and mesa software opengl.


Time taken for 100 redraws
With Interpolation (normal, no changes)
1.7819 sec - nvidia GForce 5950
23.8751 sec - mesa 6.5, software opengl

No Interpolation
1.776 sec - nvidia GForce 5950
13.032 sec - mesa 6.5, software opengl

This is enough of a speed difference that Id like to have the option for 
a faster opengl mode for software opengl.

- Cam

-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241


More information about the Bf-committers mailing list