Mystifine
(Mystifine)
January 16, 2020, 1:04am
#1
In-studio the rate’s stay low, but in a real server with players, the rate just keeps going up never going down. I’m not sure what the problem is and I need help.
https://gyazo.com/6fb9564142a7541822cde53afe82f63e
I need a solution as soon as possible, the lag in the game just keeps increasing.
This is my first time dealing with a problem like this. Is this a sign of a memory leak?
corotines
(corotines)
January 16, 2020, 1:13am
#2
Usually, memory leaks are caused by unused code that doesn’t get collected by the garbage collector and stays in memory. Here’s a good account on memory leaks. PSA: Connections can memory leak Instances!
2 Likes
Mystifine
(Mystifine)
January 16, 2020, 1:14am
#3
Yes, I’ve read that post before but would my case be a memory leak where the rate increases without going back down?
corotines
(corotines)
January 16, 2020, 1:16am
#4
The cause of the memory leak could vary, it can take time to find the problem in your code.
2 Likes
Evercyan
(Cyan)
January 16, 2020, 1:47am
#5
I’m having the same problem too. I’m sure this is just a visual bug, especially if you aren’t noticing any performance impact.
Link to the bug:
It seems like the “rate” for server scripts in the Developer Console keeps increasing without reason, but only sometimes. This is what it looks like after a couple of hours when the bug has happened:
[image]
The microprofiler looks the exact same as when the server started, though. Less than 3ms frame times, and the amount of labels seen in it is roughly the same.
This is on Windows 10, 64 bit.
Side note: ChatServiceRunner still takes up quite a bit of processing even when chat is disabled …
1 Like