mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
use FunctionCall.pushCurrentState
This commit is contained in:
parent
caca39b04a
commit
57e08fadf2
@ -45,6 +45,7 @@ class FrameProfiler:
|
||||
assert (self._logSchedule[j] % e) == 0
|
||||
assert isInteger(self._period)
|
||||
self._enableFC = FunctionCall(self._setEnabled, taskMgr.getProfileFramesSV())
|
||||
self._enableFC.pushCurrentState()
|
||||
|
||||
def destroy(self):
|
||||
self._enableFC.set(False)
|
||||
|
@ -91,6 +91,7 @@ class TaskProfiler:
|
||||
|
||||
def __init__(self):
|
||||
self._enableFC = FunctionCall(self._setEnabled, taskMgr.getProfileTasksSV())
|
||||
self._enableFC.pushCurrentState()
|
||||
# table of task name pattern to TaskTracker
|
||||
self._namePrefix2tracker = {}
|
||||
self._task = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user