Unreasonbly high RAM usage/poor performance on roblox mobile client

This one will need some detailed explanation:
I’m running a Redmi Note 10 5G, it’s relatively budget but also still powerful enough for everyday tasks
On average, about 1.2-1.6 GB of RAM are available when idling (out of 4GB physical RAM), with RAM expansion active (don’t know about it’s utilization however as it’s not listed, but it definitely frees up a little when running roblox in the foreground)
So I randomly decided to check available RAM before and after opening the client, just staying on the homepage and doing absolutely nothing is consuming about half of the available RAM, roughly 700MB worth
Roblox Homepage:


Available RAM prior to opening roblox:

Meanwhile, when opening the homepage for chrome and YouTube, RAM usage is about half at most
Chrome homepage (picture for reference, 1.1GB were listed as available before opening):

Client performance is relatively sluggish too with poor efficiency, as roblox chugs relatively easily (I also witnessed 700MB of RAM usage on the starter place through the performance stats), and sometimes it just crashes abruptly when there should have been some overhead available (CPU/GPU frametimes also climb relatively quickly, with some nasty lagspikes in certain places)

Now yes, poor performance would be entirely reasonable on massive places with tons of graphical detail and CPU-related processing, but lagspikes are happening on smaller places that don’t process nearly as much, which is why I want roblox engineers to intensively investigate any performance-related issues regarding their client, especially on mobile

Expected behavior

On the homepage, I expect RAM usage to not exceed 250-400MB when doing absolutely nothing but sitting there
Ingame, I expect lagspikes to be minimal, CPU/GPU frametimes to not reach/exceed 100ms unless tons of stuff is rapidly being rendered and processed (or a different process is significantly taking up the CPU/GPU), for RAM usage to also not exceed 400MB (this is based on the starter place example, but it should also be relatively low for smaller places that don’t process as much), and for roblox to properly handle low RAM situations as well as any other instances where system ressources are low (which they hyped up intensively at RDC24, so the expectations in this post regarding client performance should be at least somewhat reasonable following their words of “allowing 100 player battle royales to be experienced smoothly on devices with only 2GB RAM”)

Additional information:
First 2 images are to prove that the starter place is taking up 700MB+, and that frametime spikes are even happening on the place that every user starts with (funnily enough, the RAM usage actually went down after a screenshot, which is why i took another one only showing 600MB)
Last 2 images show the CoreMemory and PlaceMemory, the PlaceMemory is at a reasonable enough 200MB, while the CoreMemory is 2x the size of PlaceMemory at 400MB, with whatever other clientside corescripts adding up to 700MB, if not more

Roblox got terrible optimization and no one can convince me otherwise.

You can also notice on the Windows and Mac clients that Roblox would immediately start eating available CPU, GPU and RAM resources the moment you boot it up and stay on the home page, without even entering a game yet. My laptop fans go loud the moment Roblox is booted up. I think the same happens on Mobile and other platforms excluding being able to figure it out.

There’s also an issue I reported a while ago about Script_SchedulerHostConfig.default spiking heavily when interacting with the Universal app and about more than usual frame time being used by scrolling scripts.


I was playing Blast Zone, a game where stuff actually happens, and i noticed that the RAM usage is nearly identical to the starter place, but with extra frametime spikes
What actually determines whether or not the CoreMemory/PlaceMemory goes up or down, and what’s the correlation to RAM usage and frametime spikes, if there is one?

I also saw something wierd in the microprofiler: the RAM free statistic doesn’t seem to respect RAM expansion, does roblox just give up when it sees virtual memory, is MIUI a jank factory too or is something else the problem?

Some more findings, especially when following device restart;

Roblox seems to be RAM-locked, especially in those earlier images (unfortunately, it doesn’t convey that to you very well), and there does seem to be a correlation between RAM and frametimes, when I was playing bee swarm simulator with 700MB of RAM going to roblox, lagspikes were frequent
However, when 900-1200MB went to roblox (and not more despite ~500MB being available for roblox before RAM-locking really starts to happen), those lagspikes seemed to occur less

Despite that, roblox is still nowhere close to achieving a smooth 100 player battle royale on only 2GB of RAM, this still doesn’t explain why it’s seemingly ignoring the virtual RAM and instead opting to bring the main RAM all the way down to 400MB, and I still feel like RAM usage could be cut in certain cases

Bump. I have always had this bug and it makes roblox less enjoyable.

Hello!

It sounds like there are two distinct issues here: memory usage and jank/performance. I’ll address them separately.

Memory usage: We have been continually researching how to reduce the Roblox client memory footprint and push the lower bounds of resource requirements for running Roblox experiences - this is essentially a never-ending project where we identify optimization opportunities, fix them, and move on to others. However, I also need to clear up some misconceptions here: memory exists to be used. Frequently, it’s possible to make trade-offs that involve using more memory in exchange for improved performance. As long as this doesn’t result in memory usage so high that it disrupts other parts of the system or results in an out-of-memory (OOM) crash, this tradeoff is worthwhile as it makes the app experience better.

Jank/performance: I agree; simple experiences should not be bogging down the Roblox client. Scrolling the home page should be smooth and require fairly low resources. To help us investigate these issues, please attach microprofiler dumps showing the problem (either frame jank - individual frames taking an excessive amount of time - or microprofiler captures from the home screen when scrolling is not smooth or the app is using an excessive amount of CPU).

Thanks!

The lag spikes are almost exclusively coming from the CoreScript Script_SchedulerHostConfig.default. I’ve made a bug report about this issue already:-

I appreciate the reply and getting any staff acknowledgement about this long-running issue at all, but I’m not exactly sure if mobile can access the microprofiler in the homepage, you can definitely connect to it’s port or whatever and somewhat access it in places with edit access, but I’m not sure if the mobile homepage even has it running, and I’m not sure if posting dumps from a med-spec PC would still count (even if that might be significantly more convenient)

Regarding RAM usage, it’s definitely meant to be used, and just because it says something like 1.2GB in the starter place doesn’t mean it’s using all of it, but allocated and actually used RAM should be easily visible though (and I’m not sure if RAM expansion is properly registered on mobile)

Regarding performance, a large issue seems to stem in the corescripts, stuff like TextChatService, the CoreGui and other stuff baked into the client with no user control (CoreGui and TextChatService belong to corescripts, right?), for the TextChatService and CoreGui (those should be in react if I’m correct), it might almost be worthwhile to go back to the previous language used, unless there’s just some extremely severe coding bug lurking around causing all of it

I’m not exactly sure if mobile can access the microprofiler in the homepage

It should be accessible on the home page (or in experiences without edit access). This allows users to report bugs even if they don’t have developer access to a place. :slightly_smiling_face:

You may need to enable it via the in-experience menu and then leave the experience / navigate back to the home page, though.


I don’t think this is intended and there’s definitely a reason why the microprofiler is kind of hidden on mobile :upside_down_face:
Yeah I’ll definitely just use a PC client instead for dumping it

There’s a fair bit that you can do to optimise your game. Actors, Threading, Corutines, utilising the task functions (I suppose this fits with threading too), using run service and many other things.

i noticed if you preload alot of assets using preload async it will like increase ram usage

@Wheatly199 does this issue still repro or is it still relevant for you?

We are closing this issue as we have not had any response on if this issue is still relevant. If this issue is still occurring, feel free to open a new issue. Regarding the corescripts performance side of things, we have detailed some of the improvements we have made this year here and here.

reopen it, i have this issue too still