|
RavEngine
|
Public Member Functions | |
| void | submitTask (physx::PxBaseTask &task) final |
| Called by the TaskManager when a task is to be queued for execution. | |
| uint32_t | getWorkerCount () const final |
| Returns the number of available worker threads for this dispatcher. | |
|
finalvirtual |
Returns the number of available worker threads for this dispatcher.
The SDK will use this count to control how many tasks are submitted. By matching the number of tasks with the number of execution units task overhead can be reduced.
Implements physx::PxCpuDispatcher.
|
finalvirtual |
Called by the TaskManager when a task is to be queued for execution.
Upon receiving a task, the dispatcher should schedule the task to run. After the task has been run, it should call the release() method and discard its pointer.
| [in] | task | The task to be run. |
Implements physx::PxCpuDispatcher.