Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Is there a limit to how many clones you can have?
- ninjafish007
-
Scratcher
10 posts
Is there a limit to how many clones you can have?
Hi,
I have this project:
https://scratch.mit.edu/projects/251871485/
When you reach 100+ (or even 50+) kills, the cloning slows down. Is this just a thing on Scratch or my PC?
I've been working on this project, making it as efficient as I can possibly make it, but to no avail.
There's A LOT that's being cloned here so I was wondering if there's a limit to how many clones are made.
If there's a better solution other than cloning then I'm open to ideas.
I really love this project and would like to get even higher scores.
I have this project:
https://scratch.mit.edu/projects/251871485/
When you reach 100+ (or even 50+) kills, the cloning slows down. Is this just a thing on Scratch or my PC?
I've been working on this project, making it as efficient as I can possibly make it, but to no avail.
There's A LOT that's being cloned here so I was wondering if there's a limit to how many clones are made.
If there's a better solution other than cloning then I'm open to ideas.
I really love this project and would like to get even higher scores.
- Pufferfish_Test
-
Scratcher
500+ posts
Is there a limit to how many clones you can have?
There is a limit of 300, and lots of clones make things slow because scratch has to handle events for all of them, and try to run lots of things concurrently within a single thread (I'm 90% sure scratch doesn't use web workers). You can speed things up slightly by using turbowarp, which also allows you to remove tge clobe limit, as does sheeptester's mod which I can't spell.
Really it depends on what you're actually doing if there's a better method… I'm sure someone else can be bothered to answer the question in regards to your project specifically
Really it depends on what you're actually doing if there's a better method… I'm sure someone else can be bothered to answer the question in regards to your project specifically

- ninjafish007
-
Scratcher
10 posts
Is there a limit to how many clones you can have?
There is a limit of 300, and lots of clones make things slow because scratch has to handle events for all of them, and try to run lots of things concurrently within a single thread (I'm 90% sure scratch doesn't use web workers).)
Wow, this is very nice to know. I'm gonna need to rethink how I make/develop the project again. Thanks for the information and for the quick reply

- -epikcoder
-
Scratcher
18 posts
Is there a limit to how many clones you can have?
when green flag clicked
repeat (how many times you want it to clone)
create clone of [ myself]
end
- Discussion Forums
- » Advanced Topics
-
» Is there a limit to how many clones you can have?


