|
@@ -883,8 +883,8 @@ export class Viewer extends ViewerBase{
|
|
|
let byTex=0, byCloud=0;
|
|
|
let len = shelterHistory.length;
|
|
|
let waitCloud = []
|
|
|
- let max = this.mainViewport.view.isFlying() ? 1 : Math.min(1/depthTiming, 10); //起飞时lastFrameChanged还是false,所以不用lastFrameChanged
|
|
|
- let maxTexCount = Common.getBestCount('shelterMaxDepthSample', 1, max, 1, 13 /* ,true */ )
|
|
|
+
|
|
|
+ let maxTexCount = Common.getBestCount('shelterMaxDepthSample', 1, 50, 1, 13 /* ,true */ )
|
|
|
|
|
|
|
|
|
|
|
@@ -920,7 +920,7 @@ export class Viewer extends ViewerBase{
|
|
|
}
|
|
|
|
|
|
let maxCloudCount
|
|
|
- if(byTex < maxTexCount && waitCloud.length){
|
|
|
+ if(byTex < maxTexCount && waitCloud.length ){
|
|
|
maxCloudCount = this.lastFrameChanged ? Common.getBestCount('shelterMaxCloud', 0, 2, 4, 8 /* ,true */ ) : 5;
|
|
|
let waitCloud2 = []
|
|
|
if(maxCloudCount){
|
|
@@ -959,7 +959,7 @@ export class Viewer extends ViewerBase{
|
|
|
}
|
|
|
history.ifShelter = ifShelter
|
|
|
byCloud++
|
|
|
- //console.log('补2', history.pos3d.toArray())
|
|
|
+ console.log('补2', history.pos3d.toArray())
|
|
|
delete history.waitCompute
|
|
|
})
|
|
|
|
|
@@ -4173,8 +4173,8 @@ export class Viewer extends ViewerBase{
|
|
|
performance.mark('loop-start') ;// 无论有没有reportTimings都要获取,因为getBestCound需要
|
|
|
|
|
|
this.interacted = false
|
|
|
- let depthTiming = Potree.timeCollect.depthSampler.median
|
|
|
- this.shelterCount = {byTex:0, byCloud:0, maxByTex: THREE.Math.clamp(0.2/depthTiming, 1, 10), maxByCloud:0 } //清空 因ifPointBlockedByIntersect可能在任何时候触发,所以需要一开始就定义这个,且每次计算最大可计算次数太麻烦了就定义一个吧。
|
|
|
+
|
|
|
+ this.shelterCount = {byTex:0, byCloud:0, maxByTex: 100, maxByCloud:0 } //清空 因ifPointBlockedByIntersect可能在任何时候触发,所以需要一开始就定义这个,且每次计算最大可计算次数太麻烦了就定义一个吧。
|
|
|
|
|
|
|
|
|
|