generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Coroutine Efficiency

Previous Thread :: Next Thread 
ThatChristianGuy is not online. ThatChristianGuy
Joined: 14 Jun 2014
Total Posts: 1283
13 Dec 2014 10:45 AM
At what point does having too many coroutines start to slow down a script?


--ThatChristianGuy
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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
ThatChristianGuy is not online. ThatChristianGuy
Joined: 14 Jun 2014
Total Posts: 1283
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image