I did some experimenting with fgReshape, adding a simple test at the
start to return if the width, height, and panel visibility were
unchanged, but saw no framerate improvement.  Upon closer examination,
the only OpenGL-related things in the function are

    glViewport( 0, (GLint)(height - view_h), (GLint)(width), (GLint)(view_h) );

and

    ssgSetFOV( globals->get_current_view()->get_h_fov(),
               globals->get_current_view()->get_v_fov() );

Does glViewport have any significant overhead?  Don't we have to call
it every frame anyway (I know the panel code does so).


All the best,


David

-- 
David Megginson
[EMAIL PROTECTED]


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to