default functor creation stack recording off, it's slow

This commit is contained in:
Darren Ranalli 2010-06-12 10:16:28 +00:00
parent 0d8b31f9a4
commit e3b3ab1bbe

View File

@ -3934,7 +3934,8 @@ def recordFunctorCreationStacks():
global Functor
from pandac.PandaModules import getConfigShowbase
config = getConfigShowbase()
if __dev__ and config.GetBool('record-functor-creation-stacks', 1):
# off by default, very slow
if __dev__ and config.GetBool('record-functor-creation-stacks', 0):
if not hasattr(Functor, '_functorCreationStacksRecorded'):
Functor = recordCreationStackStr(Functor)
Functor._functorCreationStacksRecorded = True