add vertices draw limit after I accidentally removed it

This commit is contained in:
2026-02-23 00:27:51 +01:00
parent f5bb155b5c
commit 30b02c13ed
4 changed files with 31 additions and 18 deletions

View File

@ -48,7 +48,7 @@ constexpr int REPULSION_GRID_REFRESH = 5; // Grid rebuild freq
constexpr float VERTEX_SIZE = 0.5;
constexpr Color VERTEX_COLOR = GREEN;
constexpr Color EDGE_COLOR = DARKGREEN;
constexpr int DRAW_VERTICES_LIMIT = 100000;
constexpr int DRAW_VERTICES_LIMIT = 1000000;
// Klotski Drawing
constexpr int BOARD_PADDING = 5;

View File

@ -89,6 +89,10 @@ public:
MassSpringSystem() {
#ifndef BARNES_HUT
last_build = REPULSION_GRID_REFRESH;
std::cout << "Using uniform grid repulsion force calculation." << std::endl;
#else
std::cout << "Using Barnes-Hut + octree repulsion force calculation."
<< std::endl;
#endif
#ifndef WEB