From adf16750cba65f10918bbf35ce1bc8b0ac53d087 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Sun, 16 Jul 2017 22:03:35 -0400 Subject: [PATCH] update conventions --- main.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.lua b/main.lua index 62689e4..f1cf898 100644 --- a/main.lua +++ b/main.lua @@ -42,6 +42,8 @@ Var names: - upval to local: prefix with _ - global to local: prefix with __ - replace . with _ if callng from table + - the only reason to do either of these is for performance, therefore + no need to localize variables that are only used during init - global: preceed with g_ - Temporal Scope - init: only relevent to startup (nil'ed before first rendering loop)