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

#1 2011-12-31 13:07:09

trekkie2000
Scratcher
Registered: 2009-02-15
Posts: 100+

Extreme Lag

I have a pretty good computer. It runs most games at a decent 30-40 FPS. However, when i use scratch. input blocks are very laggy. What I mean is when I want to, say, ask a question, I grab and ask block, put it in place, but then when I click in the blank to fill it in, there is almost a 2 second timelag during which I can't type anything. This happens with any blocks where you have to fill in blanks (Are they called dialogue blocks, or are those just the "say" and "think" blocks?) As you can imagine, this makes some scripting go very slowly. Any tips or suggestions are good. This happens all the time, so I don't believe it has anything to do with the number of sprites or scripts, and I dont have any windows open. The script in question is only about 10 blocks long and is the only one in the game at the moment. I thought it was my computer, but since i got a new one this has still been happening.


"If life gives you lemons, sell lemonade for $.25...
...Sell antidote to poison in lemonade for $250" -Me

Offline

 

#2 2011-12-31 13:30:08

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Extreme Lag

My computer acts that way.
I found it helps excessively to make scripts shorter.


6418,

Offline

 

#3 2011-12-31 13:47:45

StoryMaker
Scratcher
Registered: 2007-05-06
Posts: 27

Re: Extreme Lag

CheeseMunchy wrote:

My computer acts that way.
I found it helps excessively to make scripts shorter.

I must second this notion. I was having the exact same problem, and it was EXTREMELY annoying. However, after much frustration, I realized that the problem was the fact that I was programming a very long script. I simply broke the script apart into smaller pieces temporarily, filled in the dialogue (which was now SO much faster), and re-attached the pieces of script to each other.

Example:
[blocks]
Change
<when green flag clicked>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
to
<when green flag clicked>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>


<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>

then fill in and put back together. Repeat if you need to. (Note: The example script here isn't long enough to cause lag, it's just an example.)
[/blocks]

Hope this helped!

Last edited by StoryMaker (2011-12-31 13:49:23)


~The Signature of the Me~
My Neopets account is storymakerechidna...my Club Penguin account is Caecilian...I like Sonic the Hedgehog...and I am cool!

Offline

 

#4 2011-12-31 14:12:37

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

Re: Extreme Lag

Yeah, that happens when you have some extraordinarily long scripts. Try splitting it up into smaller scripts or making greater use of the "repeat" block.  smile

Offline

 

#5 2012-01-01 15:37:01

trekkie2000
Scratcher
Registered: 2009-02-15
Posts: 100+

Re: Extreme Lag

But mine isnt that long. Its actually pretty small, 10 blocks or so


"If life gives you lemons, sell lemonade for $.25...
...Sell antidote to poison in lemonade for $250" -Me

Offline

 

#6 2012-01-01 19:13:08

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Extreme Lag

trekkie2000 wrote:

But mine isnt that long. Its actually pretty small, 10 blocks or so

You should still try splitting it up to see if that's the problem.


6418,

Offline

 

#7 2012-01-01 19:32:04

trekkie2000
Scratcher
Registered: 2009-02-15
Posts: 100+

Re: Extreme Lag

Alright, Ill try it guys. Thanks.


"If life gives you lemons, sell lemonade for $.25...
...Sell antidote to poison in lemonade for $250" -Me

Offline

 

Board footer