Add additional profiling facility spawn_onstep

This commit is contained in:
sapier 2013-08-18 11:57:22 +02:00
parent fb26a79e9f
commit 21666903bb

View File

@ -662,7 +662,7 @@ function spawning.register_spawner_entity(mobname,secondary_mobname,spawndata,en
mobf_warn_long_fct(starttime,"spawnfunc " .. self.spawner_mob_name,"spawnfunc")
end
mobf_warn_long_fct(starttime,"spawner_entity_onstep","mapgen")
mobf_warn_long_fct(starttime,"spawner_entity_onstep","spawn_onstep")
end,
on_activate = function(self,staticdata)
@ -672,7 +672,7 @@ function spawning.register_spawner_entity(mobname,secondary_mobname,spawndata,en
end
--TODO honor time since deactivation
self.spawner_time_passed = 1
mobf_warn_long_fct(starttime,"spawner_entity_activate","mapgen")
mobf_warn_long_fct(starttime,"spawner_entity_activate","spawn_onstep")
end,
spawner_mob_name = mobname,