OS = Linux 2.4.18 CPU = P3-500 GFX = GF2 GTS 32MB VER = CVS from yesterday
Default startup went from 13 fps to 16 fps = +23% I should note that I compiled everything with no optimizations and no in-lines since I've been using valgrind a lot lately. * [EMAIL PROTECTED] (Norman Vine) [2002.07.09 20:34]: > Hi All > > I got a considerable boost in the frame rate from the following > patch to PLib. < ~25% at default startup location > > > I am trying to determine if this also true for 'most' systems > before advocating it's inclusion into PLib > > If you do test this please report back with your results > and system type < OS, CPU, GFX card > > > Thanks > > Norman > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Darrell > Walisser > Sent: Sunday, June 30, 2002 10:27 PM > To: [EMAIL PROTECTED] > Subject: [Plib-devel] ssg vertex tables tuning > > > Hi all, > While running FlightGear, I noticed a problem with PLIB's vertex > tables. The implementation is fine, but performance was hideous on Mac > OS X (like 5fps), even on a fast G4. I'm really curious if this is also > a problem on other OS's. > > After some examination, it seems the majority of FlightGear's geometry > is rendered in small triangle fans, of 5-10 vertices each, with the > occasional big lump of vertices in a detailed area. Why is this a > problem? Well, it turns out that the setup time for vertex arrays is > actually slower than glVertex3fv() etc because there are so few vertices > per table. > > So, I coded a solution that only kicks into the vertex array code if the > number of vertices is beyond a certain threshold, otherwise it uses > glVerte3fv(). I picked 25 as the lower bound for vertex arrays, but this > value is probably highly system-dependent and we might want to make it > configurable either at build-time or run-time. > > Here's the code (for ssgVtxTable.cxx). Having different versions of the > inner loop is probably overkill, but you get the idea: <snip/> -- Cameron Moore / I put tape on the mirrors in my house so I don't \ \ accidentally walk through into another dimension. / _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
