On Sunday 13 May 2007, Bill Galbraith wrote: > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of Stefan Seifert > > Sent: Saturday, May 12, 2007 10:38 PM > > To: FlightGear developers discussions > > Subject: Re: [Flightgear-devel] More ideas on dogfighting > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > James Palmer wrote: > > > In your experience, Harald, what has been the approximate > > > > ratio of FDM > > > > > vs Graphics vs remainder code on CPU time? Has anyone done work on > > > clocking the various subroutines in FG to determine this? > > > > (Perhaps I > > > > > underestimate the CPU time required of the FDM?) > > > > You could simply run stand-alone JSBSim > > (http://www.jsbsim.org) to see, how much CPU a FDM needs. I'd > > guess that Yasim lies in the same range. > > > > Nine > > I think that was investigated a few months ago. JSBSim FDM took only a > couple percent of the CPU, or course depending on your hardware and what > you were drawing. I don't think it's anything that you need to worry about.
The FDM part is very cheap. What takes time is the intersection tests. I have a half ready bv tree implementation here that will speed that up. The most important thing here is to get movements right - that is to move correctly on the carrier for example ... Having a better collision detection will enable many ten aircraft simulated on an average current cpu. Greetings Mathias ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel