gemercheung 3 gadi atpakaļ
vecāks
revīzija
1b7934b974
2 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 1
      src/scene/scene.service.ts
  2. 0 1
      src/scene/stream/stream.service.ts

+ 1 - 1
src/scene/scene.service.ts

@@ -1061,7 +1061,7 @@ export class SceneService implements OnModuleInit, OnModuleDestroy {
         // this.logger.log('path-update-index', isLastFrameIndex);
 
         if (res.done) {
-          await this.sleep(20);
+          await this.sleep(40);
           this.frameCnt.next(res.frame);
           //关节点入库
           if (isLastFrameIndex > -1) {

+ 0 - 1
src/scene/stream/stream.service.ts

@@ -219,7 +219,6 @@ export class StreamService {
           let isPush: boolean;
           // this.logger.log('statusPack', statusPack);
           if (this.channel && this.channel.isOpen()) {
-            await this.sleep(0.5);
             isPush = this.channel.sendMessageBinary(
               Buffer.from(framePack.buffer),
             );