performance enhancements

memory enhancements
prevent starting sensors more than once
fix for wifi lag issues
map scaling for huge buildings
This commit is contained in:
2016-10-01 10:21:15 +02:00
parent 833327bafd
commit 44f9b6ac80
16 changed files with 197 additions and 26 deletions

View File

@@ -22,14 +22,20 @@ MainWindow::MainWindow(QWidget *parent) : QWidget(parent) {
mainMenu = new MainMenu(this);
infoWidget = new InfoWidget(this);
sensorWidget = new SensorDataWidget(this); sensorWidget->setVisible(false);
sensorWidget = new SensorDataWidget(this);
//sensorWidget->setVisible(false);
// ensure we are fullscreen
showMaximized();
sleep(1);
emit resizeEvent(nullptr);
// important! must be called AFTER window is visible
// otherwise MapView3D's openGL context is uninitialized.
sensorWidget->setVisible(false);
mapView2D->setVisible(true);
mapView3D->setVisible(false);
}
void MainWindow::resizeEvent(QResizeEvent* event) {