|
@@ -22385,11 +22385,25 @@ window.Modernizr = function(n, e, t) {
|
|
|
//loadVideo();//add
|
|
|
//-------------------
|
|
|
|
|
|
- setTimeout(()=>{
|
|
|
+ /* setTimeout(()=>{
|
|
|
this.qualityManager.updateMaximums()
|
|
|
- // && stats.dom.parentElement.removeChild(stats.dom), window.stats = null
|
|
|
- window.stats && (stats.dom.parentElement )
|
|
|
- },6000)
|
|
|
+ window.stats && (stats.dom.parentElement && stats.dom.parentElement.removeChild(stats.dom), window.stats = null)
|
|
|
+ },6000) */
|
|
|
+
|
|
|
+ var updateCount = 0;
|
|
|
+ var interval = setInterval(()=>{
|
|
|
+ updateCount ++
|
|
|
+ if(updateCount>4){
|
|
|
+ clearInterval(interval)
|
|
|
+ window.stats && (stats.dom.parentElement && stats.dom.parentElement.removeChild(stats.dom), window.stats = null)
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.qualityManager.updateMaximums()
|
|
|
+
|
|
|
+
|
|
|
+ },5000)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
var t = e.mode
|
|
|
, i = e.pano
|
|
@@ -24562,7 +24576,8 @@ window.Modernizr = function(n, e, t) {
|
|
|
u.profiling.enabled && this.overrideTextures(),
|
|
|
e.appendChild(this.renderer.domElement)
|
|
|
|
|
|
- window.stats = new Stats();
|
|
|
+ window.stats = new Stats();
|
|
|
+ window.stats.begin()
|
|
|
e.appendChild( stats.dom );
|
|
|
}
|
|
|
,
|
|
@@ -25178,7 +25193,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
this.updateComponents(),
|
|
|
this.updateTextureMemory(),
|
|
|
this.render(),
|
|
|
- window.stats && (window.fps = stats.update()),
|
|
|
+ window.stats && (window.fps = stats.update() || window.fps),
|
|
|
this.emit(a.AfterRender))
|
|
|
};
|
|
|
n.prototype.getImageData = function() {
|
|
@@ -28200,8 +28215,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配置不高 卡顿
|
|
|
-
|
|
|
- if(window.fps>50)return r.HIGH
|
|
|
+ if(window.fps && window.fps.aveFps>52){
|
|
|
+ return r.HIGH
|
|
|
+ }
|
|
|
else return r.STANDARD
|
|
|
|
|
|
|
|
@@ -28214,7 +28230,7 @@ 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)
|
|
|
- if(window.fps > 56){
|
|
|
+ if(window.fps && window.fps.aveFps>56){
|
|
|
return this.getPanoSize(r.ULTRAHIGH)
|
|
|
}else{
|
|
|
return this.getPanoSize(r.HIGH)
|