[xplane] Add monitoring of the number of track miles lost due to low FPS

This commit is contained in:
Mat Sutcliffe
2020-01-23 18:42:41 +00:00
parent 3a73933cf1
commit 377b2f6a3e
10 changed files with 52 additions and 16 deletions

View File

@@ -113,8 +113,12 @@ namespace XSwiftBus
//! Frames-per-second, averaged over the last 500 frames,
//! or since this function was last called, whichever is later.
//! Second part is the average simulation time ratio during the same period.
//! Third part is the total track miles over-reported during the same period.
//! \return Zero if no samples were collected since this function was last called.
std::pair<double, double> getFrameStats();
std::tuple<double, double, double> getFrameStats();
//! Reset the monitoring of total track miles lost due to low frame rate.
void resetMilesLost();
//! Get aircraft latitude in degrees
double getLatitudeDeg() const { return m_latitude.get(); }