Browse Source

add DEBUG_ORBITS flag to toggle the extra random orbits

main
cinnaboot 3 years ago
parent
commit
cba74e57de
  1. 3
      src/main.cpp

3
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;
}

Loading…
Cancel
Save