mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T683, moved m_skipCockpitUpdateCycles to FS common so it can be used with P3D/FSX and FS9
This commit is contained in:
committed by
Mat Sutcliffe
parent
fa6101d02b
commit
718221b90e
@@ -377,7 +377,7 @@ namespace BlackSimPlugin
|
||||
}
|
||||
else
|
||||
{
|
||||
m_skipCockpitUpdateCycles--;
|
||||
--m_skipCockpitUpdateCycles;
|
||||
}
|
||||
|
||||
const CAircraftSituation aircraftSituation = simDataOwnAircraft.getSituation();
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -71,6 +71,8 @@ namespace BlackSimPlugin
|
||||
void CSimulatorFsCommon::reset()
|
||||
{
|
||||
m_ownAircraftUpdateCycles = 0;
|
||||
m_skipCockpitUpdateCycles = 0;
|
||||
|
||||
ISimulator::reset();
|
||||
}
|
||||
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user