TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
99 stars 24 forks source link

Use XPMP2's Aircraft class directly #179

Closed TwinFan closed 3 years ago

TwinFan commented 4 years ago

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.

Benefits Saves on CPU performance.