Ref T683, moved m_skipCockpitUpdateCycles to FS common so it can be used with P3D/FSX and FS9

This commit is contained in:
Klaus Basan
2019-06-13 02:33:00 +02:00
committed by Mat Sutcliffe
parent fa6101d02b
commit 718221b90e
6 changed files with 7 additions and 7 deletions

View File

@@ -377,7 +377,7 @@ namespace BlackSimPlugin
}
else
{
m_skipCockpitUpdateCycles--;
--m_skipCockpitUpdateCycles;
}
const CAircraftSituation aircraftSituation = simDataOwnAircraft.getSituation();

View File

@@ -104,11 +104,10 @@ namespace BlackSimPlugin
void synchronizeTime();
QHash<BlackMisc::Aviation::CCallsign, QPointer<CFs9Client>> m_hashFs9Clients;
QMetaObject::Connection m_connectionHostMessages;
bool m_simConnected = false; //!< Is simulator connected?
QSharedPointer<CFs9Host> m_fs9Host;
QMetaObject::Connection m_connectionHostMessages;
bool m_simConnected = false; //!< Is simulator connected?
QSharedPointer<CFs9Host> m_fs9Host;
QSharedPointer<CLobbyClient> m_lobbyClient;
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
static constexpr int SkipUpdateCyclesForCockpit = 10;
};

View File

@@ -71,6 +71,8 @@ namespace BlackSimPlugin
void CSimulatorFsCommon::reset()
{
m_ownAircraftUpdateCycles = 0;
m_skipCockpitUpdateCycles = 0;
ISimulator::reset();
}

View File

@@ -83,6 +83,7 @@ namespace BlackSimPlugin
CFsuipc *m_fsuipc = nullptr; //!< FSUIPC
int m_ownAircraftUpdateCycles = 0; //!< own aircraft updates, even with 50 updates/sec long enough even for 32bit
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
bool m_useFsuipc = false; //!< use FSUIPC
bool m_simPaused = false; //!< simulator paused?
bool m_simTimeSynced = false; //!< time synchronized?

View File

@@ -2497,7 +2497,6 @@ namespace BlackSimPlugin
m_simSimulating = false;
m_sbDataReceived = 0;
m_syncTimeDeferredCounter = 0;
m_skipCockpitUpdateCycles = 0;
m_requestIdSimObjAircraft = static_cast<SIMCONNECT_DATA_REQUEST_ID>(RequestSimObjAircraftStart);
m_dispatchErrors = 0;
m_receiveExceptionCount = 0;

View File

@@ -594,7 +594,6 @@ namespace BlackSimPlugin
qint64 m_simulatingChangedTs = -1; //!< timestamp, when simulating changed (used to avoid jitter)
int m_sbDataReceived = 0; //!< SB3 area data received
int m_syncTimeDeferredCounter = 0; //!< Set when synchronized, used to wait some time
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
// tracing dispatch performance
int m_dispatchErrors = 0; //!< number of dispatched failed, \sa dispatch