What does convex do in mesh collider component?

I have been using mesh component pretty much nowadays but I have been confused of what does convex do?
And does it optimize colliders or anything else?

So can anyone explain to me what it’s used for?

Convex mesh collider reduce the mesh to 255 triangles so yes is optimize your mesh of it has more triangles than 255 in it.

If your Rigid body is non kinematic and you want to make it collide with other convex and non convex meshes then you have to use convex mesh collider.

However it’s only good for closed meshes because it joints all vertex. So if you have mesh having open ends or holes then it won’t work well.