We can filter out the PVD data that we want during the PVD connection-streaming. This can be done by customizing PxVisualDebuggerConnectionFlag
. It also helps to reduce the size of streaming by ignoring data that is not required.
PxVisualDebuggerConnectionFlag::eDEBUG
: This mode transfers all possible debug data of rigid bodies, shapes, articulations, and so on. It is the most demanding mode in terms of streaming bandwidth.PxVisualDebuggerConnectionFlag::ePROFILE
: This mode populates the PVD's profile view, and has very less streaming bandwidth requirements when compared to DEBUG. This flag works together with aPxCreatePhysics
parameter andprofileZoneManager
, and it allows you to send profile events to PVD.PxVisualDebuggerConnectionFlag::eMEMORY
: This mode transfers the memory-usage data, and it allows the users to have an accurate view of the overall memory usage of the simulation.
The code snippet for profiling PVD data is given as follows:
debugger::comm::PvdConnection...