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