Hi, for my current project I’ve been working on a system for loading + unloading sections of the map according to where the player is currently exploring. So if they enter a gateway from area A to area B, then A will unload and B will load.
Currently this works by storing these areas in ServerStorage and sending them directly to the client when required. This is to prevent too high memory usage on the client. The main issue I’ve found with this method is that when unloading the old areas the client’s memory usage doesn’t necessarily go down straight away which can lead to the client’s memory going over 1000MB. I believe this is down to Roblox’s garbage collection happening at random intervals.
I’m worried that this is harming the performance in my game. Will high memory affect performance even if it’s waiting to be garbage collected? Are there any tricks for decreasing memory faster after unloading areas? Please let me know if you have any ideas!