|
@@ -256,6 +256,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
}
|
|
|
let redisMeta: StreamReplyType;
|
|
|
this.onRotating.next(true);
|
|
|
+ const start = performance.now();
|
|
|
// 当move时处理
|
|
|
if (this.onMoving.value) {
|
|
|
this.onMoving.next(false);
|
|
@@ -315,6 +316,10 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
clearTimeout(this._rotateTimeout);
|
|
|
|
|
|
// console.log('进入roQueue3', stream.clipPath);
|
|
|
+ const stop = performance.now();
|
|
|
+ const inMillSeconds = stop - start;
|
|
|
+ const rounded = Number(inMillSeconds).toFixed(3);
|
|
|
+ console.log(`[timer]-rotate-入队列前: ${rounded}ms`);
|
|
|
this.roQueue.next(stream);
|
|
|
} else {
|
|
|
// this.onRotating.next(false);
|
|
@@ -340,6 +345,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
console.log('walking', this.clickQueueSub, JSON.stringify(req));
|
|
|
// if (!this.clickQueueSub) {
|
|
|
this.clickQueueSub = this.clickQueue.subscribe(async (request) => {
|
|
|
+ const start = performance.now();
|
|
|
const user = this.moveService.users[this.user_id];
|
|
|
console.log('进入1 - searchRoad');
|
|
|
console.log('path-start' + user.breakPointId);
|
|
@@ -357,7 +363,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
// debugger;
|
|
|
const walkingRes = await this.moveService.move(path, request);
|
|
|
|
|
|
- console.log('walking', walkingRes);
|
|
|
+ // console.log('walking', walkingRes);
|
|
|
// debugger;
|
|
|
if (walkingRes && !this.onMoving.value) {
|
|
|
// console.log('walkingRes-front', walkingRes);
|
|
@@ -404,6 +410,11 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
|
|
|
if (seqs?.length) {
|
|
|
console.log('walking --总序列--seqs-2', seqs.length);
|
|
|
+ const stop = performance.now();
|
|
|
+ const inMillSeconds = stop - start;
|
|
|
+ const rounded = Number(inMillSeconds).toFixed(3);
|
|
|
+ console.log(`[timer]-move-入队列前:-->${rounded}ms`);
|
|
|
+
|
|
|
this.handleSeqMoving(seqs);
|
|
|
} else {
|
|
|
console.error('walking-move无数据');
|