添加线程逻辑执行

This commit is contained in:
PC-20230316NUNE\Administrator
2024-09-12 18:06:22 +08:00
parent 77b305be7a
commit bf7b5b1160
13 changed files with 4818 additions and 49 deletions

View File

@@ -72,7 +72,7 @@ namespace JNGame.Sync.Frame
#endif
if (!IsStart) return;
base.Execute();
int deltaTime = (int)(Time.deltaTime * 1000f);
int deltaTime = TickTime;
dtTotal += deltaTime;
dtInputTotal += deltaTime;

View File

@@ -35,7 +35,7 @@ namespace JNGame.Sync.State
#endif
if (!IsStart) return;
base.Execute();
dtTime += (int)(Time.deltaTime * 1000);
dtTime += TickTime;
if (DeltaTime <= dtTime)
{
dtTime -= DeltaTime;

View File

@@ -37,7 +37,7 @@ namespace JNGame.Sync.State
#endif
if (!IsStart) return;
base.Execute();
dtTime += (int)(Time.deltaTime * 1000);
dtTime += TickTime;
if (DeltaTime <= dtTime)
{
dtTime -= DeltaTime;