Trees | Index | Help |
|
---|
Module Engine :: Class Engine |
|
GameEngine
Method Summary | |
---|---|
__init__(self,
fps,
tickrate)
| |
Add a task to the engine. | |
Increase priority of background threads. | |
Run a garbage collection run. | |
Enable or disable garbage collection whenever a random garbage collection run would be undesirable. | |
Pause a task. | |
quit(self)
| |
Remove a task from the engine. | |
Resume a paused task. | |
Run one cycle of the task scheduler engine. |
Method Details |
---|
addTask(self, task, synchronized=True)Add a task to the engine.
|
boostBackgroundThreads(self, boost)Increase priority of background threads. @param boost True of the scheduling of the main UI thread should be made fairer to background threads, False otherwise. |
collectGarbage(self)Run a garbage collection run. |
enableGarbageCollection(self, enabled)Enable or disable garbage collection whenever a random garbage collection run would be undesirable. Disabling the garbage collector has the unfortunate side-effect that your memory usage will skyrocket. |
pauseTask(self, task)Pause a task.
|
removeTask(self, task)Remove a task from the engine.
|
resumeTask(self, task)Resume a paused task.
|
run(self)Run one cycle of the task scheduler engine. |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Apr 14 13:33:25 2007 | http://epydoc.sf.net |