add cache and rename some files

This commit is contained in:
2026-01-15 15:41:19 +01:00
parent 7879f15726
commit b64815d9ab
4753 changed files with 931902 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
local originTracy
local function enable()
if not originTracy then
local suc = pcall(require, 'luatracy')
if suc then
originTracy = tracy
else
originTracy = {
ZoneBeginN = function (_info) end,
ZoneEnd = function () end,
}
end
end
---@diagnostic disable-next-line: lowercase-global
tracy = originTracy
end
local function disable()
---@diagnostic disable-next-line: lowercase-global
tracy = {
ZoneBeginN = function (_info) end,
ZoneEnd = function () end,
}
end
disable()
return {
enable = enable,
disable = disable,
}