pub unsafe extern "C" fn phys_PxDefaultCpuDispatcherCreate(
    numThreads: u32,
    affinityMasks: *mut u32,
    mode: PxDefaultCpuDispatcherWaitForWorkMode,
    yieldProcessorCount: u32
) -> *mut PxDefaultCpuDispatcher
Expand description

Create default dispatcher, extensions SDK needs to be initialized first.

numThreads may be zero in which case no worker thread are initialized and simulation tasks will be executed on the thread that calls PxScene::simulate()

yieldProcessorCount must be greater than zero if eYIELD_PROCESSOR is the chosen mode and equal to zero for all other modes.

eYIELD_THREAD and eYIELD_PROCESSOR modes will use compute resources even if the simulation is not running. It is left to users to keep threads inactive, if so desired, when no simulation is running.