toss in onGameTick20 - this page needs more updating tho
authorkyberneticist@gmail.com
Thu, 21 Nov 2013 19:10:37 +0000
changeset 346 5f322c85c0e0
parent 345 3027ad3155d5
child 347 edc8d322d02d
toss in onGameTick20 - this page needs more updating tho
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 @@
 
 === <tt>onGameTick()</tt> ===
 
-<blockquote>This function is called on every game tick, i.e. 1000 times a second.
+<blockquote>This function is called on every game tick, i.e. 1000 times a second.  If you just need to check on something periodically, consider...
+</blockquote>
+
+=== <tt>onGameTick20()</tt> ===
+
+<blockquote>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.
 </blockquote>
 
 === <tt>onNewTurn()</tt> ===