feat: 提交前端逻辑分析仪后台捕获;Camera现在可以以更高帧率运行

This commit is contained in:
alivender
2025-07-16 21:14:23 +08:00
parent d551cbe793
commit 8e19587a16
8 changed files with 378 additions and 316 deletions

View File

@@ -471,7 +471,7 @@ public class UDPClientPool
// Send address packages in batches of 128, control outstanding
int sentCount = 0;
var startTime = DateTime.Now;
const int batchSize = 64;
const int batchSize = 32;
while (sentCount < pkgList.Count)
{
var elapsed = DateTime.Now - startTime;
@@ -483,7 +483,7 @@ public class UDPClientPool
int outstanding = sentCount - (found.HasValue ? found.Value : 0);
// If outstanding >= 512 - batchSize, wait for some data to be received
if (outstanding >= 256 - batchSize)
if (outstanding >= 128 - batchSize)
continue;