|
@@ -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
|