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

#1 2009-10-18 12:55:21

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Optimisation Help. D:<

Nearly every project I make is below the 40fps maximum online and outside presentation mode and it's driving me crazy. Is there any way I can optimise my games (my recent ones only use movement by the way) without removing graphics (very little of those too) and functionality?

Offline

 

#2 2009-10-18 13:31:34

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Optimisation Help. D:<

If you share it I will optimize it for you and maybe teach you how  smile


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#3 2009-10-18 13:32:33

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Optimisation Help. D:<

You will *never* reach 40 fps in a project with some sprites (a game for example) be happy with 20.

A project using only one script can run faster.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#4 2009-10-18 13:35:17

demosthenes
Retired Community Moderator
Registered: 2008-02-19
Posts: 1000+

Re: Optimisation Help. D:<

I managed to get GQ2 to run 30 fps in presentation mode . . .


I've taken a long hiatus, but I still visit sometimes. Give me some time to answer any messages you post on my projects!

Offline

 

#5 2009-10-18 19:13:01

RHY3756547
Scratcher
Registered: 2009-08-15
Posts: 1000+

Re: Optimisation Help. D:<

At 20fps Games go slower than intended. Maybe code that alters the velocities depending on fps would help make games move faster, but would still leave that jitter.

My one script game LINE does work faster than many platformers, but this is mainly because of the bg position code making long levels print only 3 images at a time.

Last edited by RHY3756547 (2009-10-18 19:14:34)

Offline

 

Board footer