Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Why is Scratch so slow?
- Syix
-
Scratcher
100+ posts
Why is Scratch so slow?
Scratch normally gives 300MB of ram when I'm idle on the Scratch homescreen. Going onto a Scratch project; even with no scripts/code gives 1,000+ MB of ram. Anyway to lower this down without any part replacements? There isn't any way to open up this Lenovo All-In-One PC.
Just in case, my specs: Windows NT 10.0, Microsoft Edge 92.0.4515.131, 4GB of ram, and Intel(R) Pentium(R) CPU G3250T @ 2.80GHz.
Just in case, my specs: Windows NT 10.0, Microsoft Edge 92.0.4515.131, 4GB of ram, and Intel(R) Pentium(R) CPU G3250T @ 2.80GHz.
Last edited by Syix (Aug. 14, 2021 17:33:35)
- Yeetoburro1
-
Scratcher
1000+ posts
Why is Scratch so slow?
The scratch code interpreter takes a lot of ram, so I'm not sure if it's possible to lower this down, however you could try that fancy-dancy gaming browser that lets you put a limit onto how much ram it uses.
- Syix
-
Scratcher
100+ posts
Why is Scratch so slow?
The scratch code interpreter takes a lot of ram, so I'm not sure if it's possible to lower this down, however you could try that fancy-dancy gaming browser that lets you put a limit onto how much ram it uses.Opera GX?
- Chiroyce
-
Scratcher
1000+ posts
Why is Scratch so slow?
TL;DR— https://scratch.mit.edu/discuss/topic/522770/
A single tab trying to load a Scratch project used up 14GB of RAM, so Scratch's memory management has to be improved.
______
Since a long time, loading scratch projects that have a lot of assets are very heave in terms of memory, here is an example –
I tried loading a project on my 2.5 month old laptop (MacBook Air, M1). It has 16 GIGABYTES of RAM, which is nearly twice as much as the average amount of memory Scratchers have (8), and some may even be using 4GB of RAM, or mobile devices with even 2!
https://scratch.mit.edu/projects/46130596/ is a project, which, I'm not lying, when I tried loading it, it used up 14 GIGABYTES of RAM, which is INSANE for a Scratch project, I know that it may have a lot of assets, but 14 is so much that my Mac instantly told me that it was running out of memory, and closing this tab may improve responsiveness.
It also had to utilize the SSD for memory, about 3GB of what had to be written to memory, was written to the SSD, and a lot of Scratchers still use HDDs (hard disks), which means their devices would become insanely slow trying to use 3GB of HDD as memory. I restarted my laptop, fresh and clean with no apps open, I open up my default browser (Safari), and I try loading this project, the same thing happens! 14 GIGABYTES of RAM was being used up by this individual tab, excluding the OSs memory!
16 GIGABYTES of RAM isn't what the average Scratcher has, as I said earlier, some may even be using 2 or 4. So can the devs, somehow improve memory management of Scratch projects? A Scratch project using up 14GB of RAM with no other programs/apps/tabs/browsers open (and without looking at how much the OS is using), is not a small thing, this has to be fixed. A lot of projects like these exist, instead of doing something to the projects, somehow can you try to improve how the scratch-gui / vm handles these big projects?
Now I know, you must be thinking,
“Chiroyce, there might be many assets in that project, that's the reason, we can't do anything about it!”,
well yes, but we have to do something, like compress assets or something. Please address this issue ASAP.The thing you haven't mentiond is how forkphorus has a really good memory usage. Using forkphorus I'm able to load and view that project without any issues on a phone which when no apps are running on average has 2 gb of free ram.Wow! It literally only used about 700MB of RAM on forkphrous, thanks for letting me know! TurboWarp is still the same though, does anyone know why?
It's be because, regular scratch projects use https://assets.scratch.mit.edu for getting the assets, but forkphrous used https://cdn.assets.scratch.mit.edu which was actually uses less memory! Weird, isn't it?
Last edited by Chiroyce (Aug. 16, 2021 16:16:33)
- 9cjames1
-
Scratcher
1000+ posts
Why is Scratch so slow?
Not allowed to mention that.The scratch code interpreter takes a lot of ram, so I'm not sure if it's possible to lower this down, however you could try that fancy-dancy gaming browser that lets you put a limit onto how much ram it uses.Opera GX?
- Syix
-
Scratcher
100+ posts
Why is Scratch so slow?
Why not? It's not an extension lol, just a browser…
- Chiroyce
-
Scratcher
1000+ posts
Why is Scratch so slow?
Not allowed to mention that.Opera GX is a browser like Chrome/Firefox/Safari so it's 100% OK to mention it
- Discussion Forums
- » Questions about Scratch
-
» Why is Scratch so slow?




