More Accurate Time Scale Calculation

This commit is contained in:
copecone committed 2026-05-25 21:36:39 +09:00
1 parent 5ee4a7fc51
commit 156cec4f7f
1 file changed
+3 -3
+3 -3
View File
@@ -120,10 +120,10 @@ namespace ADOFAIRenderer
RenderCheck = true; // 다음 프레임 검사용으로 초기화
RenderManager.FrameCount++;
/*if (realDeltaTime > 0)
if (realDeltaTime > 0)
{
Time.timeScale = (float)(Time.deltaTime / realDeltaTime);
}*/
Time.timeScale = (float)(1 / RenderManager.Configuration.TargetFPS / realDeltaTime);
}
}
public static int FrameCountForVideo;