mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Issue #37 Disconnect when FPS drops below threshold
This commit is contained in:
@@ -535,6 +535,8 @@ namespace BlackCore
|
||||
Q_ASSERT(c);
|
||||
|
||||
// disconnect for X-Plane FPS below 20
|
||||
c = connect(simulator, &ISimulator::insufficientFrameRateDetected, this, [this](bool fatal) { if (fatal) { emit this->vitalityLost(); } });
|
||||
Q_ASSERT(c);
|
||||
c = connect(simulator, &ISimulator::insufficientFrameRateDetected, this, &IContextSimulator::insufficientFrameRateDetected);
|
||||
Q_ASSERT(c);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user