From fe826af9b0a48e9a560ae59a0b43d0976f01194a Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Mon, 4 Jun 2007 18:38:16 +0000 Subject: [PATCH] comment changes --- direct/src/showbase/JobManager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/direct/src/showbase/JobManager.py b/direct/src/showbase/JobManager.py index bcb7a86a1a..cb54818ffa 100755 --- a/direct/src/showbase/JobManager.py +++ b/direct/src/showbase/JobManager.py @@ -6,8 +6,8 @@ from direct.showbase.PythonUtil import getBase class JobManager: """ Similar to the taskMgr but designed for tasks that are CPU-intensive and/or - not time-critical. Jobs run one at a time, in order of priority, in - the timeslice that the JobManager is allotted each frame. + not time-critical. Jobs run in a fixed timeslice that the JobManager is + allotted each frame. """ notify = directNotify.newCategory("JobManager") @@ -31,7 +31,9 @@ class JobManager: # out CPU usage self._jobId2overflowTime = {} self._useOverflowTime = None - # this is a generator that we use to give high-priority jobs more timeslices + # this is a generator that we use to give high-priority jobs more timeslices, + # it yields jobIds in a sequence that includes high-priority jobIds more often + # than low-priority self._jobIdGenerator = None self._highestPriority = Job.Priorities.Normal