Discuss Scratch

qyuny
Scratcher
32 posts

Scratch Editor Lag

Sometimes when my project has too much codes, the whole editor starts to lag and when I try to load the project in the scratch app, the app crashes… so i wanted to know if any of you have any solutions to lessen the lag in the editor (When blocks goes beyond 4500 blocks for me it gets very laggy and hard to code)
-Valtren-
Scratcher
1000+ posts

Scratch Editor Lag

one thing I do is I make a blank sprite and switch to that whenever I need to run a project.
VioletCalico
Scratcher
1000+ posts

Scratch Editor Lag

What device are you on?

Usually older devices or devices of less quality do not work as well for Scratch. If you are on a phone, it may also not work as well. Try either getting a better device or a better WiFi connection. You could also close up other apps and tabs to try and make it run correctly.
qyuny
Scratcher
32 posts

Scratch Editor Lag

-Valtren- wrote:

one thing I do is I make a blank sprite and switch to that whenever I need to run a project.
Well the things that is bothering me is not the lag of the game its rather the lag when I want to drag blocks
qyuny
Scratcher
32 posts

Scratch Editor Lag

VioletCalico wrote:

What device are you on?

Usually older devices or devices of less quality do not work as well for Scratch. If you are on a phone, it may also not work as well. Try either getting a better device or a better WiFi connection. You could also close up other apps and tabs to try and make it run correctly.
I am coding on an acer PC
Knightbot63
Scratcher
1000+ posts

Scratch Editor Lag

I usually just make an empty sprite at the beginning so that way it doesn't lag when you open it.
qyuny
Scratcher
32 posts

Scratch Editor Lag

Knightbot63 wrote:

I usually just make an empty sprite at the beginning so that way it doesn't lag when you open it.
I actually do not have any problems opening my project its just when I drag blocks around it lags so much…
programmer204
Scratcher
500+ posts

Scratch Editor Lag

qyuny wrote:

Sometimes when my project has too much codes, the whole editor starts to lag and when I try to load the project in the scratch app, the app crashes… so i wanted to know if any of you have any solutions to lessen the lag in the editor (When blocks goes beyond 4500 blocks for me it gets very laggy and hard to code)
This is most likely because of all of the visuals located in the project. Eventually, every computer cannot sustain a certain number of lines of code.
qyuny
Scratcher
32 posts

Scratch Editor Lag

So is there no method to reduce lag when I am coding? Really wanted to continue in my project (and also my favourite currently)
awesome-llama
Scratcher
1000+ posts

Scratch Editor Lag

I try to distribute scripts across multiple sprites. I often create sprites purely to run certain scripts, for example saving/loading or rendering text. Communication between sprites is done through variables and lists and scripts are triggered with broadcasts (usually from the main loop).

unreleased project with 10k blocks as an example:

Last edited by awesome-llama (Oct. 21, 2022 05:36:51)

Powered by DjangoBB