why does scratch have a 300 clone limit
id: 530802
category: Questions about Scratch
posts: 8
Scratchyman6
loading
t
i
t
l
e
i
t
l
e
kat-coder
loading
Probably because if you have more than 300 clones, it will lag your project really badly.
The_Imaginarium
loading
If you accidentally had a loop that created clones without limit, it would probably crash your computer.
awesome-llama
loading
TurboWarp has an option to disable the clone limit. You should try it with this:
This is an extremely common mistake that users make with making clones. I'll let you see how quick it is to break the project player.
when green flag clicked
forever
broadcast [clone v]
end
when I receive [clone v]
create clone of [myself v]
This is an extremely common mistake that users make with making clones. I'll let you see how quick it is to break the project player.
Za-Chary
loading
It's to prevent lag on as many devices as possible. There's no doubt that some devices could handle 500 clones, but the 300 clone limit was chosen as a happy medium to make sure that as many Scratch projects could work on as many devices as possible.
ImYourFwend_
loading
Well, Scratch wanted the Scratchers to see it without lag (free-lag), since a few computers/laptops doesn't really work effeciently. t
i
t
l
e
mrcreatorluigi
loading
I’d say 300 clones is enough, and I found out a way to decrease the limit if you like.
creating a clone:
deleting a clone:
clone limit detection:
creating a clone:
add [clone] to [list v]
create clone of [myself v]
deleting a clone:
delete (1 v) of [list v]
delete this clone
clone limit detection:
if <(length of [list v] :: list) > [200]> thenthis block must have Run Without Screen Refresh on:
delete (200) clones::custom
end
define delete (value) clones
repeat (value)
delete (1 v) of [list v]
delete this clone
theodorwscratcher
loading
I think it might be because having lots of clones puts a lot of strain on your graphics chip.