added performance counter for think hook
This commit is contained in:
@@ -924,9 +924,17 @@ namespace Barotrauma
|
|||||||
|
|
||||||
SoundManager?.Update();
|
SoundManager?.Update();
|
||||||
|
|
||||||
|
Stopwatch luaSw = new Stopwatch();
|
||||||
|
|
||||||
|
luaSw.Start();
|
||||||
|
|
||||||
GameMain.LuaCs.Update();
|
GameMain.LuaCs.Update();
|
||||||
GameMain.LuaCs.Hook.Call("think");
|
GameMain.LuaCs.Hook.Call("think");
|
||||||
|
|
||||||
|
luaSw.Stop();
|
||||||
|
PerformanceCounter.AddElapsedTicks("Think Hook", luaSw.ElapsedTicks);
|
||||||
|
|
||||||
|
|
||||||
Timing.Accumulator -= Timing.Step;
|
Timing.Accumulator -= Timing.Step;
|
||||||
|
|
||||||
updateCount++;
|
updateCount++;
|
||||||
|
|||||||
Reference in New Issue
Block a user