From cba74e57deadee0ec05dd1f853355c4419c84a1a Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Mon, 13 Mar 2023 12:23:58 -0400 Subject: [PATCH] add DEBUG_ORBITS flag to toggle the extra random orbits --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 82a2093..f727055 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -44,6 +44,7 @@ #define GAME_ARENA_SIZE 16 * 1024 * 1024 // 16MB #define DEFAULT_MAX_ORBITS 10000 #define DEFAULT_MANUEVER_NODES 3 * DEFAULT_MAX_ORBITS +#define DEBUG_ORBITS false // add a thousand extra randrom orbits const double SCALING = 0.001; const vec4 g_light_direction = vec4(-2, 1, 3, 1); @@ -304,8 +305,10 @@ loadScene(GameState* gs, RenderState* rs) // NOTE: pre-select an orbit for testing selectOrbit(gs, go_2); +#if DEBUG_ORBITS // NOTE: add more orbits with maneuvers to try and provoke a failure loadRandomOrbits(gs, rs, 1000, body, rg); +#endif return true; }