]> _ Git - fluidbook-html5.git/commitdiff
wip #809 @1:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Oct 2018 14:53:10 +0000 (15:53 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Oct 2018 14:53:10 +0000 (15:53 +0100)
js/libs/fluidbook/fluidbook.3dflip.js

index 99b70216a21db3341a7d392e932934255a0ceafb..689c1a427d7b419e085421254fb437753e77a956 100644 (file)
@@ -47,10 +47,6 @@ Fluidbook3DFlip.prototype = {
 
         this.geometryScale = 3;
 
-        this.stats = new Stats();
-        this.stats.showPanel(0);
-        document.body.appendChild(this.stats.dom);
-
         this.container = $(this.jcontainer).get(0);
         this.init3D('performancesTest');
 
@@ -221,7 +217,6 @@ Fluidbook3DFlip.prototype = {
             this.bendForceMultiplicator = 1.2;
         }
         this.bend = new Bend(0, this.bendOffset, this.bendAngle * 0.0174533);
-
         this.bend.constraint = -1;
         this.modifier.reset();
         this.modifier.addModifier(this.bend);
@@ -430,16 +425,6 @@ Fluidbook3DFlip.prototype = {
 
     animate: function (next) {
         var $this = this;
-        if (this.stats === undefined) {
-            try {
-                window.requestAnimationFrame(this.animate);
-            } catch (e) {
-                setTimeout(function () {
-                    $this.animate(true);
-                }, 100);
-            }
-            return;
-        }
 
         if (next) {
             requestAnimationFrame(function () {
@@ -447,7 +432,6 @@ Fluidbook3DFlip.prototype = {
             });
         }
 
-        this.stats.update();
         var d = ((720 + this._pageRotation) % 360);
         this.plane.rotation.y = d * this.deg2rad;
         this.renderer.render(this.scene, this.camera);