Discuss Scratch

Xpt4pw
Scratcher
23 posts

List lag?

Lists seem to cause significant lag the longer they are, and the longer each of the strings are. Does this happen to anybody else, and is there a way to fix it?
mitdk
Scratcher
1000+ posts

List lag?

No, and i use lists pretty frequently, so what are you using the list for?
Xpt4pw
Scratcher
23 posts

List lag?

I was translating some of my JavaScript code into Scratch to make a makeshift 2D array, which I then used to make infinite procedural terrain generation. After a certain point, it started lagging.
deck26
Scratcher
1000+ posts

List lag?

Are you showing the list as you change it? Doing so can slow things down a lot as Scratch likes to show the most recently changed item.
Xpt4pw
Scratcher
23 posts

List lag?

Nope.
Oumuamua
Scratcher
1000+ posts

List lag?

Hi, you should show helpers your work in progress` project

Last edited by Oumuamua (June 25, 2021 18:37:28)

Xpt4pw
Scratcher
23 posts

List lag?

Good idea. Here it is: https://turbowarp.org/548292274
Xpt4pw
Scratcher
23 posts

List lag?

(Use arrow keys to scroll)
MasterofTheBrick
Scratcher
1000+ posts

List lag?

I've never heard of a list causing lag in a project before, and I certainly didn't see any lag in your project. If the problem still persists, make sure that there aren't custom blocks running w/o screen refresh unnecessarily.
Xpt4pw
Scratcher
23 posts

List lag?

It works fine in TurboWarp. Only in the Scratch player does it lag once you've gone pretty far..
bluezebra289
Scratcher
11 posts

List lag?

I think it’s the scratch project list storage overflowing. Have you tried splitting up the boxes in the list and putting one half below the original box? Because the list “box” limit is 200 000 and the length of the box limit…. I don’t remember but I think it’s unlimited and just gets laggy after a while.

And yes, I have experienced it before.

Powered by DjangoBB