400+ MB "Untracked Memory" on Xbox clients? Possible memory leak?

Hello, I have this game here: Foam FPS - Roblox

It’s been lagging on Xbox since Summer 2020, I haven’t updated/changed anything regarding Xbox and it averages 20FPS on the OG Xbox One. I still don’t know what the issue is and I’ve been really digging through my game, I even tried switching over the projectiles to beams and it still did nothing. It lags with over 4 players in the server and it’s all lagging on the client.

When I join a server on Foam FPS, I get ~500mb of “Untracked Memory” as shown in this picture below:

When I join an empty baseplate, I get the same “Untracked Memory” as I do with Foam FPS, as shown below:

This is probably normal I’m assuming? But my average client memory usage on PC and Mobile is 600mb, and on Xbox it’s at 1500mb.

The game does replicate physical parts as bullets for every client as apart of it’s raycasting system that just checks itself in the client constantly instead of using a module, I tried switching over the renderstepped system of the projectiles to a slower rate with different attempts with heartbeat and while loops. It’s really hard to pin-point this issue, as I’ve been trying to investigate this for months on my own.

I honestly don’t know what to do here and I feel like an utter idiot but I would like at least some kind of insight. I’m sorry if this isn’t enough information I’ll try to reply as much as I can.

5 Likes

Hope this helps:
(Playing your game, Foam FPS)

Platform: PC
Total Memory Usage: 614 MB
Untracked Memory Usage: 0 MB

This is probably an Xbox thing, since I did not see this on PC.

1 Like

Hello! The engineers would like some performance checks as that extra untracked memory might be a side effect of how memory system is working right now (it could be improved later), but is unlikely the source of performance issues.

If you want to give us some performance logs here are the steps that you need to perform:

Prerequisite: Have the Xbox console and a PC connected to the SAME network

Step 1: On the Xbox console , while in the game, enter Settings and enable Micro Profiler
Step 2: You will see under Micro Profiler Information an IP address, copy that into your browser’s address bar on the PC. Example: http://192.168.X.Y:1338 image
Step 3: You should be able to see a Micro Profiler capture. Example: image
Step 4: Press [CTRL + S] and save the information with a filename that indicates your current client version and device model.

After these steps, please send the HTML file to me so that I can pass it to the engineers. Thank you!

2 Likes

Thank you! I can’t seem to access or see the ip address in the microprofiler analysis information on the OG Xbox One as seen in this picture from the DevHub:

I can save a recording of the ServerProfiler in the xbox but it’s stored in a R drive? Which I don’t know how to access.

I will DM you in private then @IsaacThePooper .

That’s just a screenshot from the wiki of a mobile device, I cannot see that information on Xbox.