Why does my game increase in ping overtime?

So I’m developing my game and I decided to playtest it looking at the ping to optimize. I join and I’m at a stable 50-60ms, then 10-20 minutes later of just standing still doing nothing, it jumps to 180ms! I looked through the Dev Console’s “Scripts” tab but none of them had high rate nor activity. I also looked at “Untracked Memory” and it was at a constant 0MB.

The game also slowly creeps from ~980MB usage to just over 1000MB, suggesting to me that it’s a memory leak. However, I can’t find this memory leak at all. I’ve gone through all my scripts several times and I don’t see anything. I’ve searched across the forum and found nothing helpful. I was wondering if anyone could help me pinpoint what is causing the issue, if there’s any tools/methods I’m missing out on.

FYI, I’m using lots of ModuleScripts. I have a Framework (ModuleScript) which can be used to require other ModuleScripts located ReplicatedStorage through functions such as Framework:GetModule(Name, Type, …) or Framework:GetLibrary(Name).

I feel like the intense requiring of modules could be causing this ping, but it’s not like they’re required constantly, only at the beginning of some other scripts/modulescripts. AFAIK, Roblox caches them after the first require. Any support is appreciated. :pray:

1 Like

Requiring modules doesnt make ur game laggy lol

Honestly if you cant find any memory leaks ask ai cause ai actually looks at everything

Just tried the AI. Utterly useless. It suggested using script.Source (which mind you can’t even be read through regular scripts because it just throws an error, had to figure out myself that it’s only through the command bar/plugins) and also used deprecated functions. I had to guide it like I was the expert and it still couldn’t find a solution. Sad, I think I’m just gonna go over the entire game once again lol

:sob: ai is good at times but its also a pain. i have not got the slightest idea why ping is rising. a very unlikely idea is messed up internal roblox scripts with memory leaks, but idk.

Tbh I just discovered something. In Studio, the ping remains at a stable 40-50ms and never spikes. However, as soon as I try this in-game, the ping is already high on join and keeps rising. I don’t know what this means ; maybe I’m overloading the roblox servers?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.