mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +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:
@@ -377,7 +377,7 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_skipCockpitUpdateCycles--;
|
--m_skipCockpitUpdateCycles;
|
||||||
}
|
}
|
||||||
|
|
||||||
const CAircraftSituation aircraftSituation = simDataOwnAircraft.getSituation();
|
const CAircraftSituation aircraftSituation = simDataOwnAircraft.getSituation();
|
||||||
|
|||||||
@@ -104,11 +104,10 @@ namespace BlackSimPlugin
|
|||||||
void synchronizeTime();
|
void synchronizeTime();
|
||||||
|
|
||||||
QHash<BlackMisc::Aviation::CCallsign, QPointer<CFs9Client>> m_hashFs9Clients;
|
QHash<BlackMisc::Aviation::CCallsign, QPointer<CFs9Client>> m_hashFs9Clients;
|
||||||
QMetaObject::Connection m_connectionHostMessages;
|
QMetaObject::Connection m_connectionHostMessages;
|
||||||
bool m_simConnected = false; //!< Is simulator connected?
|
bool m_simConnected = false; //!< Is simulator connected?
|
||||||
QSharedPointer<CFs9Host> m_fs9Host;
|
QSharedPointer<CFs9Host> m_fs9Host;
|
||||||
QSharedPointer<CLobbyClient> m_lobbyClient;
|
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;
|
static constexpr int SkipUpdateCyclesForCockpit = 10;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -71,6 +71,8 @@ namespace BlackSimPlugin
|
|||||||
void CSimulatorFsCommon::reset()
|
void CSimulatorFsCommon::reset()
|
||||||
{
|
{
|
||||||
m_ownAircraftUpdateCycles = 0;
|
m_ownAircraftUpdateCycles = 0;
|
||||||
|
m_skipCockpitUpdateCycles = 0;
|
||||||
|
|
||||||
ISimulator::reset();
|
ISimulator::reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
CFsuipc *m_fsuipc = nullptr; //!< FSUIPC
|
CFsuipc *m_fsuipc = nullptr; //!< FSUIPC
|
||||||
int m_ownAircraftUpdateCycles = 0; //!< own aircraft updates, even with 50 updates/sec long enough even for 32bit
|
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_useFsuipc = false; //!< use FSUIPC
|
||||||
bool m_simPaused = false; //!< simulator paused?
|
bool m_simPaused = false; //!< simulator paused?
|
||||||
bool m_simTimeSynced = false; //!< time synchronized?
|
bool m_simTimeSynced = false; //!< time synchronized?
|
||||||
|
|||||||
@@ -2497,7 +2497,6 @@ namespace BlackSimPlugin
|
|||||||
m_simSimulating = false;
|
m_simSimulating = false;
|
||||||
m_sbDataReceived = 0;
|
m_sbDataReceived = 0;
|
||||||
m_syncTimeDeferredCounter = 0;
|
m_syncTimeDeferredCounter = 0;
|
||||||
m_skipCockpitUpdateCycles = 0;
|
|
||||||
m_requestIdSimObjAircraft = static_cast<SIMCONNECT_DATA_REQUEST_ID>(RequestSimObjAircraftStart);
|
m_requestIdSimObjAircraft = static_cast<SIMCONNECT_DATA_REQUEST_ID>(RequestSimObjAircraftStart);
|
||||||
m_dispatchErrors = 0;
|
m_dispatchErrors = 0;
|
||||||
m_receiveExceptionCount = 0;
|
m_receiveExceptionCount = 0;
|
||||||
|
|||||||
@@ -594,7 +594,6 @@ namespace BlackSimPlugin
|
|||||||
qint64 m_simulatingChangedTs = -1; //!< timestamp, when simulating changed (used to avoid jitter)
|
qint64 m_simulatingChangedTs = -1; //!< timestamp, when simulating changed (used to avoid jitter)
|
||||||
int m_sbDataReceived = 0; //!< SB3 area data received
|
int m_sbDataReceived = 0; //!< SB3 area data received
|
||||||
int m_syncTimeDeferredCounter = 0; //!< Set when synchronized, used to wait some time
|
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
|
// tracing dispatch performance
|
||||||
int m_dispatchErrors = 0; //!< number of dispatched failed, \sa dispatch
|
int m_dispatchErrors = 0; //!< number of dispatched failed, \sa dispatch
|
||||||
|
|||||||
Reference in New Issue
Block a user