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 » Scripting Helpers
Home Search
 

Re: Which lags more?

Previous Thread :: Next Thread 
coltman188888 is not online. coltman188888
Joined: 09 May 2009
Total Posts: 9330
19 Jan 2013 09:37 AM
Cloning a script or coroutine?
Report Abuse
8SunTzu8 is not online. 8SunTzu8
Joined: 30 Sep 2011
Total Posts: 8199
19 Jan 2013 10:09 AM
Cloning will add another thread and use more memory since the script object takes up some memory.

A coroutine just adds another thread.

My best bet, is that using a coroutine is better. Also, calling the function to clone, though small, might be a little less efficient.

But, I don't know how coroutines work under the hood, so I can't say for sure. This is just a guess.

"If you want to become a Developer or Innovator for CSA, contact me."
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
19 Jan 2013 10:33 AM
Both would cause lag but I would say making a coroutine is better
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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