Current Situation / Problem
LiveTraffic has always subclassed from XPCAircraft that was provided in the old libxplanemp. XPMP2 provides this class, too, for backwards compatibility, but it comes with a small performance penalty as values, that are forward to X-Plane for drawing objects, need to be copied from old structures to new arrays. That's also, why XPCAircraft is marked deprecated in XPMP2.
Suggested Solution
Subclass from XPMP2::Aircraft directly, which changes the the class hierarchy...but would eventually be more performant.
Current Situation / Problem LiveTraffic has always subclassed from
XPCAircraft
that was provided in the old libxplanemp. XPMP2 provides this class, too, for backwards compatibility, but it comes with a small performance penalty as values, that are forward to X-Plane for drawing objects, need to be copied from old structures to new arrays. That's also, whyXPCAircraft
is marked deprecated in XPMP2.Suggested Solution Subclass from
XPMP2::Aircraft
directly, which changes the the class hierarchy...but would eventually be more performant.Benefits Saves on CPU performance.