# HG changeset patch # User kyberneticist@gmail.com # Date 1385061037 0 # Node ID 5f322c85c0e0ab32b90dc475626338765dbab8fe # Parent 3027ad3155d5b8e29258331f475610f7f075a3b3 toss in onGameTick20 - this page needs more updating tho 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() ===