From 68f2ff342a41e77531dd0825f80662d96fd5db55 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 17 Apr 2003 21:33:28 +0000 Subject: [PATCH] add CollisionVisualizer --- dtool/Config.pp | 5 +++++ dtool/LocalSetup.pp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/dtool/Config.pp b/dtool/Config.pp index f8424fff04..967c945a32 100644 --- a/dtool/Config.pp +++ b/dtool/Config.pp @@ -349,6 +349,11 @@ // possible. #defer DO_PSTATS $[or $[and $[HAVE_NET],$[< $[OPTIMIZE], 4]], $[DO_PSTATS]] +// Do you want to build the debugging tools for recording and +// visualizing intersection tests by the collision system? Enabling +// this increases runtime collision overhead just a tiny bit. +#defer DO_COLLISION_RECORDING $[< $[OPTIMIZE], 4] + // Do you want to include the "debug" and "spam" Notify messages? // Normally, these are stripped out when we build with OPTIMIZE = 4, but // sometimes it's useful to keep them around. Redefine this in your diff --git a/dtool/LocalSetup.pp b/dtool/LocalSetup.pp index 509125f5ae..89fa4266cc 100644 --- a/dtool/LocalSetup.pp +++ b/dtool/LocalSetup.pp @@ -110,6 +110,10 @@ $[cdefine HAVE_BISON] /* Define if we want to use PStats. */ $[cdefine DO_PSTATS] +/* Define if we want to provide collision system recording and + visualization tools. */ +$[cdefine DO_COLLISION_RECORDING] + /* Define if we want to track callbacks from within the show code. */ $[cdefine TRACK_IN_INTERPRETER]