|
@@ -251,7 +251,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
// // debugger;
|
|
|
// }
|
|
|
this.handleRotate(request);
|
|
|
- // this._rotateCount += 1;
|
|
|
+ this._rotateCount += 1;
|
|
|
}
|
|
|
/**
|
|
|
* rotate请求队列
|
|
@@ -262,7 +262,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
const rotateUnlock = this.firstRender && !this.globalOptLock;
|
|
|
console.log('rotateUnlock条件--->' + rotateUnlock, this.globalOptLock);
|
|
|
|
|
|
- if (rotateUnlock) {
|
|
|
+ if (rotateUnlock && this._rotateCount > 2) {
|
|
|
console.log('20220627test:handleRotate');
|
|
|
const start = performance.now();
|
|
|
// 当move时处理 _rotateCount是移动端同时触发的问题,rotateStopThrottle是减少重复抖动stop的处理。
|
|
@@ -365,6 +365,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
this.logger.log('rotate end', Date.now());
|
|
|
this.rotateframeCnt = -1;
|
|
|
this._rotateCountFame = -1;
|
|
|
+ this._rotateCount = 0;
|
|
|
this.latestRotateRequest = null;
|
|
|
this.rotateFirstIDR = true;
|
|
|
this.resumeStream();
|