拍照缓存改为20个清理一次

master
lhiven 1 year ago
parent 50385e3803
commit 831816b625

@ -20,7 +20,7 @@ namespace Rs.Framework
public static void AddManualTrigger(HObject obj)
{
imageNum++;
if (imageNum>100)
if (imageNum>20)
{
GC.Collect();
imageNum = 0;
@ -52,8 +52,9 @@ namespace Rs.Framework
public static void AddAutoTrigger(HObject obj)
{
imageNum++;
if (imageNum > 100)
if (imageNum > 20)
{
LogHelper.Debug($"imagenum={imageNum},释放内存");
GC.Collect();
imageNum = 0;
}

Loading…
Cancel
Save