remove profiling code

This commit is contained in:
BuckarooBanzay 2021-01-03 17:06:14 +01:00
parent c52500c4f4
commit 1bc15b0ecf

View File

@ -56,17 +56,9 @@ local timer = 0
minetest.register_globalstep(function(dtime)
timer = timer + dtime;
if timer >= 2 then
local t0 = minetest.get_us_time()
for _,player in ipairs(minetest.get_connected_players()) do
check_player(player, timer)
end
timer = 0
local t1 = minetest.get_us_time()
local diff = t1 - t0
if diff > 10000 then
minetest.log("warning", "[spacesuit] update took " .. diff .. " us")
end
end
end)