NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxSimulationStatistics Class Reference

NVIDIA PhysX SDK 3.4 API

PxSimulationStatistics Class Reference
[Physics]

Class used to retrieve statistics for a simulation step. More...

#include <PxSimulationStatistics.h>

List of all members.


Public Types

enum  VolumeType {
  eRIGID_BODY,
  PX_DEPRECATED,
  PX_DEPRECATED,
  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

Detailed Description

Class used to retrieve statistics for a simulation step.

See also:
PxScene::getSimulationStatistics()

Member Enumeration Documentation

Different types of rigid body collision pair statistics.

See also:
getRbPairStats
Enumerator:
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.

Note:
Counts the pairs for which special CCD (continuous collision detection) work was actually done and NOT the number of pairs which were configured for CCD. Furthermore, there can be multiple CCD passes and all processed pairs of all passes are summed up, hence the number can be larger than the amount of pairs which have been configured for CCD.
See also:
PxPairFlag::eDETECT_CCD_CONTACT,

eMODIFIED_CONTACT_PAIRS  Shape pairs processed with user contact modification enabled for the current simulation step.

See also:
PxContactModifyCallback

eTRIGGER_PAIRS  Trigger shape pairs processed for the current simulation step.

See also:
PxShapeFlag::eTRIGGER_SHAPE

Identifies each type of broadphase volume.

See also:
nbBroadPhaseAdds nbBroadPhaseRemoves
Enumerator:
eRIGID_BODY  A volume belonging to a rigid body object.

See also:
PxRigidStatic PxRigidDynamic PxArticulationLink

PX_DEPRECATED  A volume belonging to a particle system (deprecated).

A volume belonging to a cloth.

Deprecated:
The PhysX particle feature has been deprecated in PhysX version 3.4
See also:
PxParticleSystem PxParticleFluid
Deprecated:
The PhysX cloth feature has been deprecated in PhysX version 3.4.1
See also:
PxCloth

PX_DEPRECATED  A volume belonging to a particle system (deprecated).

A volume belonging to a cloth.

Deprecated:
The PhysX particle feature has been deprecated in PhysX version 3.4
See also:
PxParticleSystem PxParticleFluid
Deprecated:
The PhysX cloth feature has been deprecated in PhysX version 3.4.1
See also:
PxCloth

eVOLUME_COUNT 


Constructor & Destructor Documentation

PxSimulationStatistics::PxSimulationStatistics (  )  [inline]


Member Function Documentation

PxU32 PxSimulationStatistics::getNbBroadPhaseAdds ( VolumeType  type  )  const [inline]

Get number of broadphase volumes of a certain type added for the current simulation step.

Parameters:
[in] type The volume type for which to get the number
Returns:
Number of broadphase volumes added.
See also:
VolumeType

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.

Parameters:
[in] type The volume type for which to get the number
Returns:
Number of broadphase volumes removed.
See also:
VolumeType

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.

Note:
entry[i][j] = entry[j][i], hence, if you want the sum of all pair types, you need to discard the symmetric entries
Parameters:
[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
Returns:
Number of processed pairs of the specified geometry types.

References PxGeometryType::eGEOMETRY_COUNT, PX_ASSERT, and PX_ASSERT_WITH_MESSAGE.


Member Data Documentation

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.

Note:
Does not include active kinematic bodies

Number of active kinematic bodies for the current simulation step.

Note:
Kinematic deactivation occurs at the end of the frame after the last call to PxRigidDynamic::setKinematicTarget() was called so kinematics that are deactivated in a given frame will be included by this counter.

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::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).

Note:
This includes pairs for which no contacts are generated, it still counts as a cache hit.

Total number of (non CCD) pairs for which at least 1 contact was generated (<=nbDiscreteContactPairsTotal).

Number of dynamic bodies for the current simulation step.

Note:
Includes inactive and kinematic bodies, and articulation links

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.


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



Copyright © 2008-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com