diff --git a/Barotrauma/BarotraumaClient/ClientSource/GameMain.cs b/Barotrauma/BarotraumaClient/ClientSource/GameMain.cs index 252bbb5ad..24eb0b03b 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/GameMain.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/GameMain.cs @@ -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++;