I am currently trying to figure out what is causing major lag spikes when there are over 30+ player in my game. This is a addon to my previous post Massive Lag spikes with 30+ people in game which someone told me that in the 2 clips:
There was a script in the Developer Console called ‘Unknown’ I am aware this is a bunch of scripts that roblox cannot identify in the console but I am wondering what it could be as this could be my culprit. If you have any idea on this on what it could be.
You can see here (in the second clip) when it’s nearing about 40 players, this Unknown script spikes to over 87% and 18000/s rate.
There was an open-source module we used for weapons, and it had a memory leak. I swapped the module, and it worked perfectly fine after that; it could run up towards 90+ players fine.
I would recommend looking at every function of your game individually and pinpointing it there. Try removing any open-source modules you are using and try a different one.