diff -r 3027ad3155d5 -r 5f322c85c0e0 LuaAPI.wiki --- a/LuaAPI.wiki Sat Nov 16 14:44:32 2013 +0000 +++ b/LuaAPI.wiki Thu Nov 21 19:10:37 2013 +0000 @@ -98,7 +98,12 @@ === onGameTick() === -
This function is called on every game tick, i.e. 1000 times a second. +
This function is called on every game tick, i.e. 1000 times a second. If you just need to check on something periodically, consider... +
+ +=== onGameTick20() === + +
This function is called every 20 game ticks, i.e. 50 times a second. It reduces lua overhead for simple monitoring that doesn't need to happen every single tick.
=== onNewTurn() ===