r.magicleap) {
          window.browser.magicleap.RequestDepthPopulation(true);
          // renderer.autoClearDepth = false;
        }

        _openUrl('tutorial.html');
        _updateRigLists();

        console.log('loaded root in XR');
      } else {
        console.log('no vr displays');
        await _bootFakeXrDisplay();
      }
    }
  } else {
    await _bootFakeXrDisplay();
  }
})()
  .catch(err => {
    console.warn(err);
  });

// renderer.setAnimationLoop(animate);
// _openRig(new THREE.Vecto