From eebd1864e28b00d68b5f8e9e7814d19184d12066 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 3 Oct 2008 04:37:06 +0000 Subject: [PATCH] don't stop threads at each step --- direct/src/task/TaskNew.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/direct/src/task/TaskNew.py b/direct/src/task/TaskNew.py index 0770312795..38d7ee4adb 100644 --- a/direct/src/task/TaskNew.py +++ b/direct/src/task/TaskNew.py @@ -342,11 +342,7 @@ class TaskManager: Normally, this executes each task exactly once, though task chains that are in sub-threads or that have frame budgets might execute their tasks differently. """ - - self.__doStep() - self.mgr.stopThreads() - def __doStep(self): # Replace keyboard interrupt handler during task list processing # so we catch the keyboard interrupt but don't handle it until # after task list processing is complete. @@ -382,12 +378,12 @@ class TaskManager: self.resumeFunc() if self.stepping: - self.__doStep() + self.step() else: self.running = True while self.running: try: - self.__doStep() + self.step() except KeyboardInterrupt: self.stop() except IOError, ioError: