modified the number of threads for updading meshes.