Refactor Hardcoded Max Render Retry

This commit is contained in:
copecone committed 2026-05-28 20:24:33 +09:00
1 parent 112f049d51
commit 250f8e44bc
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -21,6 +21,7 @@ namespace ADOFAIRenderer.Core
public static bool IsCapturingActive => Instance && Instance.isCapturing;
public const int MaxQueuedFrames = 64;
public const int MaxRenderRetry = 64;
// Core Render Configuration and Path
public int countdown;
@@ -172,9 +173,9 @@ namespace ADOFAIRenderer.Core
// [렉으로 인한 프레임 렌더링 스킵 시 재시도 로직 (원본 모드 이식)]
if (renderCheck && isCapturing)
{
if (skipCount < 60)
if (skipCount < MaxRenderRetry)
{
Melon<RenderMod>.Logger.Warning($"[Render Skipped] Frame {frameCount} rendering missed. Retrying... (Attempt {skipCount + 1}/60)");
Melon<RenderMod>.Logger.Warning($"[Render Skipped] Frame {frameCount} rendering missed. Retrying... (Attempt {skipCount + 1}/{MaxRenderRetry})");
skipCount++;
Time.timeScale = 0f; // 진행 시간 멈추기 (재시도)
return; // 업데이트 진행하지 않고 대기
+1 -1
View File
@@ -205,7 +205,7 @@ namespace ADOFAIRenderer.UI
sb.AppendLine();
sb.AppendLine($"• Throttling Controls: {(RenderManager.Instance ? RenderManager.Instance.throttleCount : 0)} times");
sb.AppendLine($"• Readback Hard Failures: <color=#ff3333>{(RenderManager.Instance ? RenderManager.Instance.readbackFailureCount : 0)}</color> times");
sb.AppendLine($"• Render Skip-Retry: {(RenderManager.Instance ? RenderManager.Instance.skipCount : 0)} / 60");
sb.AppendLine($"• Render Skip-Retry: {(RenderManager.Instance ? RenderManager.Instance.skipCount : 0)} / {RenderManager.MaxRenderRetry}");
var memoryMb = GC.GetTotalMemory(false) / (1024.0 * 1024.0);
sb.AppendLine($"• Mono Heap Memory: {memoryMb:F2} MB");