SHA256
forked from ADOFAIEditorForum/ADOFAIRenderer
More Accurate Time Scale Calculation
This commit is contained in:
1 parent
5ee4a7fc51
commit
156cec4f7f
1 file changed
+3
-3
+3
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user