On Mon, 19 Jun 2006 23:12:05 -0700 syd & sandy <[EMAIL PROTECTED]> wrote:
> I know this was discussed a while back , and if there was a solution I > think I missed it. > So I'll stick my neck out and ask .... > I used to get better framerates night flying, unless I enabled enhanced > lights. > Now it doesnt matter if enhanced lights are enabled or not , I get the > low framerates as soon as the airport lights come on. Ive got a 1.1 gig > AMD Athalon , with a Geforce 4 MX4000. > Average framerates are 25 - 30 , and drop to about 8 looking at KSFO at > night. > Is there a way to get the old style lighting back? Ive looked through > the code but haven't sorted that out . > I apologize if I missed the solution , if its been posted , but I'm > working on the cockpit lighting for the 777-200 , and its frustrating > enough that I give up after a while .Well , that and whatever recent > change that has caused the program to sit at "Initializing subsystems" > for a good 4-5 minutes. > Thanks for any help, I really think its a fantastic program , and wish I > had time to brush up on my opengl programming so I could contribute more > than just aircraft. I give up on the sourceforge mail archive and I therefore reproduce my mail below; you can solve your problem by applying the provided patch: =============================================================================== From: Jean-Yves Lefort <[EMAIL PROTECTED]> To: flightgear-devel@lists.sourceforge.net Reply-To: flightgear-devel@lists.sourceforge.net Subject: [Flightgear-devel] performance and appearance issues with point sprites Date: Sun, 5 Mar 2006 06:42:17 +0100 X-Mailer: Sylpheed running on FreeBSD A little table (GeForce4 MX 4000, 1280x960) for fgfs --timeofday=midnight: point-sprite enhanced-lighting fps runway/taxiway lights =========================================================================== false false 18 steady pixels [1] false true 2 steady thick points [1] true false 11 dim and blinking pixels [2] true true 11 steady thin points [3] [1] Identical to CVS < 20060126. [2] Nice for christmas, but otherwise completely broken. This is what I get without the patch. [3] Best attempt at looking like a real airport, I'd use this on a more powerful system. Enabling line-smooth removes about 7 fps from these figures. See the attached patch (I think point-sprite and line-smooth should be disabled by default). -- Jean-Yves Lefort [EMAIL PROTECTED] http://lefort.be.eu.org/ [flightgear-perf.diff text/plain (1.3KB)] Index: src/Main/renderer.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/source/src/Main/renderer.cxx,v retrieving revision 1.44 diff -u -r1.44 renderer.cxx --- src/Main/renderer.cxx 21 Feb 2006 01:19:19 -0000 1.44 +++ src/Main/renderer.cxx 5 Mar 2006 05:29:14 -0000 @@ -222,8 +222,9 @@ glFrontFace ( GL_CCW ); // Just testing ... - if ( SGIsOpenGLExtensionSupported("GL_ARB_point_sprite") || - SGIsOpenGLExtensionSupported("GL_NV_point_sprite") ) + if ( (SGIsOpenGLExtensionSupported("GL_ARB_point_sprite") || + SGIsOpenGLExtensionSupported("GL_NV_point_sprite")) && + fgGetBool("/sim/rendering/point-sprite")) { GLuint handle = thesky->get_sun_texture_id(); glBindTexture ( GL_TEXTURE_2D, handle ) ; @@ -232,7 +233,8 @@ // glEnable(GL_POINT_SMOOTH); glPointSpriteIsSupported = true; } - glEnable(GL_LINE_SMOOTH); + if ( fgGetBool("/sim/rendering/line-smooth") ) + glEnable(GL_LINE_SMOOTH); // glEnable(GL_POLYGON_SMOOTH); glHint(GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE); glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE); =============================================================================== -- Jean-Yves Lefort [EMAIL PROTECTED] http://lefort.be.eu.org/
pgpuRvu4VKXw7.pgp
Description: PGP signature
_______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel