Lots of InstanceStaticMeshes spams my Log with physics warnings

I’m working on something that uses InstancedStaticMeshes - around 1,000 of them, procedurally generated at runtime. My output log gets spammed with this:

LogPhysics:Warning: PHYSX: ..\..\LowLevel\software\src\PxsAABBManager.cpp (537) 32 : A PxAggregate has exceeded the limit of 128 PxShapes. Not all shapes of the aggregate will be added to the broapdhase
LogPhysics:Warning: PHYSX: ..\..\SimulationController\src\framework\ScElement.cpp (107) 32 : Unable to create broadphase entity because only 32768 shapes are supported

A short clip on how much this is printed out:Gfycat

I assume this is an engine thing that no mere mortal should assail to fix unless they know about Physx and such. I was curious though if there was a way I could hide this from my log. It is very annoying when I have to print out stuff.

Hi Kowbell, any luck on this? I’m having the same problem using 12.4

If I were to guess, it looks like your static mash is using too many shapes for it’s simple collision.

The mesh has 6 collision primitives, of which 4 are cubes and 2 are triangular prisms.