mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-04-22 23:25:15 +02:00
Add per-spawn-attempt timing calculation
This commit is contained in:
parent
29717808cd
commit
23c04a6735
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue