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

#1 2007-05-27 09:41:19

uncleclives
Scratcher
Registered: 2007-05-19
Posts: 21

Slow down!

Hi,

Hope someone can answer me this when I share a project online such as my breakout test http://scratch.mit.edu/projects/uncleclives/7446 and try and test it from there it's much slower than if I download and open it up in the scratch program to play ?

Offline

 

#2 2007-05-27 14:30:20

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Slow down!

The java implementation is slower than molasses.  I don't know whether the problem is that java is an interpreted language (and so usually 2x slower than compiled languages), or whether the problem is lack of attention to resource-efficient programming in the java implementation.  Computer science departments no longer teach resource-efficient programming, since only game programmers and bioinformaticians seem to care about speed these days.

Offline

 

#3 2007-05-27 22:11:22

Canthiar
Scratcher
Registered: 2007-05-16
Posts: 100+

Re: Slow down!

You would be surprised how many game programmers don't optimize for memory usage or  performance.

Offline

 

#4 2007-05-28 20:44:19

weissjd
Scratcher
Registered: 2007-05-16
Posts: 64

Re: Slow down!

I solved this by running a short test to gague the relative speed. Take a look at http://scratch.mit.edu/projects/weissjd/5435

Offline

 

#5 2007-05-29 15:42:17

bernatp
Scratcher
Registered: 2007-03-07
Posts: 49

Re: Slow down!

Can someone tell me what are the things that causes radical slowing down? Should I avoid using lots of forevers, broadcasts,...? How could I modify a project's code to increase the speed?

Offline

 

#6 2007-05-29 16:28:05

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Slow down!

forever loops without waits in them seem to be a real killer in the java implementation.
The loop gets run a lot, and all other scripts barely get any cycles.

Offline

 

Board footer