fetchResults blocks if cloth and particle are disabled on iOS

Hi All,

In my game, cloth and particle are not necessary. So we disabled them by configure:

PxPhysXConfig.h
// Exposing the ParticleSystem API. Run API meta data generation in Tools/PhysXMetaDataGenerator when changing.
#define PX_USE_PARTICLE_SYSTEM_API 0
// Exposing of the Cloth API. Run API meta data generation in Tools/PhysXMetaDataGenerator when changing.
#define PX_USE_CLOTH_API 0

then as the comment says, we also run python generateMetaData.py.

everything seems ok until we run the game again, the main thread is blocked by fetchResults, and never returns.
Do you have any idea?


By the way, actually we just need the basic primitives, neither the height field nor the triangle mesh is necessary. But the PhysX source seems very massive, and it’s hard to remove height field or the triangle mesh code.
Is it possible to do that? We need a smaller static library.