point cloud viewer is now always executed inside main thread.