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

@@ -10,6 +10,7 @@
//#include "../gl/GLTriangles.h"
#include "../Renderable.h"
#include "../../../../Settings.h"
#include "../../../../nav/Node.h"
class ColorPoints : public Renderable {
@@ -31,6 +32,9 @@ public:
points.clear();
// do not display?
if (grid->getNumNodes() > Settings::MapView3D::maxColorPoints) {return;}
float min = +INFINITY;
float max = -INFINITY;
@@ -62,6 +66,9 @@ public:
points.clear();
// do not display?
if (particles.size() > Settings::MapView3D::maxColorPoints) {return;}
// group particles by grid-point
std::unordered_map<GridPoint, float> weights;
for (const K::Particle<T>& p : particles) {