Discuss Scratch

Mjake36
Scratcher
22 posts

Run Script Without screen refresh lagging out

~~~Issue~~~

i'm trying to make a project with my blocks
but when i ticked “Run Without screen refresh”,
it started lagging really hard.
if anyone can fix this; pls tell me.
edit: stopped using my blocks so closed


P.S: My browser / operating system: Windows NT 10.0, Chrome 103.0.5060.114, No Flash version detected

Last edited by Mjake36 (July 17, 2022 20:24:34)

RL1123
Scratcher
1000+ posts

Run Script Without screen refresh lagging out

Can you send the project link? We need more context than that to figure out why it's not working.
Mjake36
Scratcher
22 posts

Run Script Without screen refresh lagging out

RL1123 wrote:

Can you send the project link? We need more context than that to figure out why it's not working.
aw man it was private ah well ill share it
edit: gone bc i stopped using the blok

Last edited by Mjake36 (July 17, 2022 20:23:46)

portalpower
Scratcher
1000+ posts

Run Script Without screen refresh lagging out

If you have wait blocks or loops that don't end, then it lags. Watch out for these blocks when using that feature:
forever //never use

end

wait () secs//never use

repeat until <>//use with cation, if it doesn't end it creates lag

end

wait until <>//use with cation, if it doesn't end it creates lag

repeat ()//try to avoid looping over 500 times

end
So basically, if the custom block runs for more than a fraction of a second, it lags. That includes if something like a repeat until never ends up ending.

I would recommend only using that feature for doing things instantly, like doing calculations and creating clones.
RL1123
Scratcher
1000+ posts

Run Script Without screen refresh lagging out

I don't see anything lagging? Which block has the issue?
Here's what I have on my screen:


It's the same thing with the block, but it doesn't seem like you need to use it at all. It works just fine without “run without screen refresh” on.
Mjake36
Scratcher
22 posts

Run Script Without screen refresh lagging out

RL1123 wrote:

I don't see anything lagging? Which block has the issue?
Here's what I have on my screen:


It's the same thing with the block, but it doesn't seem like you need to use it at all. It works just fine without “run without screen refresh” on.
you didnt check inside; i already stopped using the my block. im gonna close this topic soon.

Powered by DjangoBB