|
@@ -258,8 +258,6 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
*/
|
|
*/
|
|
|
|
|
|
async handleRotate(request) {
|
|
async handleRotate(request) {
|
|
- // this.roRequestQueueSub = this.roRequestQueue.subscribe(
|
|
|
|
- // async (request: RotateRequest) => {
|
|
|
|
// try {
|
|
// try {
|
|
if (this.firstRender) {
|
|
if (this.firstRender) {
|
|
if (!this.roQueueSubscription) {
|
|
if (!this.roQueueSubscription) {
|
|
@@ -268,7 +266,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
let redisMeta: StreamReplyType;
|
|
let redisMeta: StreamReplyType;
|
|
this.onRotating.next(true);
|
|
this.onRotating.next(true);
|
|
const start = performance.now();
|
|
const start = performance.now();
|
|
- // 当move时处理 _rotateCount是移动端同时触发的问题
|
|
|
|
|
|
+ // 当move时处理 _rotateCount是移动端同时触发的问题,rotateStopThrottle是减少重复抖动stop的处理。
|
|
if (
|
|
if (
|
|
this.onMoving.value &&
|
|
this.onMoving.value &&
|
|
this._rotateCount > 5 &&
|
|
this._rotateCount > 5 &&
|
|
@@ -276,9 +274,6 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
) {
|
|
) {
|
|
this.rotateStopThrottle = true;
|
|
this.rotateStopThrottle = true;
|
|
const lastStreamFrame = this.lastMoveStreamFrame.getValue();
|
|
const lastStreamFrame = this.lastMoveStreamFrame.getValue();
|
|
- // const lastMoveStreamFrameBk = this.lastMoveStreamFrameBk;
|
|
|
|
- //TODO对比
|
|
|
|
-
|
|
|
|
this.logger.log('lastStreamFrame', JSON.stringify(lastStreamFrame));
|
|
this.logger.log('lastStreamFrame', JSON.stringify(lastStreamFrame));
|
|
// this.logger.log(
|
|
// this.logger.log(
|
|
// 'lastMoveStreamFrameBk',
|
|
// 'lastMoveStreamFrameBk',
|
|
@@ -302,7 +297,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
|
|
|
const trace_id = metaData.traceIds[0];
|
|
const trace_id = metaData.traceIds[0];
|
|
const userId = newUserStates.userId;
|
|
const userId = newUserStates.userId;
|
|
- const breakPointId = metaData.endBreakPointId;
|
|
|
|
|
|
+ const breakPointId = metaData.endBreakPointId || metaData.breakPointId;
|
|
const cameraAngle = newUserStates.playerState.camera.angle;
|
|
const cameraAngle = newUserStates.playerState.camera.angle;
|
|
const playerAngle = newUserStates.playerState.player.angle;
|
|
const playerAngle = newUserStates.playerState.player.angle;
|
|
this.logger.log(
|
|
this.logger.log(
|