code: function() {
      if (!this._resize) {
        return;
      }
      this._resize = false;
      this._cam.setViewportSize(this._canvas.viewportWidth(), 
                                this._canvas.viewportHeight());
      this._pickBuffer.resize(this._options.width, this._options.height);
    }
docs: with rendering to avoid flickering.