|
@@ -379,7 +379,11 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
const stop = performance.now();
|
|
|
const inMillSeconds = stop - start;
|
|
|
const rounded = Number(inMillSeconds).toFixed(3);
|
|
|
- this.logger.log(`[timer]-rotate-入队列前: ${rounded}ms`);
|
|
|
+ this.logger.log(
|
|
|
+ `[timer]-rotate-入队列前: ${rounded}ms -->` +
|
|
|
+ JSON.stringify(stream),
|
|
|
+ );
|
|
|
+
|
|
|
this.roQueue.next(stream);
|
|
|
} else {
|
|
|
// this.onRotating.next(false);
|
|
@@ -403,7 +407,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
this.handleWalking(request);
|
|
|
}
|
|
|
|
|
|
- console.log('moveSliceLastFrameSub', this.moveSliceLastFrameSub);
|
|
|
+ console.log('moveSliceLastFrameSub', !!this.moveSliceLastFrameSub);
|
|
|
|
|
|
// 监听每小段最后一帧
|
|
|
if (!this.moveSliceLastFrameSub) {
|
|
@@ -819,6 +823,10 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
|
|
|
this.hasJoystickMoveRequest = false;
|
|
|
this.logger.log('move end');
|
|
|
}, 300);
|
|
|
+ } else {
|
|
|
+ this.logger.error(
|
|
|
+ `movesteam::当前帧:${res.frame}` + JSON.stringify(res),
|
|
|
+ );
|
|
|
}
|
|
|
} catch (error) {
|
|
|
this.logger.error('handleMoveSteam::error', error);
|