this.disposeHierarchy(this.scene, this.disposeNode);
}
- if (performanceMode == 'disable') {
+ if (performanceMode === 'disable') {
return;
}
this.pixelRatio = window.devicePixelRatio * this.qualityRatio;
this.frames = 0;
- console.log('Quality ratio: ' + this.qualityRatio);
- console.log('Triangles: ' + this.triangles);
- console.log('Animation time: ' + this.animationTime);
- console.log('Antialias: ' + this.antialias);
- console.log('Lights enabled: ' + this.enableLight);
- console.log('Shadows enabled: ' + this.enableShadow);
+ // console.log('Quality ratio: ' + this.qualityRatio);
+ // console.log('Triangles: ' + this.triangles);
+ // console.log('Animation time: ' + this.animationTime);
+ // console.log('Antialias: ' + this.antialias);
+ // console.log('Lights enabled: ' + this.enableLight);
+ // console.log('Shadows enabled: ' + this.enableShadow);
this.scene = new THREE.Scene();
if (this.enableLight) {
callback();
});
});
- console.log('Performances test ok : ' + res);
+ //console.log('Performances test ok : ' + res);
} else {
this.fluidbook.support.transitions3dacc = false;
callback();
}
if (this._callbackAfterNextRender !== null) {
- this._callbackAfterNextRender.apply();
- this._callbackAfterNextRender = null;
+ try {
+ var c = this._callbackAfterNextRender;
+ this._callbackAfterNextRender = null;
+ c.apply();
+ } catch (e) {
+ }
}
},