#include <SingleThreadScheduler.h>
Inherits EMotionFX::ActorUpdateScheduler.
|
enum | { TYPE_ID = 0x00000001
} |
|
The single processor scheduler. This scheduler is optimized for systems with just one CPU, or if you want EMotion FX to only use one CPU. Using this class will be faster than using the MultiThreadScheduler that has been setup to use only one CPU. The reason for this is that this scheduler will not have the associated multithread management overhead.
◆ anonymous enum
The unique type ID of this scheduler, as returned by the GetType() method.
◆ SingleThreadScheduler()
EMotionFX::SingleThreadScheduler::SingleThreadScheduler |
( |
| ) |
|
|
protected |
◆ ~SingleThreadScheduler()
virtual EMotionFX::SingleThreadScheduler::~SingleThreadScheduler |
( |
| ) |
|
|
protectedvirtual |
◆ Clear()
void EMotionFX::SingleThreadScheduler::Clear |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Create()
◆ Execute()
void EMotionFX::SingleThreadScheduler::Execute |
( |
float |
timePassedInSeconds | ) |
|
|
overridevirtual |
The main method which will execute all callbacks, which on their turn will check for visibilty, perform updates and render.
- Parameters
-
timePassedInSeconds | The time passed, in seconds, since the last call to the update. |
Implements EMotionFX::ActorUpdateScheduler.
◆ GetName()
const char* EMotionFX::SingleThreadScheduler::GetName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetType()
uint32 EMotionFX::SingleThreadScheduler::GetType |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the unique type ID of the scheduler type. All schedulers will have another ID, so that you can use this to identify what scheduler you are dealing with.
- Returns
- The unique ID of the scheduler type.
Implements EMotionFX::ActorUpdateScheduler.
◆ RecursiveExecuteActorInstance()
void EMotionFX::SingleThreadScheduler::RecursiveExecuteActorInstance |
( |
ActorInstance * |
actorInstance, |
|
|
float |
timePassedInSeconds |
|
) |
| |
|
protected |
Recursively execute an actor instance and its attachments.
- Parameters
-
actorInstance | The actor instance to execute the callbacks for. |
timePassedInSeconds | The time passed, in seconds, since the last update. |
◆ RecursiveInsertActorInstance()
void EMotionFX::SingleThreadScheduler::RecursiveInsertActorInstance |
( |
ActorInstance * |
actorInstance, |
|
|
size_t |
startStep = 0 |
|
) |
| |
|
inlineoverridevirtual |
Recursively insert an actor instance into the schedule, including all its attachments.
- Parameters
-
actorInstance | The actor instance to insert. |
startStep | An offset in the schedule where to start trying to insert the actor instances. |
Implements EMotionFX::ActorUpdateScheduler.
◆ RecursiveRemoveActorInstance()
void EMotionFX::SingleThreadScheduler::RecursiveRemoveActorInstance |
( |
ActorInstance * |
actorInstance, |
|
|
size_t |
startStep = 0 |
|
) |
| |
|
inlineoverridevirtual |
Recursively remove an actor instance and its attachments from the schedule.
- Parameters
-
actorInstance | The actor instance to remove. |
startStep | An offset in the schedule where to start trying to remove from. |
Implements EMotionFX::ActorUpdateScheduler.
◆ RemoveActorInstance()
size_t EMotionFX::SingleThreadScheduler::RemoveActorInstance |
( |
ActorInstance * |
actorInstance, |
|
|
size_t |
startStep = 0 |
|
) |
| |
|
inlineoverridevirtual |
Remove a single actor instance from the schedule. This will not remove its attachments.
- Parameters
-
actorInstance | The actor instance to remove. |
startStep | An offset in the schedule where to start trying to remove from. |
- Returns
- Returns the offset in the schedule where the actor instance was removed.
Implements EMotionFX::ActorUpdateScheduler.
The documentation for this class was generated from the following file:
- Gems/EMotionFX/Code/EMotionFX/Source/SingleThreadScheduler.h