#include <PxSimulationStatistics.h>
Public Types | |
enum | VolumeType { eRIGID_BODY, PX_DEPRECATED, eCLOTH, eVOLUME_COUNT } |
Identifies each type of broadphase volume. More... | |
enum | RbPairStatsType { eDISCRETE_CONTACT_PAIRS, eCCD_PAIRS, eMODIFIED_CONTACT_PAIRS, eTRIGGER_PAIRS } |
Different types of rigid body collision pair statistics. More... | |
Public Member Functions | |
PxU32 | getNbBroadPhaseAdds (VolumeType type) const |
Get number of broadphase volumes of a certain type added for the current simulation step. | |
PxU32 | getNbBroadPhaseRemoves (VolumeType type) const |
Get number of broadphase volumes of a certain type removed for the current simulation step. | |
PxU32 | getRbPairStats (RbPairStatsType pairType, PxGeometryType::Enum g0, PxGeometryType::Enum g1) const |
Get number of shape collision pairs of a certain type processed for the current simulation step. | |
PxSimulationStatistics () | |
Public Attributes | |
PxU32 | nbActiveConstraints |
Number of active PxConstraint objects (joints etc.) for the current simulation step. | |
PxU32 | nbActiveDynamicBodies |
Number of active dynamic bodies for the current simulation step. | |
PxU32 | nbActiveKinematicBodies |
Number of active kinematic bodies for the current simulation step. | |
PxU32 | nbStaticBodies |
Number of static bodies for the current simulation step. | |
PxU32 | nbDynamicBodies |
Number of dynamic bodies for the current simulation step. | |
PxU32 | nbShapes [PxGeometryType::eGEOMETRY_COUNT] |
Number of shapes of each geometry type. | |
PxU32 | nbAggregates |
Number of aggregates in the scene. | |
PxU32 | nbArticulations |
Number of articulations in the scene. | |
PxU32 | nbAxisSolverConstraints |
The number of 1D axis constraints(joints+contact) present in the current simulation step. | |
PxU32 | compressedContactSize |
The size (in bytes) of the compressed contact stream in the current simulation step. | |
PxU32 | requiredContactConstraintMemory |
The total required size (in bytes) of the contact constraints in the current simulation step. | |
PxU32 | peakConstraintMemory |
The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the current simulation step. | |
PxU32 | nbDiscreteContactPairsTotal |
Total number of (non CCD) pairs reaching narrow phase. | |
PxU32 | nbDiscreteContactPairsWithCacheHits |
Total number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsTotal). | |
PxU32 | nbDiscreteContactPairsWithContacts |
Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsTotal). | |
PxU32 | nbNewPairs |
Number of new pairs found by BP this frame. | |
PxU32 | nbLostPairs |
Number of lost pairs from BP this frame. | |
PxU32 | nbNewTouches |
Number of new touches found by NP this frame. | |
PxU32 | nbLostTouches |
Number of lost touches from NP this frame. | |
PxU32 | nbPartitions |
Number of partitions used by the solver this frame. | |
PxU32 | nbBroadPhaseAdds [eVOLUME_COUNT] |
PxU32 | nbBroadPhaseRemoves [eVOLUME_COUNT] |
PxU32 | nbDiscreteContactPairs [PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxU32 | nbCCDPairs [PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxU32 | nbModifiedContactPairs [PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxU32 | nbTriggerPairs [PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxU32 | particlesGpuMeshCacheSize |
PxU32 | particlesGpuMeshCacheUsed |
PxReal | particlesGpuMeshCacheHitrate |
Different types of rigid body collision pair statistics.
eDISCRETE_CONTACT_PAIRS | Shape pairs processed as discrete contact pairs for the current simulation step. |
eCCD_PAIRS |
Shape pairs processed as swept integration pairs for the current simulation step.
|
eMODIFIED_CONTACT_PAIRS |
Shape pairs processed with user contact modification enabled for the current simulation step.
|
eTRIGGER_PAIRS |
Trigger shape pairs processed for the current simulation step.
|
Identifies each type of broadphase volume.
eRIGID_BODY |
A volume belonging to a rigid body object.
|
PX_DEPRECATED |
A volume belonging to a particle system (deprecated).
|
eCLOTH |
A volume belonging to a cloth.
|
eVOLUME_COUNT |
PxSimulationStatistics::PxSimulationStatistics | ( | ) | [inline] |
References PxGeometryType::eGEOMETRY_COUNT.
PxU32 PxSimulationStatistics::getNbBroadPhaseAdds | ( | VolumeType | type | ) | const [inline] |
Get number of broadphase volumes of a certain type added for the current simulation step.
[in] | type | The volume type for which to get the number |
References PX_ASSERT.
PxU32 PxSimulationStatistics::getNbBroadPhaseRemoves | ( | VolumeType | type | ) | const [inline] |
Get number of broadphase volumes of a certain type removed for the current simulation step.
[in] | type | The volume type for which to get the number |
References PX_ASSERT.
PxU32 PxSimulationStatistics::getRbPairStats | ( | RbPairStatsType | pairType, | |
PxGeometryType::Enum | g0, | |||
PxGeometryType::Enum | g1 | |||
) | const [inline] |
Get number of shape collision pairs of a certain type processed for the current simulation step.
There is an entry for each geometry pair type.
[in] | pairType | The type of pair for which to get information |
[in] | g0 | The geometry type of one pair object |
[in] | g1 | The geometry type of the other pair object |
References PxGeometryType::eGEOMETRY_COUNT, PX_ASSERT, and PX_ASSERT_WITH_MESSAGE.
The size (in bytes) of the compressed contact stream in the current simulation step.
Number of active PxConstraint objects (joints etc.) for the current simulation step.
Number of active dynamic bodies for the current simulation step.
Number of active kinematic bodies for the current simulation step.
Number of aggregates in the scene.
Number of articulations in the scene.
The number of 1D axis constraints(joints+contact) present in the current simulation step.
PxU32 PxSimulationStatistics::nbBroadPhaseAdds[eVOLUME_COUNT] |
PxU32 PxSimulationStatistics::nbBroadPhaseRemoves[eVOLUME_COUNT] |
PxU32 PxSimulationStatistics::nbCCDPairs[PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
PxU32 PxSimulationStatistics::nbDiscreteContactPairs[PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
Total number of (non CCD) pairs reaching narrow phase.
Total number of (non CCD) pairs for which contacts are successfully cached (<=nbDiscreteContactPairsTotal).
Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsTotal).
Number of dynamic bodies for the current simulation step.
Number of lost pairs from BP this frame.
Number of lost touches from NP this frame.
PxU32 PxSimulationStatistics::nbModifiedContactPairs[PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
Number of new pairs found by BP this frame.
Number of new touches found by NP this frame.
Number of partitions used by the solver this frame.
PxU32 PxSimulationStatistics::nbShapes[PxGeometryType::eGEOMETRY_COUNT] |
Number of shapes of each geometry type.
Number of static bodies for the current simulation step.
PxU32 PxSimulationStatistics::nbTriggerPairs[PxGeometryType::eGEOMETRY_COUNT][PxGeometryType::eGEOMETRY_COUNT] |
The peak amount of memory (in bytes) that was allocated for constraints (this includes joints) in the current simulation step.
The total required size (in bytes) of the contact constraints in the current simulation step.