At the top, you can see the performance statistics. Ping, CPU usage, and GPU usage are extremely slow. On the contrary, memory usage is at over 1K MB (when the target is 200MB or under). This is causing huge problems for users who have a low amount of RAM, most commonly those on mobile devices or Macbooks.
Here is what I know:
It cannot possibly be the map or any graphics, considering that A.) GPU blueprint is so, so low, and B.) I have spent the time to completely optimize the entire map and UI.
It cannot be from loops or other timed events, as the CPU usage is also fairly low, maybe everage. It could be better but is not the problem.
It’s likely to be a memory leak, albeit I cannot tell how that could possibly happen.
If anybody has any ideas, that would super helpful!
You can find the game with the issue here.
Do you have a source for this? I’ve unfortunately had the “pleasure” to work on games that were poorly optimized and had a lot of repetitive loops, and while they did affect performance substantially, they never caused a spike in RAM usage. I’m pretty sure this would just affect CPU usage and not so much the GPU.
Is your codebase modular or are you just using a bunch of scripts? This doesn’t really mean anything but I’m wondering if you’re able to create a new version of the game with certain scripts disabled to see what could be causing memory spikes.
1GB doesn’t sound bad at all and sounds like Roblox is making use of memory for you.
A shot from one of my places.
Similarly to how Windows 10 will make use of as much RAM as it can, Roblox will most likely try to do the same to deliver the best experience possible.
Roblox will not use 1GB of RAM on a mobile device. Again, 1GB is not terrible because it is for the device you are currently using. Once again, just like Windows 10 - Roblox will properly adjust to the available RAM to provide the best experience. You do not need to worry about these trivial things until it’s an actual problem. Which, so far, it is not.
For me, RAM use after maybe 30 minutes playing, its alright. 600 - 700 MBs. Which is fine. And completely normal, another thing, the more ram you have the more your programs will start to use, if you have like 8 gb of ram, and you open chrome, it’ll use alot more.
Based on what? I’m confused why you keep saying that. A new baseplate has around 800MB-1GB because that is normal for your machine. So no “albeit the RAM usage” is not high. Maybe in 2010…?
One, Roblox’s 200MB metric is seen in the performance stats. If you click “Memory” and look to the right, you will see a dashed line representing that target.
Two, read the original post. A majority of mobile players and macbook users have a really hard time playing the game, some logs reporting an FPS as low as 1-2 FPS. This has been causing a significant decrease in players as the RAM usage has been getting worse over time (for example, playercount is about 20-50 now, versus the 3K months ago, which comprised mostly of mobile players).
I am not looking to compare my RAM usage to others. I made this post to ask what potential causes are, and what could be done to reduce it.
Here are some example reports that back my claim that it’s an issue:
In fact, I could never get all those reports.
Also, note the impact on the game by seeing the average playtime for mobile users: