xzw 3 лет назад
Родитель
Сommit
67e0e6aa24
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      public/static/js/main_2020_show.js

+ 5 - 5
public/static/js/main_2020_show.js

@@ -15948,7 +15948,7 @@ window.Modernizr = function(n, e, t) {
             
              
             let c = this.model.panos.list.length * this.model.colliders.length
-            if(c < 20000){
+            if(c < 10000){
                 this.model.panos.list.forEach((pano)=>{// 模型遮挡的, 直接不可见
                     if(visibleData && !visibleData.includes(pano.id))return; //在热点可视中设置过,不可见
                     var isShelter = convertTool.ifIntersectChunks(pano.position, this.position, {model: this.model.colliders});
@@ -15957,7 +15957,7 @@ window.Modernizr = function(n, e, t) {
                     }
                 }) 
             }else{
-                let c1 = Math.ceil(25000 / this.model.colliders.length)
+                let c1 = Math.ceil(10000 / this.model.colliders.length)
                 let start = 0
                 let interval = setInterval(()=>{
                     let end = start + c1; 
@@ -15976,7 +15976,7 @@ window.Modernizr = function(n, e, t) {
                         //console.log(window.hotsi ?(++window.hotsi): (window.hotsi = 1))
                         clearInterval(interval)
                     }
-                },20 )
+                },16 )
                 
                 
             }
@@ -18411,7 +18411,7 @@ window.Modernizr = function(n, e, t) {
                 //add-----
                 { 
                     let c = this.panos.list.length * this.colliders.length
-                    if(c < 20000){
+                    if(c < 10000){
                         for(let i in this.hots){
                             this.hots[i].setVisiblePanos(this.hots[i].visibleData);
                         }
@@ -18425,7 +18425,7 @@ window.Modernizr = function(n, e, t) {
                             if(i>=hotsId.length){
                                 clearInterval(hotVisiInterval)
                             }
-                        }, Math.round(c/1000)) 
+                        }, Math.round(c/600)) 
                     }    
                 }
                 //---------