Some tweaks to make the RE tools work better on live data (not complete yet), refactored some code.
This commit is contained in:
+3
-6
@@ -350,12 +350,9 @@ void SerialWorker::handleTick()
|
||||
//qDebug() << "Tick!";
|
||||
framesPerSec += gotFrames * 1000 / elapsedTime->elapsed() - (framesPerSec / 4);
|
||||
elapsedTime->restart();
|
||||
//if (gotFrames > 0)
|
||||
//{
|
||||
emit receivedFrames(framesPerSec / 4); //misnamed now. Just notifies of FPS and that frames might exist
|
||||
canModel->sendBulkRefresh(gotFrames);
|
||||
gotFrames = 0;
|
||||
//}
|
||||
emit frameUpdateTick(framesPerSec / 4, gotFrames); //sends stats to interested parties
|
||||
canModel->sendBulkRefresh(gotFrames);
|
||||
gotFrames = 0;
|
||||
}
|
||||
|
||||
//totally shuts down the whole thing
|
||||
|
||||
Reference in New Issue
Block a user