aboutsummaryrefslogtreecommitdiff
path: root/advtrains/lzb.lua
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/lzb.lua
parent9ada994d5b3bd874e537b0bc9641b925058bdf51 (diff)
downloadadvtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.tar.gz
advtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.tar.bz2
advtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.zip
Add tracy annotations
Diffstat (limited to 'advtrains/lzb.lua')
-rw-r--r--advtrains/lzb.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains/lzb.lua b/advtrains/lzb.lua
index 64e4553..5883a55 100644
--- a/advtrains/lzb.lua
+++ b/advtrains/lzb.lua
@@ -81,6 +81,7 @@ local function look_ahead(id, train)
-- in order to not trigger approach callbacks on the wrong path
return
end
+ tracy.ZoneBeginN("advtrains.lzb_look_ahead")
local acc = advtrains.get_acceleration(train, 1)
-- worst-case: the starting point is maximum speed
@@ -122,6 +123,7 @@ local function look_ahead(id, train)
lzb.trav_index = trav
+ tracy.ZoneEnd()
end
advtrains.lzb_look_ahead = look_ahead