Soandso2
Well-known member
- Joined
- Mar 13, 2023
- RedCents
- 937¢
As I understand it, I can run multiple Lua scripts simultaneously. Do they execute in sequence, in some sort of loop? First script 1, then script 2, then script 3, then back to script 1 again and so on and so forth. Or do they execute in a parallell way? If the latter, does that mean that I can get faster execution of certain pieces of code?
Say that I have one Lua with an eternal do-while-loop, in which I call two functions. The second one wont execute until the first one is done. Granted this may only take milli- or micro-seconds, but still...
If I instead make two Lua scripts, each with an eternal do-while-loop and just call one function (in the loop) per script. Does this save me time (again possibly micro-seconds, but again... still)
Say that I have one Lua with an eternal do-while-loop, in which I call two functions. The second one wont execute until the first one is done. Granted this may only take milli- or micro-seconds, but still...
If I instead make two Lua scripts, each with an eternal do-while-loop and just call one function (in the loop) per script. Does this save me time (again possibly micro-seconds, but again... still)

