On 8 Apr 2006, at 23:44, Pigeon wrote:

It's possible to disable the UIUC and other esoteric FDMs entirely at

the configure stage, IIRC.


    I looked at FG's configure briefly and I do not see how.


    Anyway, here's a patch attempting to "new" AIRCRAFT only when it's needed.


    A brief test using the ornithopter versus the default c172p shows a

difference of about 109mb of memory use.


+1 to apply this, please. While the memory is not active, and hence is paged out, paging it in and out hurts startup performance. With this patch applied, the total virtual memory allocated to fgfs drops from 427 -> 308 for me (default c172 at EGPH). 

I just looked at the uiuc Aircraft struct for the first time ever, it's, uh, wow. That is one /big/ struct. Given that the UIUC FDM was developed for research purposes, that's fine, of course, but I'm amazed no one noticed this before.

James

Reply via email to