RAM #2412
penta-quark-neutro
started this conversation in
General
RAM
#2412
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently in TurboWarp, loading and unloading resources like images and sound is extremely inefficient in terms of RAM. If you load a sound and then delete it, it remains in RAM, and the same goes for images.
I've worked on these problems, and fixing the sound issue is very easy, but dealing with images is much more complex.

The native method
renderer.destroySkin()doesn't effectively delete images, so I created an alternative (the one shown in the image, just the long code). While it's better than the native method in my experiments, for some reason there's still a memory leak; some data remains that I can't seem to delete.If anyone has any information, it would be a great help. Also, if you know of any other things that cause performance or optimization problems, please let me know so I can try to solve them.
This text may contain errors; it was translated using Google.
Beta Was this translation helpful? Give feedback.
All reactions