xzw 4 years ago
parent
commit
35ef53f737
2 changed files with 114 additions and 7 deletions
  1. 104 4
      web/public/static/js/lib/stats.min.js
  2. 10 3
      web/public/static/js/main_2020_show.js

File diff suppressed because it is too large
+ 104 - 4
web/public/static/js/lib/stats.min.js


+ 10 - 3
web/public/static/js/main_2020_show.js

@@ -25176,7 +25176,7 @@ window.Modernizr = function(n, e, t) {
             this.updateComponents(),
             this.updateTextureMemory(),
             this.render(),
-            window.stats && stats.update(),
+            window.stats && (window.fps = stats.update()),
             this.emit(a.AfterRender))
         };
         n.prototype.getImageData = function() {
@@ -28193,7 +28193,9 @@ window.Modernizr = function(n, e, t) {
             //if(settings.mobileNavHigh)return r.HIGH  //改
             //else return this.useHighResolutionPanos ? a.isMobile() ? r.STANDARD : $("#player").height() < this.highQualityThreshold ? r.STANDARD : r.HIGH : r.STANDARD
             //cause配置不高 卡顿
-            return r.STANDARD
+            
+            if(window.fps>50)return r.HIGH
+            else return r.STANDARD
         
         
         }
@@ -28205,7 +28207,12 @@ window.Modernizr = function(n, e, t) {
         ,
         n.prototype.detectMaxZoomPanoSize = function() {
             //return this.useHighResolutionPanos ? a.isMobile() ? o.tiling.mobileHighQualityOverride ? this.getPanoSize(r.HIGH) : this.getPanoSize(r.STANDARD) : this.useUltraHighResolutionPanos ? this.getPanoSize(r.ULTRAHIGH) : this.getPanoSize(r.HIGH) : this.getPanoSize(r.STANDARD)
-            return this.getPanoSize(r.HIGH)
+            if(window.fps > 56){
+                return this.getPanoSize(r.ULTRAHIGH)
+            }else{
+                return this.getPanoSize(r.HIGH)
+            }
+            
         }
         ,
         t.exports = n