aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
diff options
context:
space:
mode:
authorY. Wang <y5nw@protonmail.com>2024-09-15 15:45:41 +0200
committerY. Wang <y5nw@protonmail.com>2024-09-15 15:45:41 +0200
commitb5d2c23b3266299c78230ccc71a055e2c1ae00fa (patch)
treee37167a65e264ecb57d6ae78e8498b3f0b7ca731 /advtrains_luaautomation
parent9ada994d5b3bd874e537b0bc9641b925058bdf51 (diff)
downloadadvtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.tar.gz
advtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.tar.bz2
advtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.zip
Add tracy annotations
Diffstat (limited to 'advtrains_luaautomation')
-rw-r--r--advtrains_luaautomation/interrupt.lua2
1 files changed, 2 insertions, 0 deletions
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