Segmentation operation takes too long for virtual reality