function updateUntilDone(globe) {
      // update until the load queue is empty.
      return pollToPromise(function () {
        globe._surface._debug.enableDebugOutput = true;
        scene.render();
        return globe.tilesLoaded;
      });
    }
Repeatedly calls render until the load queue is empty. Returns a promise that resolves
when the load queue is empty.