RavEngine
Loading...
Searching...
No Matches
RavEngine::PhysicsTaskDispatcher Class Reference
Inheritance diagram for RavEngine::PhysicsTaskDispatcher:
[legend]
Collaboration diagram for RavEngine::PhysicsTaskDispatcher:
[legend]

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.
 

Member Function Documentation

◆ getWorkerCount()

uint32_t PhysicsTaskDispatcher::getWorkerCount ( ) const
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.

◆ submitTask()

void PhysicsTaskDispatcher::submitTask ( physx::PxBaseTask &  task)
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.

Parameters
[in]taskThe task to be run.
See also
PxBaseTask

Implements physx::PxCpuDispatcher.


The documentation for this class was generated from the following files: