|
| 13 Dec 2014 10:45 AM |
At what point does having too many coroutines start to slow down a script?
--ThatChristianGuy |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2014 10:53 AM |
As soon as you have 0 coroutines. I'm serious. It entirely depends on what you are doing with your script and the coroutines. If you are using an infinite loop with no delays, you don't even need a coroutine. And if you have three coroutines of that same thing, that only makes it worse.
If you have ten coroutines all recalculating a path with PathfindingService ten times per second, then that is much more laggy than one coroutine doing the same thing. |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2014 10:55 AM |
"than one coroutine doing the same thing" If you didn't understand that, what I meant was, that is more laggy than one coroutine recalculating a path ten times per second.
I don't mean that it is more laggy than one coroutine recalculating a path one hundred times per second, as it may have sounded. |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2014 10:57 AM |
Ok. I'm editing the heck out of Kohl's admin, 'cause I really don't feel like writing one myself, so I'm trying to figure out which ones to remove. Thanks.
--ThatChristianGuy |
|
|
| Report Abuse |
|
|