Fixed Delta Time

This commit is contained in:
brausjonas
2023-03-12 00:32:14 +01:00
parent a00bb478b9
commit 1a0559addb
4 changed files with 99 additions and 220 deletions
+7 -2
View File
@@ -42,7 +42,12 @@ public class Client : MonoBehaviour
{
return thisClient;
}
private void Awake()
{
Time.fixedDeltaTime = 0.01f;
}
private void Start()
{
Application.targetFrameRate = 100;
@@ -127,7 +132,7 @@ public class Client : MonoBehaviour
}
}
private void Update()
private void FixedUpdate()
{
fpsText.text = "" + Time.frameCount / Time.time + "";