From c7ff2958a67b1ce0c0bebae91cc56b5da60b1878 Mon Sep 17 00:00:00 2001 From: "Y. Wang" Date: Mon, 16 Sep 2024 00:43:27 +0200 Subject: More tracy wrappers for path/LZB-related functions --- advtrains/lzb.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'advtrains/lzb.lua') diff --git a/advtrains/lzb.lua b/advtrains/lzb.lua index 5883a55..918d78d 100644 --- a/advtrains/lzb.lua +++ b/advtrains/lzb.lua @@ -241,6 +241,7 @@ end -- If you DON'T modify lzbdata, you MUST pass nil as lzbdata. Always modify the lzbdata table in place, never overwrite it! -- udata: user-defined data, do not use externally function advtrains.lzb_add_checkpoint(train, index, speed, callback, lzbdata, udata) + tracy.ZoneBeginN("advtrains.lzb_add_checkpoint") local lzb = train.lzb local pos = advtrains.path_get(train, index) local lzbdata_c = nil @@ -260,6 +261,7 @@ function advtrains.lzb_add_checkpoint(train, index, speed, callback, lzbdata, ud table.insert(lzb.checkpoints, ckp) apply_checkpoint_to_path(train, ckp) + tracy.ZoneEnd() end -- cgit v1.2.3