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
+5 -2

No files matched your search

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