Discuss Scratch

sccar3
Scratcher
100+ posts

Run without screen refresh

When you make a custom block, one of the advanced options is “Run without screen refresh”. What does that do?
nXIII
Scratcher
1000+ posts

Run without screen refresh

Normally, after each iteration of a control structure (like <forever> or <repeat ()>) Scratch stops executing the current script and goes on to the next one (this is called yielding). When it has finished executing one iteration of the rest of the scripts, it refreshes the screen (i.e. redraws the sprites in their new positions with their new attributes). It then repeats this process until it finishes executing the control structure.

“Run without screen refresh” causes a custom block to run all at once and not refresh the screen until it has finished executing. This is useful if you want to prevent the flickering that often results when, e.g., you loop through a list and draw each element.

Last edited by nXIII (Dec. 14, 2012 21:12:55)

Wes64
Scratcher
500+ posts

Run without screen refresh

its like running in turbo mode

wow outposted by 4 seconds

Last edited by Wes64 (Dec. 14, 2012 21:12:59)

nXIII
Scratcher
1000+ posts

Run without screen refresh

Wes64
its like running in turbo mode
Not quite. Turbo mode does as many cycles as possible in a fixed amount of time, then refreshes the screen. Run without screen refresh does enough cycles to exit the block, then refreshes the screen.

Last edited by nXIII (Dec. 14, 2012 21:14:50)

sccar3
Scratcher
100+ posts

Run without screen refresh

nXIII
Normally, after each iteration of a control structure (like <forever> or <repeat ()>) Scratch stops executing the current script and goes on to the next one (this is called yielding). When it has finished executing one iteration of the rest of the scripts, it refreshes the screen (i.e. redraws the sprites in their new positions with their new attributes). It then repeats this process until it finishes executing the control structure.“Run without screen refresh” causes a custom block to run all at once and not refresh the screen until it has finished executing. This is useful if you want to prevent the flickering that often results when, e.g., you loop through a list and draw each element.
Thanks, that helps.
derpmeup
Scratcher
1000+ posts

Run without screen refresh

Mega bump. This was the oldest topic in the whole section…
derpmeup
Scratcher
1000+ posts

Run without screen refresh

sccar3 wrote:

When you make a custom block, one of the advanced options is “Run without screen refresh”. What does that do?

Well, anyways, the run without screen refresh is a feature that you can put on your custom blocks. Without it on, the screen will refresh itself before running the block again. With it on, the screen won't refresh and it will run the custom block automatically again, so it will make it faster. I always turn that option on when I make custom blocks. Especially if you are doing a pen rendered project, everything should have run without screen refresh. I hope I helped!
Sonickyle
Scratcher
1000+ posts

Run without screen refresh

derpmeup wrote:

Mega bump. This was the oldest topic in the whole section…
Please don't necrobump topics that seem no longer relevant or answered.
jontmy00
Scratcher
500+ posts

Run without screen refresh

Sonickyle wrote:

derpmeup wrote:

Mega bump. This was the oldest topic in the whole section…
Please don't necrobump topics that seem no longer relevant or answered.
It is still relevant, however. Some Scratchers do not know the difference between Turbo Mode and ‘run without screen refresh’.
Penton1753
Scratcher
19 posts

Run without screen refresh

sccar3 wrote:

When you make a custom block, one of the advanced options is “Run without screen refresh”. What does that do?
What it does is does the block without refreshing the screen. The screen is going to run this script without the refreshing of the screen if the setting is enabled.
define move
move (pick random (1) to (10)) steps
12424
Scratcher
65 posts

Run without screen refresh

when you click the stop button It's still runs if you tick it
Pot-of-Gold
Scratcher
1000+ posts

Run without screen refresh

12424 wrote:

when you click the stop button It's still runs if you tick it
Please don't necropost

Powered by DjangoBB