Christian Mayer writes: > >Norman Vine wrote: >> >> This profiling run might be enlightening >> > >IT's very interesting to see that fgGetBool takes a >significantly longer >time to run (3x - 10x as long). > >Perhaps we can optimze the result by returning a int instead of a bool >(afaik is int supposed to be the 'fastest' type for any system)?
Things have changed considerably in 24 hours :-))) --preliminary profiling results from this AM-- % cumulative self self total time seconds seconds calls ns/call ns/call name 59.20 0.74 0.74 40047 18478.29 19976.49 fgRenderFrame(void) 20.00 0.99 0.25 39218 6374.62 6374.62 fgUpdateTimeDepCalcs(void) 16.00 1.19 0.20 fgMainLoop(void) 4.80 1.25 0.06 40686 1474.71 1474.71 fgReshape(int, int) 0.00 1.25 0.00 15103364 0.00 0.00 FGColumnVector3::Debug(int) It seems to be worthwhile trying to get fgRehape() out of the loop This is only necessary for determining if the Panel display has been toggled or switched so we should be able to get this out of the main loop also :-) Folks might want to update their files for a 'plesant' surprise Good work David ! Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel