Mathias Fröhlich wrote:
Hi all,

During the past days I have done some profiling on flightgear. One final outcome of that work was, that most time is spent in ssg routines (yes, ssg not OpenGL!!). The problems are the huge amount of small leaf nodes we get from the ac file loader. That vertex optimization pass makes this a bit better but there was still room for improovement.

I've tried using display lists again (which didn't work in the past) and on my O2 I get a great improvement (up to 30%, but that only means from 6 fps to 9 fps in my case), but on my Linux machine I get a floating point exception.


Could anyone test it on their Linux machine?

Erik
Index: leaf.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/SimGear/simgear/scene/tgdb/leaf.cxx,v
retrieving revision 1.3
diff -p -u -r1.3 leaf.cxx
--- leaf.cxx    17 Feb 2004 14:40:05 -0000      1.3
+++ leaf.cxx    8 Oct 2004 16:32:46 -0000
@@ -250,6 +250,7 @@ ssgLeaf *sgMakeLeaf( const string& path,
 
     // lookup the state record
 
+    leaf->makeDList();
     leaf->setState( state );
 
     if ( calc_lights ) {
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to