understood, can you post the htop/top or vmstat numbers for a few aircraft so that we can take a look ?
Regarding ND performance: I just checked it again:
https://gitorious.org/fg/fgdata/source/ ... y.mfd#L176The only real candidate that may be contributing to lag is actually the "route" layer, which hasn't yet been ported, and which isn't exactly straightforward to port - it's one of the more difficult layers, and not really suitable to be directly ported, so I am not sure if we will make it in time for 3.0 - we would basically need to split it into 2-3 different layers (waypoint, legs etc) and then update those selectively - currently, the heuristics are still "dumb" and still using removeAllChildren() which isn't exactly canvas-friendly.
Last time I looked at it, I wasn't entirely sure how to best port it without causing breakage, also because I am not exactly sure how to test it reliably - this would need to be coordinated with Gijs or Hyde, so that we can directly act if necessary.
So it would be up to Gijs and Hyde to document the existing code and clean it up a bit (or add sanity checks), so that we can take a look and try to generalize it in order to port to MapStructure - currently, it's still using the old method, i.e. algorithmically it's unoptimized and may cause stutter.
I am also not sure if MapStructure itself is sufficiently flexible to support this particular layer without any major additions ...
There are a few other layers still using the old removeAllChildren() logic, so these MAY contribute to lag, but not in any significant fashion - obviously, this is affected by the frequency of the running update loop - which defaults currently to 0.05
Basically, we just need people to look at the layers specified in "navdisplay.mfd" - any layer that lacks the
isMapStructure:1 field, is still an old, inefficient, layer and needs to be ported - analogous to the FIX/NDB/VOR or DME layers, which can serve as examples.
However, those other layers should be straightforward to port by aircraft developers like the 747/777 teams, just based on working through the MapStructure discussion, or even just looking at other ported layers.