diff options
author | Y. Wang <y5nw@protonmail.com> | 2024-09-15 15:45:41 +0200 |
---|---|---|
committer | Y. Wang <y5nw@protonmail.com> | 2024-09-15 15:45:41 +0200 |
commit | b5d2c23b3266299c78230ccc71a055e2c1ae00fa (patch) | |
tree | e37167a65e264ecb57d6ae78e8498b3f0b7ca731 /advtrains/lzb.lua | |
parent | 9ada994d5b3bd874e537b0bc9641b925058bdf51 (diff) | |
download | advtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.tar.gz advtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.tar.bz2 advtrains-b5d2c23b3266299c78230ccc71a055e2c1ae00fa.zip |
Add tracy annotations
Diffstat (limited to 'advtrains/lzb.lua')
-rw-r--r-- | advtrains/lzb.lua | 2 |
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 |