Hey, and thanks for reading in advance.
I recall having trouble in the past using modules with functions that created subroutines, mostly when running multiple at the same time. I’m about 30% of the way into a tower defense project, and a quick look at my architecture showed me that I was doing exactly that.
The scripts in the ‘modules’ folder handle the server code for tower abilities that manipulate an area of the path in some manner over a period of time, and the scripts in the ‘statuseffects’ folder are self-explanatory. All of them run their loops in subroutines, and I specifically remember situations in which certain threads would just stop being run by the scheduler if too many existed at the same time, and ceasing the use of modules provided an answer to that solution.
Is this something I need to worry about now, or am I not correctly understanding the problem?