补充设置并发数量调整为8,减少下发taskpool请求数量,从而减少丢帧

Signed-off-by: madixin <madixin@huawei.com>
This commit is contained in:
madixin 2024-05-06 20:02:33 +08:00
parent 400ba85a5d
commit 8b4ba78d56
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ import { ImageKnifeRequestWithSource , ImageKnifeRequestSource , RequestJobResul
export class ImageKnifeDispatcher { export class ImageKnifeDispatcher {
// 最大并发 // 最大并发
private maxRequests: number = 64 private maxRequests: number = 8
// 排队队列 // 排队队列
private jobQueue: IJobQueue = new DefaultJobQueue() private jobQueue: IJobQueue = new DefaultJobQueue()
// 执行中的请求 // 执行中的请求