Discuss Scratch
- Discussion Forums
- » Suggestions
- » Improve Scratch's memory management.
- OnTheCode99
-
Scratcher
500+ posts
Improve Scratch's memory management.
Support. I can’t load my platformers on my iPad, and one time, I opened a game in edge, clicked see inside, and it froze my computer for some time. The limit scratch uses is just scary and unnecessary.
- hill_walker123
-
Scratcher
100+ posts
Improve Scratch's memory management.
My browser / operating system: ChromeOS 15183.69.0, Chrome 108.0.0.0, No Flash version detected
my school computer would die (Chromebook)
so support
my school computer would die (Chromebook)
so support
Last edited by hill_walker123 (Jan. 12, 2023 19:24:01)
- sonic__fan
-
Scratcher
1000+ posts
Improve Scratch's memory management.
Support, Scratch projects take at least 30 seconds all the way up to 2 minutes to load on my computer with about 8GB of RAM (if that number is incorrect, I'll update this post later).
- ThatOneCoder435
-
Scratcher
100+ posts
Improve Scratch's memory management.
This shouldn't even be a suggestion. Weaker/older platforms shouldn't have to crash completely by only loading a single animation (I personally suffer from this as I have a trashy Chromebook that struggles to run basic projects).
- glomeromycota
-
Scratcher
100+ posts
Improve Scratch's memory management.
as someone with 8gb of ram i support
- Scratchdev57
-
Scratcher
100+ posts
Improve Scratch's memory management.
Support.
This would help pretty, much every Scratcher (probably not new scratchers though).
My school's computer would crash on some of my projects too, and its a HP one xD lol
This would help pretty, much every Scratcher (probably not new scratchers though).
My browser / operating system: ChromeOS 15183.69.0, Chrome 108.0.0.0, No Flash version detected
my school computer would die (Chromebook)
so support
My school's computer would crash on some of my projects too, and its a HP one xD lol
- SonicFanX123_321
-
Scratcher
1000+ posts
Improve Scratch's memory management.
I think scratch should definitely unload assets that aren't shown, and have loaded into ram only the ones that are.
i.e. costume3 shown? well load only it into memory. don't load any other costume that the sprite uses until it switches to another costume, then load only that one.
is sound2 being played? well load only it into memory. don't load any other sound unless that sound plays.
this would also greatly speed up loading times for projects.
i.e. costume3 shown? well load only it into memory. don't load any other costume that the sprite uses until it switches to another costume, then load only that one.
is sound2 being played? well load only it into memory. don't load any other sound unless that sound plays.
this would also greatly speed up loading times for projects.
- Vadik1
-
Scratcher
500+ posts
Improve Scratch's memory management.
I think scratch should definitely unload assets that aren't shown, and have loaded into ram only the ones that are.That wouldn't work. Requesting from the internet or reading cached assets from hard drive/ssd takes time. Then decoding and prepearing data from file formats into a usable state also takes time. The first step can be done asyncronosly, meaning that the project can continue running while the loading happens. But how can it continue running if the assets it needs are still missing? Should it rather randomly pause itself for over a second to wait for everything it currently needs to load or continue running without them and make you fall through the floor in a platformer which haven't loaded in yet? Both options are bad. The second step will introduce an unavoidable few millisecond stutter, similar to the one already caused by vector costumes, but worse.
i.e. costume3 shown? well load only it into memory. don't load any other costume that the sprite uses until it switches to another costume, then load only that one.
is sound2 being played? well load only it into memory. don't load any other sound unless that sound plays.
this would also greatly speed up loading times for projects.
The reason why projects currently load so fast is becuse scratch requests and downloads many assets at the same time instead of doing it one by one. The time it takes between requesting and getting full response for one asset is higher than is seems.
- eric99343
-
Scratcher
100+ posts
Improve Scratch's memory management.
Looks like this is still an issue. Bump.
- scratchcode1_2_3
-
Scratcher
1000+ posts
Improve Scratch's memory management.
(#4)jokes on you i have 64which is nearly twice as much as the average amount of memory Scratchers have (8)jokes on you i have 48 GB of RAM
—-
I support as this is literally ridiculous. 14 GB??? Something is wrong with Scratch, and it seems like this would literally crash my iPad.
but seriously what? how does this happen
- starlightsparker
-
Scratcher
1000+ posts
Improve Scratch's memory management.
Just a question… is the RAM a project uses taken permanently, or is it automatically deleted after a certain amount of time?
- Jonathan50
-
Scratcher
1000+ posts
Improve Scratch's memory management.
Just a question… is the RAM a project uses taken permanently, or is it automatically deleted after a certain amount of time?If I understood your question, RAM is only taken up while the data there is needed, then it gets freed up.
- blubby4
-
Scratcher
100+ posts
Improve Scratch's memory management.
Just a question… is the RAM a project uses taken permanently, or is it automatically deleted after a certain amount of time?It's in use from when you open a project, up until you close the tab.
- Discussion Forums
- » Suggestions
-
» Improve Scratch's memory management.














