Discuss Scratch

Holodilnik35
Scratcher
77 posts

why?

when i make a code when i start as a clone create clone of myself delete this clone and ran it, Scratch just FROZED
why???

Last edited by Holodilnik35 (May 23, 2024 10:32:12)


when live started :: events hat
forever
if <it's 9 August> then
selebrate moomins day :: motion
end
end
The_Game_
Scratcher
1000+ posts

why?

Because it's creating and deleting 300 clones every single time the code runs (which is 30 times a second i think)

Neco-Arc is my spirit animal
I'm transfem, and by god I am PROUD!!!
“There's a spider in the server room again…”
Happy Pride!

Skill Issue Caught Live

Also no this picture isn't editted I just use an extension so I can view the website without being flashbanged.






 [img]https://u.cubeupload.com/The_Game_/NymphConfused.png[/img] 
 [img]https://u.cubeupload.com/The_Game_/NymphHappy.png[/img] 
 [img]https://u.cubeupload.com/The_Game_/Character.png[/img] 

;
Holodilnik35
Scratcher
77 posts

why?

The_Game_ wrote:

Because it's creating and deleting 300 clones every single time the code runs (which is 30 times a second i think)
yea, but there is ONLY that code. Program wasn't creating any clones, just this code and I must close Scratch to save the computer

when live started :: events hat
forever
if <it's 9 August> then
selebrate moomins day :: motion
end
end
han614698
Scratcher
1000+ posts

why?

Holodilnik35 wrote:

The_Game_ wrote:

Because it's creating and deleting 300 clones every single time the code runs (which is 30 times a second i think)
yea, but there is ONLY that code. Program wasn't creating any clones, just this code and I must close Scratch to save the computer
It’s an exponential function. Every time you create a clone, it creates another clone, and that clone creates another one, and that clone creates another one and so on. This means that you’re getting tons and tons of clones within one second.

<Scratch Wikian | Forum Helper | 6000+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




BigNate469
Scratcher
1000+ posts

why?

han614698 wrote:

Holodilnik35 wrote:

The_Game_ wrote:

Because it's creating and deleting 300 clones every single time the code runs (which is 30 times a second i think)
yea, but there is ONLY that code. Program wasn't creating any clones, just this code and I must close Scratch to save the computer
It’s an exponential function. Every time you create a clone, it creates another clone, and that clone creates another one, and that clone creates another one and so on. This means that you’re getting tons and tons of clones within one second.
And most people's RAM can't keep up, so the part running the project is cleared or frozen, often crashing it.

Highlight any part of this signature and press ctrl+shift+down arrow to see the rest of it.
For information on a signiture, including how to make one, visit here.
Please read the list of Officially Rejected Suggestions before posting a suggestion for Scratch!
View all of the topics you've posted in:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=topics
View all of your posts:
https://scratch.mit.edu/discuss/search/?action=show_user&show_as=posts
Lesser-known Scratch URLs:
https://scratch.mit.edu/projects/PROJECT ID HERE/remixtree (replace “PROJECT ID HERE” with project id number. Shows all the remixes of the project, and the remixes of those projects, and the remixes of those projects, and so on, as a chart. Link currently redirects to one of my projects). There was a button on the project page linking to this in 2.0, but it was removed.
View a larger list at: https://scratch.mit.edu/discuss/topic/542480/
Why @Paddle2See's responses are so often identical: https://scratch.mit.edu/discuss/topic/762351/
1000th post

The devs really need to update the scratch-gui repo- I'm getting at least 19 “npm warn deprecated” warnings whenever I try to install its dependencies, and yes, I'm using the latest version of node.js and npm. Then again, the dev page on this website and the wiki in the repo still refer to Scratch 3.0 in beta, and link the current website as an example of 2.0.
GlitchedThrough
New to Scratch
1000+ posts

why?

BigNate469 wrote:

han614698 wrote:

Holodilnik35 wrote:

The_Game_ wrote:

Because it's creating and deleting 300 clones every single time the code runs (which is 30 times a second i think)
yea, but there is ONLY that code. Program wasn't creating any clones, just this code and I must close Scratch to save the computer
It’s an exponential function. Every time you create a clone, it creates another clone, and that clone creates another one, and that clone creates another one and so on. This means that you’re getting tons and tons of clones within one second.
And most people's RAM can't keep up, so the part running the project is cleared or frozen, often crashing it.
Kinda.
So, in any storage form, temporary or permanent, there’s two major functions: Read or Write. Now, if you’re out of storage, you must remove from storage. That is, writing 0 over all 1’s in a certain array of storage. RAM typically does this automatically, slating information to be removed. The fastest operation is reading, followed by writing, followed by removing. So, when your computer adds a clone, and deletes an older clone, the older clone isn’t truly deleted just yet. When this operation repeats, it quickly fills up with meaningless information, which when it tries again, your browser doesn’t have any more RAM it can use, so it dumps everything.

There's no place like 127.0.0.1
YouTuber, culinary enthusiast, computer scientist, programmer, Engineer, electric enthusiast, legal aficionado, etc
Holodilnik35
Scratcher
77 posts

why?

tysm for all those answers. u really helped me

when live started :: events hat
forever
if <it's 9 August> then
selebrate moomins day :: motion
end
end

Powered by DjangoBB