direct.showbase.TaskThreaded

from direct.showbase.TaskThreaded import TaskThread, TaskThreaded

Contains the TaskThreaded and TaskThread classes.

Inheritance diagram

Inheritance diagram of direct.showbase.TaskThreaded

class TaskThread[source]

Bases: object

done()[source]
finished()[source]
isFinished()[source]
run()[source]
setUp()[source]
tearDown()[source]
timeLeft()[source]
class TaskThreaded(name, threaded=True, timeslice=None, callback=None)[source]

Bases: object

derive from this if you need to do a bunch of CPU-intensive processing and you don’t want to hang up the show. Lets you break up the processing over multiple frames

__init__(name, threaded=True, timeslice=None, callback=None)[source]
destroy()[source]
finished()[source]
getTimeslice()[source]
notify = <direct.directnotify.Notifier.Notifier object>
scheduleCallback(callback)[source]
scheduleThread(thread)[source]
setTimeslice(timeslice)[source]
taskTimeLeft()[source]

returns True if there is time left for the current task callback to run without going over the allotted timeslice