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

#1 2010-06-03 19:52:57

DB88
Scratcher
Registered: 2010-05-20
Posts: 42

Making scripts run faster/more efficiently

I'm new to Scratch but am enjoying it a great deal.  I have read here and there on the forums about things that for some reason don't run as fast as you would think.  For example, I saw a recent post that said that a repeat block executes more slowly than the same code actually repeated a number of times in series.

I'm sure there are a number of other do's and don'ts that the more experience Scratchers could provide with respect to making scripts run more efficiently.  If you have some tips, please post them in this thread.  If enough good information is posted, maybe the mods could sticky this thread for future reference.


Most Recent Projects: 
Four Bar Linkage Animator:  http://scratch.mit.edu/projects/DB88/1102417  ...... Moon Defender:  http://scratch.mit.edu/projects/DB88/1092234  ..... BUGS:  http://scratch.mit.edu/projects/DB88/1095318

Offline

 

#2 2010-06-03 19:59:08

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Making scripts run faster/more efficiently

Well, one thing I have learned from previous experience is that, instead of using broadcasts for everything, use variables set to 1 or 0 or yes or no. This speeds up the scripts a bit and cuts down the lag.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

Board footer