Skip to content

Commit

Permalink
remove profiling code
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jan 3, 2021
1 parent c52500c commit 1bc15b0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions drowning.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 1bc15b0

Please sign in to comment.