This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-10-22 04:54:25

dusski
Scratcher
Registered: 2009-06-04
Posts: 75

longer the script - harder for Scratch to load it

For example I have downloaded this project and it takes some time for Scratch to load it while on the site it loads quickly  smile
is that a bug or something and is it correctable (fixable) ? ? ?  big_smile


dusski

Offline

 

#2 2009-10-22 04:59:54

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: longer the script - harder for Scratch to load it

It's not a bug, scratch has to process all of that code into a visual form AKA the blocks, which takes longer then just reading it

Offline

 

#3 2009-10-22 05:08:22

dusski
Scratcher
Registered: 2009-06-04
Posts: 75

Re: longer the script - harder for Scratch to load it

that means that it is better to have more smaller codes then one HUGE, am i right ???


dusski

Offline

 

#4 2009-10-22 05:10:07

deatheater
Scratcher
Registered: 2008-04-11
Posts: 1000+

Re: longer the script - harder for Scratch to load it

Yeah  big_smile

Offline

 

#5 2009-10-22 05:26:14

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: longer the script - harder for Scratch to load it

NYap smaller codes become burden when run so write it in a single extra large script it will run faster if u r in limit though


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#6 2009-10-22 06:06:02

dusski
Scratcher
Registered: 2009-06-04
Posts: 75

Re: longer the script - harder for Scratch to load it

fanofcena do you mean for the game to better work on line it's better to have only one large script instead more smaller scripts ???


dusski

Offline

 

#7 2009-10-22 23:38:09

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: longer the script - harder for Scratch to load it

Absolutely this was once explained  here

http://scratch.mit.edu/forums/viewtopic.php?id=18138

see this and u will learn a lot more and ur projects may run even more faster


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#8 2009-10-23 06:34:16

dusski
Scratcher
Registered: 2009-06-04
Posts: 75

Re: longer the script - harder for Scratch to load it

thanks  big_smile


dusski

Offline

 

#9 2009-10-24 18:50:26

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: longer the script - harder for Scratch to load it

dusski wrote:

For example I have downloaded this project and it takes some time for Scratch to load it while on the site it loads quickly  smile
is that a bug or something and is it correctable (fixable) ? ? ?  big_smile

lol - I caused a troubleshooting thread. This is caused by the amount of memory used by scratch expanding beyond 512MBs, at least in my other projects anyway. I don't know why a project of several hundred kbs expands to 512MBs, but it might be something to optimise.

Offline

 

Board footer