improved the thread count that is used to generate meshes