mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
refs #814, fixed wrong default values for update times causing CPU overload
* use 10s as conservative default value * check in assert if update time is correct
This commit is contained in:
@@ -159,7 +159,8 @@ namespace BlackGui
|
||||
void CAircraftComponent::ps_settingsChanged()
|
||||
{
|
||||
const CViewUpdateSettings settings = this->m_settings.get();
|
||||
this->m_updateTimer.setInterval(settings.getAircraftUpdateTime().toMs());
|
||||
const int ms = settings.getAircraftUpdateTime().toMs();
|
||||
this->m_updateTimer.setInterval(ms);
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
@@ -310,7 +310,8 @@ namespace BlackGui
|
||||
void CAtcStationComponent::ps_settingsChanged()
|
||||
{
|
||||
const CViewUpdateSettings settings = this->m_settings.get();
|
||||
this->m_updateTimer.setInterval(settings.getAtcUpdateTime().toMs());
|
||||
const int ms = settings.getAtcUpdateTime().toMs();
|
||||
this->m_updateTimer.setInterval(ms);
|
||||
}
|
||||
|
||||
void CAtcStationComponent::ps_airportsRead()
|
||||
|
||||
@@ -454,7 +454,8 @@ namespace BlackGui
|
||||
void CMappingComponent::ps_settingsChanged()
|
||||
{
|
||||
const CViewUpdateSettings settings = this->m_settings.get();
|
||||
this->m_updateTimer.setInterval(settings.getRenderingUpdateTime().toMs());
|
||||
const int ms = settings.getRenderingUpdateTime().toMs();
|
||||
this->m_updateTimer.setInterval(ms);
|
||||
}
|
||||
|
||||
void CMappingComponent::ps_connectionStatusChanged(BlackCore::INetwork::ConnectionStatus from, BlackCore::INetwork::ConnectionStatus to)
|
||||
|
||||
Reference in New Issue
Block a user