From b5d2c23b3266299c78230ccc71a055e2c1ae00fa Mon Sep 17 00:00:00 2001 From: "Y. Wang" Date: Sun, 15 Sep 2024 15:45:41 +0200 Subject: Add tracy annotations --- advtrains_luaautomation/interrupt.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'advtrains_luaautomation/interrupt.lua') diff --git a/advtrains_luaautomation/interrupt.lua b/advtrains_luaautomation/interrupt.lua index 2e54ad8..e9b47fe 100644 --- a/advtrains_luaautomation/interrupt.lua +++ b/advtrains_luaautomation/interrupt.lua @@ -46,6 +46,7 @@ function iq.add(t, pos, evtdata) end function iq.mainloop(dtime) + tracy.ZoneBeginN("atlatc.interrupt.mainloop") timer=timer + math.min(dtime, 0.2) local i=1 while i<=#queue do @@ -66,6 +67,7 @@ function iq.mainloop(dtime) i=i+1 end end + tracy.ZoneEnd() end -- cgit v1.2.3