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

#1 2010-09-28 19:16:16

uberdeluxe
Scratcher
Registered: 2009-08-28
Posts: 100+

make projects run faster

is there a way to make projects run faster? i have a project where most of the scripts are a decent length theres probably around 30-40 and about 15 sprites, is there any way to make it run faster? if any one could help i give you my thanks...
also the games called tanks and turrets  big_smile

Offline

 

#2 2010-09-28 19:36:02

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

Re: make projects run faster

Try to avoid too many broadcasts, infinite loops, and sounds. Those have a tendency to really slow projects down.


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

Offline

 

#3 2010-09-28 19:41:44

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: make projects run faster

Lucario621 made a nice guide for making your projects run faster - here it isbig_smile

EDIT: Oh, that's for making it faster when you're programming, not running the projects... oh well, it's a nice thing to read. ^_^

Last edited by Jonathanpb (2010-09-28 19:42:54)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#4 2010-09-28 19:46:23

uberdeluxe
Scratcher
Registered: 2009-08-28
Posts: 100+

Re: make projects run faster

well making less infinite loops helped a lot theres no sound though and theres about 5 times where theres broadcastsbut there is quite a few infinite loops, about 7-10

Offline

 

#5 2010-09-28 19:50:59

uberdeluxe
Scratcher
Registered: 2009-08-28
Posts: 100+

Re: make projects run faster

oh hey i was woundering how to make it lag less when scripting large scripts thanks thumbs up for the guide

Offline

 

#6 2010-10-01 17:52:43

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: make projects run faster

I don't see this one often but graphic effects (color change,etc) especially in multiple on-screen sprites will add major lag quickly.

Here is another one, rotating really big sprites can also cause lag.

Often times, things may seem to generate little lag until you get many scripts and sprites running at once. A good sign is a project that is running pretty well but suddenly slows when "something" happens on the screen. Obviously, that "something" or part of that script block is causing the problem.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#7 2010-10-02 04:42:29

subzerostig
Scratcher
Registered: 2010-09-08
Posts: 100+

Re: make projects run faster

Normally if it lags online or in the little box then you need to run in presentation mode as that removes nearly all lag. Just in case you didn't know.  smile


There are 10 types of people people in this world, those that understand binary and those that do not: My latest Project: Present catcher V2                          06/12/2012

Offline

 

Board footer