Memory usage so high in my game to the point where it's causing lower end mobile devices to crash

Hello, my game is using roughly 1 GB of client memory. I have been doing some research, looking at other peoples posts, using AI and looking at the docs but Im just confused on why this is occuring.

When I look at the developer console and use the Memory feature it says that:

CoreMemory - 435MB
Place Memory - 285MB
Untracked Memory - 260MB
Place Script Memory - 1MB
CoreScriptMemory - 77MB

According to Chat GPT this means its not my scripts that are causing the problems, the game is relatively small and only takes up around 300 studs and uses very simple textures. We also have a UI that is using around 40+ images (This might be the issue), but I see other games that use plenty more images then we do. This is just very confusing and hard to understand so some help would be greatly appreciated!

1 Like

Where are you testing your memory usage? Studio memory usage is WAY higher than on a real server.

1 Like

I tested in game to avoid this problem.

Could it be any beta features / other bloat you’ve enabled by accident?

Im not sure, which features should I look out for that may consume memory?

I’m unsure, don’t usually get memory problems like this.

I can’t help, but a few popular games that I play take 4 GB of memory :skull:
So maybe this is normal?

You can test if it’s the UI’s fault by deleting it and running the game without it.
If the memory usage remains high, it means it’s not the UI’s fault.
But if the memory usage significantly drops, then try to change your UI.
If the 40 images are all right next to each other, you can combine them in an image editor and upload as one image.

1 Like

Alright I will try this now, but I have noticed other games with high memory but then maybe they just optimise their games for mobile players.

Removing the GUI did not make much difference at all, the memory stayed almost the same.

Are you using streamingenabled?

I stole this from a different topic you were an OP of. You can use Luau heap to see what’s taking up the most memory.

1 Like

Even though it’s a small map, it could still make a difference.
Especially on lower end devices.

Yes Streaming enabled is enabled, my game size is not very big though as it’s literally just a ring.

Yes, this never came to a conclusion as I have attempted using LUA heap but it does not indicate that there are any scripts using an absurd amount of memory.

Maybe try this:What client memory usage should I shoot for and how to reduce it? - #8 by buildthomas

1 Like