added deltaProfiler

This commit is contained in:
Dave Schuyler 2003-07-25 22:22:54 +00:00
parent c395c24fa5
commit a4a994b599

View File

@ -24,6 +24,8 @@ import FSM
import State import State
import DirectObject import DirectObject
import SfxPlayer import SfxPlayer
if __debug__:
import DeltaProfiler
__builtins__["FADE_SORT_INDEX"] = 1000 __builtins__["FADE_SORT_INDEX"] = 1000
__builtins__["NO_FADE_SORT_INDEX"] = 2000 __builtins__["NO_FADE_SORT_INDEX"] = 2000
@ -189,6 +191,8 @@ class ShowBase(DirectObject.DirectObject):
__builtins__["directNotify"] = directNotify __builtins__["directNotify"] = directNotify
__builtins__["globalClock"] = ClockObject.getGlobalClock() __builtins__["globalClock"] = ClockObject.getGlobalClock()
__builtins__["vfs"] = vfs __builtins__["vfs"] = vfs
if __debug__:
__builtins__["deltaProfiler"] = DeltaProfiler.DeltaProfiler("ShowBase")
# Now hang a hook on the window-event from Panda. This allows # Now hang a hook on the window-event from Panda. This allows
# us to detect when the user resizes, minimizes, or closes the # us to detect when the user resizes, minimizes, or closes the