Memory usage at 1k with a single script

Recently i have been making i game, and while checking the F9 i realised that the game was 1.2k memory usage. This is already scary at first, but whats even weirder is that i have a script that runs to generate the map, and a control script that controls the player character. Is this a bug or am i doing something incredibly wrong?

While also looking a bit more, i found that i have a lot of ‘untracked memory’. I’m not even sure what that is, but maybe i have a memory leak or something?

I think it’s also important to mention that in studio the game is really laggy. Thankfully, in the roblox player, it runs very smoothly, but with a lot of memory consumption.

Easiest way to test this would be to just try a blank baseplate with no scripts. The normal memory usage increased quite a lot somewhat recently, because the app is 64 bit now.

1 Like

Do you mean 1.2 GB? That should be fine if the game has a large map etc, but 400MB in Untracked memory? That’s a little odd. If it’s increasing over time that’s usually an indication of a memory leak.

1 Like

Sorry if this isn’t the best help
Its definitely not your code. I wouldn’t stress over it to much and bigger maps will cause high memory without proper streaming setup.

Studio itself increases memory usage by a good amount sometimes even putting myn at 2k+ at first I thought the same things. Bad code or because potentially outdated computer so I started testing and am continue to test because I only confused myself. As google search and older dev forums post have the mem low.

So in my current project my studio roughly hits 1700-1800 mem. This is due to studio processing server,game and studio – Studio will always have a higher memory count then in game.

in game it sits at 897 at max peaks which still fills high. So after having a few people test one guy even hitting one thousand and being on a better computer entirely I definitely considered bad and faulty code until I had us go sit on a empty baseplate.

Shockingly the memory usage average the same and even on some instances having a higher memory count in total. Which felt odd considering the other game had models, scripts and 36 moving npcs.

Quality setting was also playing a interesting part but nothing that makes or breaks the count.

here are the screenshots i took maybe someone with more knowledge into this area can provide light but at this point i think just recent roblox updates and with what @BackspaceRGB said. I believe this high memory is just normal but I have no idea besides high stress testing and obvious signs of lag to determine it.

My actual game/project 897

empty baseplate 923

Personally, I wouldn’t really stress too much about the memory usage.

But if your ‘Untracked Memory’ is getting high you should worry, high Untracked Memory is usually a sign of memory leaks. In that case you should double check your scripts.

1 Like

So after some other comments about untracked memory. I went and looked. My project sits at 317 and the baseplate sits at 315. Highest peaks anyway.

Im unsure if thats the sweet number or user dependent so I would recommend going to a empty and seeing if your untracked sits at 400 on both. If so your fine if not i mean a little is nothing to stress over.

I think thats the best place to watch though.

its down to 200 of untracked memory after i changed a few things. Also so sorry for the late response, wasan’t home yesterday.