in packages/miew/src/Miew.js [1044:1068]
Miew.prototype._onUpdate = function () {
if (this.isScriptingCommandAvailable !== undefined && this.isScriptingCommandAvailable() && !this._building) {
this.callNextCmd();
}
this._objectControls.update();
this._forEachComplexVisual((visual) => {
visual.getComplex().update();
});
if (settings.now.autobuild && !this._loading.length && !this._building && this._needRebuild()) {
this.rebuild();
}
if (!this._loading.length && !this._building && !this._needRebuild()) {
this._updateView();
}
this._updateFog();
if (this._gfx.renderer.xr.enabled) {
this.webVR.updateMoleculeScale();
}
};