Utilize captureDeltaTime in Rendering

This commit is contained in:
copecone committed 2026-05-26 14:06:19 +09:00
1 parent 8f68f4b089
commit 2eb26fe748
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -105,6 +105,7 @@ namespace ADOFAIRenderer.Component
DontDestroyOnLoad(_escapeHandlerObj); DontDestroyOnLoad(_escapeHandlerObj);
} }
Time.captureDeltaTime = (float)(1 / Configuration.TargetFPS);
scrController.instance!.StartCoroutine(SetupPlay()); scrController.instance!.StartCoroutine(SetupPlay());
} }
@@ -404,6 +405,8 @@ namespace ADOFAIRenderer.Component
private static void EndRender() private static void EndRender()
{ {
Time.timeScale = 1f; Time.timeScale = 1f;
Time.captureDeltaTime = 0f;
if (_debugMonitorObj) if (_debugMonitorObj)
{ {
Destroy(_debugMonitorObj); Destroy(_debugMonitorObj);
+1 -1
View File
@@ -122,7 +122,7 @@ namespace ADOFAIRenderer
if (realDeltaTime > 0) if (realDeltaTime > 0)
{ {
Time.timeScale = (float)(1 / RenderManager.Configuration.TargetFPS / realDeltaTime); // Time.timeScale = (float)(1 / RenderManager.Configuration.TargetFPS / realDeltaTime);
} }
} }