Refactor Image Queue Max Length

This commit is contained in:
copecone committed 2026-05-28 14:36:31 +09:00
1 parent 32db6c93b2
commit c235da001c
2 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -19,6 +19,8 @@ namespace ADOFAIRenderer.Core
public static bool IsActive => Instance && Instance.isRendering;
public static bool IsCapturingActive => Instance && Instance.isCapturing;
public const int MaxQueuedFrames = 64;
// Core Render Configuration and Path
public int countdown;
public long frameCount;
@@ -217,7 +219,6 @@ namespace ADOFAIRenderer.Core
renderCheck = false; // 이번 프레임 정상 렌더링 완료
// [Backpressure Throttling (2번 작업)]
const int maxQueuedFrames = 60;
isThrottling = false;
while (isCapturing && isRendering)
@@ -228,7 +229,7 @@ namespace ADOFAIRenderer.Core
count = ImageQueue.Count;
}
if (count <= maxQueuedFrames) break;
if (count <= MaxQueuedFrames) break;
if (!isThrottling)
{