]> _ Git - fluidbook-html5.git/commitdiff
try #7146 @4
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 22 Oct 2024 17:16:43 +0000 (19:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 22 Oct 2024 17:16:43 +0000 (19:16 +0200)
js/libs/fluidbook/fluidbook.3dflip.js
js/libs/fluidbook/fluidbook.splash.js

index e1bc93105a2b4fbab9ffd6277c2a2a2f358276a3..ad520d2bbc59d887f3b159b21392f4c904923ec4 100644 (file)
@@ -76,7 +76,7 @@ Fluidbook3DFlip.prototype = {
             }
         }
 
-        this.init3D(mode);
+        this.init3D('highPerf');
         this.animate(true);
 
         $(this.fluidbook).on('fluidbook.ready', function () {
@@ -168,17 +168,8 @@ Fluidbook3DFlip.prototype = {
                 this.veryLowPerf = this.lowPerf = true;
             }
         } else {
-            if (this.performancesMode === undefined || this.performancesMode === 'auto') {
-                this.veryLowPerf = this.fluidbook.support.IE > 0;
-                this.lowPerf = !Modernizr.webgl || this.veryLowPerf || this.fluidbook.support.edge || this.fluidbook.support.android || this.fluidbook.support.macOs || this.fluidbook.support.iOS;
-            } else if (this.performancesMode === 'lowPerf') {
-                this.lowPerf = true;
-                this.veryLowPerf = false;
-            } else if (this.performancesMode === 'highPerf') {
-                this.lowPerf = this.veryLowPerf = false;
-            } else if (this.performancesMode === 'veryLowPerf') {
-                this.veryLowPerf = this.lowPerf = true;
-            }
+            this.veryLowPerf = this.fluidbook.support.IE > 0;
+            this.lowPerf = !Modernizr.webgl || this.veryLowPerf || this.fluidbook.support.edge || this.fluidbook.support.android || this.fluidbook.support.macOs || this.fluidbook.support.iOS;
         }
 
         // Performance settings
index 7309bec84525dd689cbb86a9c7b7bd2c4fffe3bc..41618a80292896185c684f912c0f24a79ae4365a 100644 (file)
@@ -87,6 +87,7 @@ FluidbookSplash.prototype = {
         $("#main,#viewOverlay,#view").css('visibility', 'visible');
         this.fluidbook.resize.resize(false);
         this.fluidbook.hideLoader(0, true);
+        this.fluidbook.networkControl.pause(1500);
 
         if (this.fluidbook.shortLoading) {
             $('#splash').remove();