default functor creation stack recording off, it's slow
This commit is contained in:
parent
0d8b31f9a4
commit
e3b3ab1bbe
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue