新版loading逻辑

This commit is contained in:
lishuo committed 2022-12-05 18:29:49 +08:00
1 parent 3c64109090
commit ae58f4d461
367 files changed
+74232 -220035

No files matched your search

@@ -16,17 +16,17 @@ namespace Assets.Scenes.Ride.Scripts
}
private void Update()
{
count++;
deltaTime += Time.deltaTime;
if (deltaTime >= showTime)
{
float fps = count / deltaTime;
//float milliSecond = deltaTime * 1000 / count;
string strFpsInfo = string.Format("{0:0.}FPS", fps);
tvFpsInfo.text = strFpsInfo;
count = 0;
deltaTime = 0f;
}
//count++;
//deltaTime += Time.deltaTime;
//if (deltaTime >= showTime)
//{
// float fps = count / deltaTime;
// //float milliSecond = deltaTime * 1000 / count;
// string strFpsInfo = string.Format("{0:0.}FPS", fps);
// tvFpsInfo.text = strFpsInfo;
// count = 0;
// deltaTime = 0f;
//}
}
}
}