Discuss Scratch

IceCreamTub
Scratcher
1000+ posts

Project lags an ungodly amount

This is my code, both custom blocks run without screen refresh which seem to be the main culprit

NHCoder64
Scratcher
67 posts

Project lags an ungodly amount

The “repeat until” block and custom block with run without screen refresh isn’t a good mix.
IceCreamTub
Scratcher
1000+ posts

Project lags an ungodly amount

NHCoder64 wrote:

The “repeat until” block and custom block with run without screen refresh isn’t a good mix.
Well what do you suggest
I literally just copy pasted the “split to list arrow” code which worked absolutely fine but when i duplicated the code and changed some stuff for another block it lags
Catscratcher07
Scratcher
1000+ posts

Project lags an ungodly amount

do you need the custom block to be run without screen refresh
Oumuamua
Scratcher
1000+ posts

Project lags an ungodly amount

Perhaps you want to share the thing instead of a screenshot.
IceCreamTub
Scratcher
1000+ posts

Project lags an ungodly amount

Catscratcher07 wrote:

do you need the custom block to be run without screen refresh
Yes
groggs
Scratcher
100+ posts

Project lags an ungodly amount

IceCreamTub wrote:

This is my code, both custom blocks run without screen refresh which seem to be the main culprit
Screenshot-1.png
Screenshot-2.png
G'day!

It's better to share your project instead of screenshot, as Oumuamua said. Running block without screen refresh can cause some actual lag, you could also check your browser settings (In case you aren't using desktop app). try turning off some extensions as they can add many unneeded stuff to your editor. take a look at your computer performance, low-end computers may not be able to afford big projects.

You could also see if you're using much unneeded Variables or lists, or also clones if you have a big amount of.

If you didn't find that helpful, you can try some solutions on the Scratch-Wiki: https://en.scratch-wiki.info/wiki/Lag


IceCreamTub
Scratcher
1000+ posts

Project lags an ungodly amount

Oumuamua wrote:

Perhaps you want to share the thing instead of a screenshot.
Hi sorry for the late reply but here https://scratch.mit.edu/projects/781789594/
IceCreamTub
Scratcher
1000+ posts

Project lags an ungodly amount

Bumppp
IceCreamTub
Scratcher
1000+ posts

Project lags an ungodly amount

Ist been a while what happen
topazdragonscale
Scratcher
25 posts

Project lags an ungodly amount

The only thing I know is that Turbowarp doesn't help in this situation, I was creating a game with a similar format. I'm not really sure how figure it out, but my alt account does has this project so maybe you peeps can take a look, idk if it will help but-

https://scratch.mit.edu/projects/672695587/
IceCreamTub
Scratcher
1000+ posts

Project lags an ungodly amount

topazdragonscale wrote:

The only thing I know is that Turbowarp doesn't help in this situation, I was creating a game with a similar format. I'm not really sure how figure it out, but my alt account does has this project so maybe you peeps can take a look, idk if it will help but-

https://scratch.mit.edu/projects/672695587/
I check my message box hoping for a solution and i see this
I'm sorry if that seemed mean or anything I- I'm going to explode
IceCreamTub
Scratcher
1000+ posts

Project lags an ungodly amount

Ok, i found a solution, i just missplaced some variables and that was causing the problem closing topic

Powered by DjangoBB