I'm writing a C++ wrapper class that allows me to
manipulate variables in a loaded lua script. It works fine, but is very slow
because I'm performing these operations many times (in real-time). Is there a
way to write directly to the memory location without having to search and push
the variable onto the stack by name?
LuaBool myBool ( lua_state, "boolvar_in_script"
LuaFloat myValue ( lua_state,
myBool = false; // write to variable
bool tmpBoolean = myBool; // read from