Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Scratch running too slow at intervals
- davidvaz1
-
Scratcher
100+ posts
Scratch running too slow at intervals
Hello Scratchers. Suddenly, when I was testing out a new project, Scratch seemed to run ten times slower. Why is this so?
- Chiroyce
-
Scratcher
1000+ posts
Scratch running too slow at intervals
Hello Scratcher. This is 99% most likely due to your code. It would help us understand what the problem is if you told what project had this problem. Give a link to it. Even if it's unshared. Thanks.
- ideapad-320
-
Scratcher
1000+ posts
Scratch running too slow at intervals
Are you running this project with a school/work sign in? Are there any force-installed extensions?
What is your computer's specs? What browser do you use?(press the world icon between scratchblocks and emojies)
What is your computer's specs? What browser do you use?(press the world icon between scratchblocks and emojies)
- davidvaz1
-
Scratcher
100+ posts
Scratch running too slow at intervals
Hello Scratcher. This is 99% most likely due to your code. It would help us understand what the problem is if you told what project had this problem. Give a link to it. Even if it's unshared. Thanks.I am doing part 2 of @Griffpatch's Lemonoid Invansion game
While testing this happened
- Chiroyce
-
Scratcher
1000+ posts
Scratch running too slow at intervals
Share a link to the project then - you would've made a mistake while following the tutorial.
- davidvaz1
-
Scratcher
100+ posts
Scratch running too slow at intervals
Share a link to the project then - you would've made a mistake while following the tutorial.K. The link is here: https://scratch.mit.edu/projects/595720201/
- Chiroyce
-
Scratcher
1000+ posts
Scratch running too slow at intervals
Yep it's your mistake. In the “Enemy” sprite, right click on this custom block and press “edit”

then toggle “Run without screen refresh” and press “OK”. It shouldn't lag anymore.



then toggle “Run without screen refresh” and press “OK”. It shouldn't lag anymore.


- davidvaz1
-
Scratcher
100+ posts
Scratch running too slow at intervals
bump to see if this is fixed.not fixed….cause the
define Starting Orders :: pink
is already run without scrn refresh
Last edited by davidvaz1 (Nov. 24, 2021 05:37:14)
- god286
-
Scratcher
1000+ posts
Scratch running too slow at intervals

Yes, it works for me. Just go to the Enemy sprite, and in the “Starting Orders” custom block DESELECT the “Run without Screen refresh” toggle, like this:

Sorry I'm using dark mode but the instructions are the same
The reason why is because “Run without screen refresh” tells Scratch to stop showing new things on the screen until the script is done. Simple, right? But since your custom block has a forever loop in it, Scratch is just endlessly waiting but since it is a Forever loop your custom block will never end which means that the display won't change which makes it laggy.
Last edited by god286 (Nov. 24, 2021 06:01:56)
- davidvaz1
-
Scratcher
100+ posts
Scratch running too slow at intervals
ohh very interesting! will try
Yes, it works for me. Just go to the Enemy sprite, and in the “Starting Orders” custom block DESELECT the “Run without Screen refresh” toggle, like this:
Sorry I'm using dark mode but the instructions are the same
The reason why is because “Run without screen refresh” tells Scratch to stop showing new things on the screen until the script is done. Simple, right? But since your custom block has a forever loop in it, Scratch is just endlessly waiting but since it is a Forever loop your custom block will never end which means that the display won't change which makes it laggy.
- davidvaz1
-
Scratcher
100+ posts
Scratch running too slow at intervals
it worked! thanks, everyone!
closing this forum post..bye!
closing this forum post..bye!
see you later!
when gf clicked :: #FFBF00
forever :: #FFA500
thanks, everyone! :: #008000
see you! :: #FF1493
wait (1) secs :: #FFA500
end
Last edited by davidvaz1 (Nov. 25, 2021 06:05:56)
- Discussion Forums
- » Bugs and Glitches
-
» Scratch running too slow at intervals



