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

#1 2009-02-21 21:53:11

bobma99
Scratcher
Registered: 2009-02-21
Posts: 6

Need help fixing lag?

i was working on a project and eventually decided to post it online. And it lags like crazy -.- anyone got suggestions? i think its music but i cant compress it any further. any suggestions?

Offline

 

#2 2009-02-21 22:20:40

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Need help fixing lag?

get rid of the music


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2009-02-22 00:32:42

Buddy_ca111
Scratcher
Registered: 2008-08-30
Posts: 100+

Re: Need help fixing lag?

can you upload it to mediafire so I can take a look at the project?


By reading this you agree to giving me your soul, money, passwords, projects, abiltys and your bases

Offline

 

#4 2009-02-22 16:23:51

bobma99
Scratcher
Registered: 2009-02-21
Posts: 6

Re: Need help fixing lag?

kinda cant get rid of music -.- its a ddr game xD

Offline

 

#5 2009-02-22 16:47:09

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Need help fixing lag?

Set the music and image files to the lowest quality.

Offline

 

#6 2009-02-22 19:09:23

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Need help fixing lag?

maybe try deleting some of the backgrounds cause they take up lots of space.


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#7 2009-02-24 09:51:49

bobma99
Scratcher
Registered: 2009-02-21
Posts: 6

Re: Need help fixing lag?

thnx ill give it all a shot, see the problem is that this is for school xD but the school uses the old version of scratch and i use the lists in the new one. They arnt compatible so im kinda owned >.< Im not allowed to download or bring the exe to school since thats against the rules, so this is practically my only way out >.< ill get back to u guys later after i try some things. I honestly think its the music because it slows down as soon as that starts. Problem is that it wont compress anymore, least it wont when i try. You guys got any other suggestions?

Offline

 

#8 2009-02-24 10:42:16

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Need help fixing lag?

Lists and List watchers really slow things down.  Also, too many Forever loops can also cause lag...maybe you can substitute Wait Until blocks in some cases.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#9 2009-02-24 11:58:53

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Need help fixing lag?

if your left with no other option, code optimization! if two bits of script can work in one, the put it in one! basically, strip out everything that you don't need! also, loops such as forever and repeat until etc.. does slow down things alot, so try not using two many

Offline

 

#10 2009-02-24 16:25:44

bobma99
Scratcher
Registered: 2009-02-21
Posts: 6

Re: Need help fixing lag?

So.... u think the lists may cause the problems? thats actually pretty likely if it can =P ok thanks for the help, ima give it a shot. when im done with it ill tell u how it went  big_smile .

Offline

 

#11 2009-02-24 16:35:03

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Need help fixing lag?

K Leave Us A Link


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

#12 2009-02-24 16:38:39

bobma99
Scratcher
Registered: 2009-02-21
Posts: 6

Re: Need help fixing lag?

its still lagging even after i tried getting rid of the things. well ill fix that later. the important thing is i think i can solve the problem by getting rid of the lists so i can make it in the 1.2.1 version we have at school. Still help with the lag would be appreciated ^.^, actually even better is a way to get all the things into another scratch file. any suggestions?

Last edited by bobma99 (2009-02-24 16:53:17)

Offline

 

#13 2009-02-24 17:53:19

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Need help fixing lag?

Does it lag even in presentation mode?

Offline

 

#14 2009-02-24 18:14:51

726961
Scratcher
Registered: 2008-11-26
Posts: 100+

Re: Need help fixing lag?

bobma99 wrote:

kinda cant get rid of music -.- its a ddr game xD

that cracked me up.


http://scratch.mit.edu/projects/726961/604658 play it now! or else...

Offline

 

#15 2009-02-24 19:20:29

bobma99
Scratcher
Registered: 2009-02-21
Posts: 6

Re: Need help fixing lag?

it only lags while online. on my own comp it works fine

Offline

 

Board footer