Images on ScreenGui that is Destroyed Still Remain in Client Memory

:wave: Hey. I am attempting to dynamically load image textures when my prize shop is opened, then have these textures and the memory associated with them removed from client memory when the shop is destroyed.

Currently, I :Clone() the GUI from the ReplicatedStorage, load the Image.Texture using a NumberValue.Value, then :Destroy() the ScreenGui when the player is finished.

The expected behavior is for the image textures to be removed from the client memory when the GUI is destroyed thus helping me keep memory as low as possible in my game. However, these textures are still present in the client memory.

Is there something Iā€™m doing wrong? Is the expected behavior even possible? What do I need to do to remove these textures from the client memory?

If I recall correctly, all assets are cached, and once loaded in, will stay in the memory.

1 Like

That was my fear. Assuming that is accurate, a little disappointing that the engine runs in that way thus preventing dynamic loading.

1 Like