Page 1 of 1
Difference between globalstep and abm?

Posted:
Fri Dec 23, 2016 12:08
by Milan*
Hi there,
as i read, adm's can cause perfomance trouble for the game - now i read about globalstep.
I am wondering what the differences are exactly between them and if globalstep is faster than abm.
Re: Difference between globalstep and abm?

Posted:
Fri Dec 23, 2016 13:41
by rubenwardy
ABMs are run ON nodes. So they may be called multiple times per tick if you have multiple nodes matching the query.
Global steps run ONCE a tick - a tick is a step. So the function runs once every global server step.
Minetest.after is recommended if you want to run a function at intervals that isn't every server step
Timers run ON a single node's position
Re: Difference between globalstep and abm?

Posted:
Sat Dec 24, 2016 09:45
by paramat
The speed depends on the actions triggered.
ABMs only run within 3 mapblocks (48 nodes) of players.
The globalstep is 10-20 times per second.
Re: Difference between globalstep and abm?

Posted:
Mon Dec 26, 2016 16:40
by Milan*
Thank you both, i think it helped me to understand :)