so, I put music in my game and gave all users the ability to request any song from the catalogue they desire.
this is ROBLOX’s memory usage when I first join the game
and this is the memory usage after a bunch of people made song requests throughout me being in the game
and as expected that causes the game to run slower and in-game sounds to cut off, all due to a bunch of sounds being stagnant in the memory. they are no longer being played or used in any form.
Because Roblox runs on the assumption that if you use a resource you want it cached for future use too. That’s why you’re able to pre-load meshes, textures and sounds.
Random people requesting arbitrary sounds / music continually is pretty much the worst case for such an assumption unfortunately.
I’m pretty sure a command to clear the sound from the cache would cover the issue, something like "part.Sound:Clear() " Nice and simple, and allows easy control for the developer.
[quote] Can you really preload sounds?
I’ve tried it, and it has no effect on their loading. [/quote]
You can’t use :Preload() on sounds.
You CAN play them at 0 volume for a few seconds (for 2 minute songs that take a while to load all the way) and that effectively preloads them. But then you’re stuck being laggy for a few seconds each song (edit: while they “preload” 2 secs each)