I want to check how much memory a device has/how much the client can use in order to enable/disable certain aspects of my game. (For better performance on lower-end devices)
I’ve found Stats:GetTotalMemoryUsageMb(), however that doesn’t help me in my case, I am looking for something which could tell me the maximum amount of memory a client could use.
I don’t think there is a way to grab that value using ROBLOX’s API directly. It’s going to heavily vary based on operating system, hardware, allocated RAM, etc.
You could use Stats:GetTotalMemoryUsageMb() to automatically heighten/reduce memory-intensive elements of the game, though. Since ROBLOX doesn’t give you insight on which device a player is using (minus some hacky UIS stuff that’s not even 100% reliable), you’ll just have to do some guesswork if you’re going to use this strategy.
Might as well be safe and optimize your game for memory usage, right? lol