Issue #37 Disconnect when FPS drops below threshold

This commit is contained in:
Mat Sutcliffe
2021-08-10 16:05:18 +01:00
parent f311906d04
commit 81d2dbbac9

View File

@@ -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);