SHA256
Utilize captureDeltaTime in Rendering
This commit is contained in:
1 parent
8f68f4b089
commit
2eb26fe748
2 files changed
+4
-1
No files matched your search
@@ -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
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user