Panda3D
|
Public Member Functions | |
def | __init__ |
def | destroy |
def | finished |
def | getTimeslice |
def | scheduleCallback |
def | scheduleThread |
def | setTimeslice |
def | taskTimeLeft |
Static Public Attributes | |
tuple | notify = directNotify.newCategory("TaskThreaded") |
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
def __init__ | ( | self, | |
name, | |||
threaded = True , |
|||
timeslice = None , |
|||
callback = None |
|||
) |
def destroy | ( | self | ) |
def finished | ( | self | ) |
def getTimeslice | ( | self | ) |
def scheduleCallback | ( | self, | |
callback | |||
) |
def scheduleThread | ( | self, | |
thread | |||
) |
def setTimeslice | ( | self, | |
timeslice | |||
) |
def taskTimeLeft | ( | self | ) |
returns True if there is time left for the current task callback to run without going over the allotted timeslice
tuple notify = directNotify.newCategory("TaskThreaded") [static] |