Add per-spawn-attempt timing calculation

This commit is contained in:
teknomunk 2025-01-14 06:15:11 -06:00 committed by the-real-herowl
parent 29717808cd
commit 23c04a6735

View file

@ -1160,7 +1160,7 @@ if mobs_spawn then
count = count + 1
minetest.log("Next spawn attempt in "..tostring(timer).." previous attempt took "..took.." us")
minetest.log("Totals: "..tostring(total_time / (core.get_us_time() - start_time)).."% count="..count)
minetest.log("Totals: "..tostring(total_time / (core.get_us_time() - start_time)).."% count="..count..", "..tostring(total_time/count).."us per spawn attempt")
end
end)
end