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