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

#1 2012-02-29 00:32:10

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Setting Block Processing Speed

So we all know project don't run as fast as we'd like and we wish they would run faster. Well, I've got to think about a way to set the "Block Processing Speed" or "Project Speed" so it is a project specific setting. So you can set the speed to 10 blocks per second (1 block every 0.1 seconds) or 100 blocks per second (1 block every 0.01 seconds).

Since this would be project specific, so users don't have to change the project stepping speed every time they need to make the project go faster (turbo mode anyone?). So you could set it to 0 blocks per second (-1 blocks per second, for those of you geeks out there that understand -1 settings), which would make the project go through all the blocks as fast as possible.

Any thoughts?

Offline

 

#2 2012-02-29 01:37:40

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Setting Block Processing Speed

So you want Scratch to go faster?

I don't think that it would be possible on slower machines...

Although a x blocks/second seems a good suggestion.


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#3 2012-02-29 01:41:59

ProgramCAT
Scratcher
Registered: 2011-12-13
Posts: 500+

Re: Setting Block Processing Speed

jji7skyline wrote:

Although a x blocks/second seems a good suggestion.

I agree.


Programming is an art...
Goodbye, Scratch. I am leaving because of the exams coming up at our school, though I'll check the forums once or twice a week.

Offline

 

#4 2012-02-29 06:29:13

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Setting Block Processing Speed

ProgramCAT wrote:

jji7skyline wrote:

Although a x blocks/second seems a good suggestion.

I agree.

Me too.
How would 0bps work, and also -1?

Offline

 

#5 2012-02-29 08:53:56

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Setting Block Processing Speed

i suppose it wait if it's too fast, but if it's running too slow it will just make it like turbo mode..
support  smile

Offline

 

#6 2012-02-29 10:45:58

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Setting Block Processing Speed

I completely support.


Why

Offline

 

#7 2012-02-29 10:58:01

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Setting Block Processing Speed

i like this


Posts: 20000 - Show all posts

Offline

 

#8 2012-03-01 03:34:01

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Setting Block Processing Speed

I support.


http://trinary.tk/images/signature_.php

Offline

 

#9 2012-03-01 09:09:34

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: Setting Block Processing Speed

I just had this idea yesterday, and never got around to posting it.  Support!   smile

Offline

 

#10 2012-03-01 15:59:36

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Setting Block Processing Speed

Well, the RAM usage would spike...

What would be cool would be if Scratch had something like JIT that compiled Scratch projects into executables for better speeds.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#11 2012-03-01 21:51:51

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Setting Block Processing Speed

bobbybee wrote:

Well, the RAM usage would spike...

What would be cool would be if Scratch had something like JIT that compiled Scratch projects into executables for better speeds.

That would speed up projects a lot.  smile


http://trinary.tk/images/signature_.php

Offline

 

#12 2012-03-01 23:34:37

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Setting Block Processing Speed

scimonster wrote:

How would 0bps work, and also -1?

-1 usually means "infinite" when setting it as a value for an always positive setting. So basically -1 would tell Scratch not to wait for any number of blocks and go through them as fast as possible.

The reason why I think this idea is "unique" to Turbo Mode, is because, some projects need to run as fast as possible, while others may run faster than Scratch's default speed, but slower than "fast as possible". In case for anyone thinking that this is the same as Turbo Mode.  smile

Bobbybee: How would RAM spike? It would use one variable which would use maybe one KB of RAM. It's more likely that CPU will spike than RAM.

jji7skyline: Yes, I do want Scratch to go faster, but this suggestion is about controlling Scratch's speed in another way than with wait blocks.

Offline

 

#13 2012-04-07 03:54:47

360-International
Scratcher
Registered: 2011-07-17
Posts: 100+

Re: Setting Block Processing Speed

I support.


https://lh4.googleusercontent.com/Oib6kyze-OrCFIRlqL6HYnWuHBQp1GfFoh5CkBlZGe3_9WCk-_DDwgfFrnD_mxJ_x2b18hMUyV2KVtIDiLdebyWaQQ6fbpKpZs-8auVep1zoSgOv-iA

Offline

 

#14 2012-04-07 06:54:03

GLaD0S
Scratcher
Registered: 2010-06-09
Posts: 19

Re: Setting Block Processing Speed

Isn't Scratch already running as fast as it can? As far as I know, what slows it down is the fact that it redraws the frame everytime specific blocks (loops? not sure which ones exactly) are executed. To circumvent this, I've seen some advanved Scratchers chain their Scripts 10+ times rather than or in addition to looping them to speed them up. Turbo mode works as some sort of frameskip function that skips this drawing cycle most of the time. I might be wrong about this, but this is how I've perceived it when working with Scratch.

That only applies to Squeak Scratch anyway, since Flash Scratch will be able to use Flash's greater drawing capabilities and thus should run faster in most cases. If the Scratch Team decides to "downclock" Flash Scratch, however, it would indeed be nice to have a project-bound option to speed it up.

Offline

 

#15 2012-04-07 07:18:41

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Setting Block Processing Speed

GLaD0S wrote:

Isn't Scratch already running as fast as it can? As far as I know, what slows it down is the fact that it redraws the frame everytime specific blocks (loops? not sure which ones exactly) are executed. To circumvent this, I've seen some advanved Scratchers chain their Scripts 10+ times rather than or in addition to looping them to speed them up. Turbo mode works as some sort of frameskip function that skips this drawing cycle most of the time. I might be wrong about this, but this is how I've perceived it when working with Scratch.

That only applies to Squeak Scratch anyway, since Flash Scratch will be able to use Flash's greater drawing capabilities and thus should run faster in most cases. If the Scratch Team decides to "downclock" Flash Scratch, however, it would indeed be nice to have a project-bound option to speed it up.

The loops in particular are actually slowed down on purpose, possibly so that users using motion blocks (for example) can see the sprites moving across the screen rather than jolting and jumping to their locations after the whole loop is executed. Of course, this also means redrawing the screen every loop, so there's some advantage to using Flash for that I would believe.

All in all I support this idea, but could it be a bit too complicated for those who don't exactly understand numbers that well?

Offline

 

Board footer