direct.showbase.TaskThreaded¶
from direct.showbase.TaskThreaded import TaskThread, TaskThreaded
Contains the TaskThreaded and TaskThread classes.
Inheritance diagram
digraph inheritance8bc1567eae { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "TaskThread" [URL="direct.showbase.TaskThreaded.html#direct.showbase.TaskThreaded.TaskThread",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "TaskThreaded" [URL="direct.showbase.TaskThreaded.html#direct.showbase.TaskThreaded.TaskThreaded",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="derive from this if you need to do a bunch of CPU-intensive"]; }- class TaskThreaded(name, threaded=True, timeslice=None, callback=None)[source]¶
Bases:
objectderive 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
- notify = <direct.directnotify.Notifier.Notifier object>¶