Forum: Lua/XML Help
08-28-13, 04:32 AM
|
Replies: 67
Views: 35,293
Thanks for the book.
I also take back the word...
Thanks for the book.
I also take back the word 'The upvalue is the slowest', I'm confused about the result too, redo the test several times today, only 1 time the upvalue is slower than others, the...
|
Forum: Lua/XML Help
08-27-13, 08:30 PM
|
Replies: 67
Views: 35,293
Well, if you need a var in the OnUpdate or...
Well, if you need a var in the OnUpdate or something happened frequently, I suggest you may try the coroutine. Also a test example :
1. First part is using a local var 'sum' to contains the sum...
|
Forum: Lua/XML Help
08-26-13, 11:11 PM
|
Replies: 67
Views: 35,293
|
Forum: Lua/XML Help
08-26-13, 09:11 PM
|
Replies: 67
Views: 35,293
This is used to keep your variables not pollute...
This is used to keep your variables not pollute the _G, and gain some code flexibility.Also, the up-value is not as quick as you think.
Here is a test, a() function contains a long calculation, and...
|
Forum: Lua/XML Help
08-26-13, 03:57 AM
|
Replies: 67
Views: 35,293
|