#Efficiency of tick function vs self-calling function

1 messages · Page 1 of 1 (latest)

near gazelle
#

Hello, what would be a better implementation:
A function that calls itself every 10 seconds (for example) or a tick function?
This is an example of my self-calling function, that has an interval of 10 seconds:

execute as @a run say this is the code i want each player to run (for example a trigger objective check)
schedule function my_namespace:my_function 10s

Is this a better approach than a tick function? Specially for the lag issues, for example, on an Aternos server

delicate kettle
#

A scheduled function is more performant

near gazelle