|
@@ -271,8 +271,8 @@ export abstract class AbstractViewer {
|
|
} else {
|
|
} else {
|
|
this.engine.performanceMonitor.disable();
|
|
this.engine.performanceMonitor.disable();
|
|
|
|
|
|
- // Need to update behaviors
|
|
|
|
- this.sceneManager.scene.activeCamera && this.sceneManager.scene.activeCamera.update();
|
|
|
|
|
|
+ // TODO - is this needed?
|
|
|
|
+ // this.sceneManager.scene.activeCamera && this.sceneManager.scene.activeCamera.update();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -430,6 +430,7 @@ export abstract class AbstractViewer {
|
|
return this.onSceneInitObservable.notifyObserversWithPromise(scene);
|
|
return this.onSceneInitObservable.notifyObserversWithPromise(scene);
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this._isInit = true;
|
|
this._isInit = true;
|
|
|
|
+ this.engine.runRenderLoop(this._render);
|
|
return this.onInitDoneObservable.notifyObserversWithPromise(this);
|
|
return this.onInitDoneObservable.notifyObserversWithPromise(this);
|
|
}).catch(e => {
|
|
}).catch(e => {
|
|
Tools.Warn(e.toString());
|
|
Tools.Warn(e.toString());
|
|
@@ -472,9 +473,6 @@ export abstract class AbstractViewer {
|
|
window.addEventListener('resize', this._resize);
|
|
window.addEventListener('resize', this._resize);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- this.engine.runRenderLoop(this._render);
|
|
|
|
-
|
|
|
|
if (this._configuration.engine && this._configuration.engine.adaptiveQuality) {
|
|
if (this._configuration.engine && this._configuration.engine.adaptiveQuality) {
|
|
var scale = Math.max(0.5, 1 / (window.devicePixelRatio || 2));
|
|
var scale = Math.max(0.5, 1 / (window.devicePixelRatio || 2));
|
|
this.engine.setHardwareScalingLevel(scale);
|
|
this.engine.setHardwareScalingLevel(scale);
|