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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user