|
@@ -796,8 +796,7 @@ 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 */ )
|
|
|
|
|
|
|
|
|
|
|
@@ -4034,8 +4033,8 @@ export class Viewer extends ViewerBase{
|
|
|
|
|
|
performance.mark('loop-start') ;// 无论有没有reportTimings都要获取,因为getBestCound需要
|
|
|
|
|
|
- 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可能在任何时候触发,所以需要一开始就定义这个,且每次计算最大可计算次数太麻烦了就定义一个吧。
|
|
|
|
|
|
|
|
|
|