Discuss Scratch

SUPER_scratcher188
Scratcher
13 posts

How long is the delay with forever blocks?

first post woohoo

anyway, if i have a forever block and a task in it (example: move 10 steps) or something, what delay does it have when it completes the task once?
i've gone around searching and it says “there's a slight delay with the forever block” but it never specifies the exact number. how long delay pls help??
i've done some experimenting and i think it's 1/60th of a second.
Yusei-Fudo
Scratcher
1000+ posts

How long is the delay with forever blocks?

I think about 1 frame or so.
SUPER_scratcher188
Scratcher
13 posts

How long is the delay with forever blocks?

alright, thanks. i'm just wondering, what's the fps cap?
Yusei-Fudo
Scratcher
1000+ posts

How long is the delay with forever blocks?

Not sure what you mean exactly, but Scratch runs at 30 FPS.

So the equation would be 1/30

Last edited by Yusei-Fudo (May 25, 2021 22:59:10)

StampDanFan
Scratcher
100+ posts

How long is the delay with forever blocks?

It is 1/30, but if you run it in turbo mode or under a define block with “run without screen refresh” ticked, the code will run it as fast as it can (without drawing the screen).
deck26
Scratcher
1000+ posts

How long is the delay with forever blocks?

But will be slower than 30 fps if you give the project too much to do in one frame and a forever loop can run faster if there are no screen refreshes being done.

Powered by DjangoBB