you best make a compound shape of boxes/spheres, that is the fastest. there is also a convex polyhedron shape which can be used for complex shapes, but i believe it still has performance issues. i only have a react + cannon demo but it shows you how to make the convex hull in threejs: Physics with convex-polyhedrons - CodeSandbox
You see that error if you try to create a ConvexPolyhedron from a geometry with inward facing faces. So what ever model you are trying to create a ConvexPolyhedron from, try using a Trimesh instead.
But still ConvexPolyhedron and Trimesh’s are slow, and have there collision limitations.
I have lots of info on this and the following pages.
Physics with Cannon : Physics with Cannon - Three.js Tutorials
You can improve on trimesh performance, by converting a complicated geometry to a convex hull first, and then converting the convexhull to a Trimesh or ConvexPolyhedron (whichever gives you best performance - you decide). This works better if the resulting convex hull has less faces.
That very kind of you to help me , but i try all ways you tell me,then the performance are too bad when i add bit big count of model even i create a prem shape of it in blender , so i think the best way is make cannon shape body by trail