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

#1 2010-05-19 16:49:04

kakunishi
Scratcher
Registered: 2010-05-11
Posts: 12

Anyway to reduce online slowing short of reducing sprites?

Hey,

Working on a project that has a ton of slowing online but downloaded works as intended.  Is there anyway to rectify this other than removing number of sprites on screen?  Suppose optimizing code might help but I'm still in the learning process.

Any help is greatly appreciated.

Kak

Offline

 

#2 2010-05-19 17:08:01

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Anyway to reduce online slowing short of reducing sprites?

If you have a "repeat (x) times" block, that can slow it down substantially, rather than if you have a block repeated x times. Even reducing the number of times it's repeated can greatly help. For example, if you need to repeat something 25 times, why not duplicate the method which should be repeated 5 times, then having it repeat 5 times? I've found that can speed up a project substantially.

Also, compressing the sounds and images might help. When you're sharing the project, just check off the "compress sounds and images" checkbox in the corner.

Hope that helped!  smile

Offline

 

#3 2010-05-19 17:25:37

kakunishi
Scratcher
Registered: 2010-05-11
Posts: 12

Re: Anyway to reduce online slowing short of reducing sprites?

Thanks for the advice!  I just attempted to not send it in compressed, helped a little bit but not much.  I have a few forever loops going on in this as I'm trying to make it a real time experience.  Are there any other suggestions you may have?

Offline

 

#4 2010-05-19 18:30:44

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Anyway to reduce online slowing short of reducing sprites?

Sorry, I'm afraid that's the extent of my knowledge. One of the worst things about Scratch is it's inconsistency between the online player and the offline player - the difference is a result of the two being written in entirely different languages - Java and Squeak Smalltalk. The upcoming release of Scratch 2.0 should fix these problems because the online and offline mode will both be written in Flash.

Offline

 

Board footer