mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 20:53:50 -04:00
don't stop threads at each step
This commit is contained in:
parent
7cca74a597
commit
eebd1864e2
@ -343,10 +343,6 @@ class TaskManager:
|
|||||||
chains that are in sub-threads or that have frame budgets
|
chains that are in sub-threads or that have frame budgets
|
||||||
might execute their tasks differently. """
|
might execute their tasks differently. """
|
||||||
|
|
||||||
self.__doStep()
|
|
||||||
self.mgr.stopThreads()
|
|
||||||
|
|
||||||
def __doStep(self):
|
|
||||||
# Replace keyboard interrupt handler during task list processing
|
# Replace keyboard interrupt handler during task list processing
|
||||||
# so we catch the keyboard interrupt but don't handle it until
|
# so we catch the keyboard interrupt but don't handle it until
|
||||||
# after task list processing is complete.
|
# after task list processing is complete.
|
||||||
@ -382,12 +378,12 @@ class TaskManager:
|
|||||||
self.resumeFunc()
|
self.resumeFunc()
|
||||||
|
|
||||||
if self.stepping:
|
if self.stepping:
|
||||||
self.__doStep()
|
self.step()
|
||||||
else:
|
else:
|
||||||
self.running = True
|
self.running = True
|
||||||
while self.running:
|
while self.running:
|
||||||
try:
|
try:
|
||||||
self.__doStep()
|
self.step()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
self.stop()
|
self.stop()
|
||||||
except IOError, ioError:
|
except IOError, ioError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user