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

#1 2010-07-04 22:24:43

Ralfiyell
New Scratcher
Registered: 2010-07-04
Posts: 7

Fixing Scratch Lag

Perhaps it's just my computer anyway, my projects will run fine in scratch but once I upload them to the website and try to play them, There is some serious lag which causes a lot of my scripts to stop working and makes it nearly impossible for my project to work.

Like I said this may be just my computer, but if it happens to everyone I want to know......

Anyway you can fix this, or point my in the Right direction if I'm wrong.???

thanks,

>>Ralfiyell<<

Offline

 

#2 2010-07-04 22:32:04

iCode-747
Scratcher
Registered: 2009-11-21
Posts: 1000+

Re: Fixing Scratch Lag

It's Java.

That simple. Just tell everyone to download, and it'll work fine offline.

It's... Hard to explain. You can't really fix lag or failing scripts... But if it simply won't load, increase Java heap memory.

It's not you or me. It's just a problem that has to be fixed.  smile


-End Transmission-

Offline

 

#3 2010-07-05 00:21:21

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Fixing Scratch Lag

Scratch 2.0 will be much faster and completely redone so that the online and offline versions are written in the same language (likely Flash), getting rid of those bugs in viewing projects online.  big_smile

But yeah, right now it's just the online player. if you want, you can make an online sensor. (Which does exactly what it sounds like.)

The easiest way to do this is to set a variable to "offline" to start with. Then, add a script that includes 0/0. Then after that, set the variable to "online." The offline players hits the error (can't divide by 0) and stops the script. The online player, however, skips over it and continues, setting the variable to "online". For example:

Code:

When Green Flag clicked:
   set [online?] to [offline]
   move [0/0] steps
   set [online?] to [online]

Tada! Then, if the variable is online, then have a notice pop up in the project to tell the user to please view offline for best results.

Last edited by Harakou (2010-07-05 00:37:18)


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2010-07-05 08:18:21

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

Re: Fixing Scratch Lag

iCode-747 wrote:

It's Java.

That simple. Just tell everyone to download, and it'll work fine offline.

Well, the Scratch program itself is pretty laggy, too, so I'd doubt it's solely the responsibility of the Java player.

Frankly, there's a lot of lag in the program that just... gets annoying.

Offline

 

Board footer