I’m making a game called Saisei and for some reason every once in a while a player will start experiencing INCREDIBLE client-sided lag. Rejoining, Creating New Servers, Using Alt Accounts, and Even using different devices do not fix this issue once somebody gets affected by this bug (for no apparent reason may I mind you).
Normally I’d call this a Roblox issue or a wifi issue but uh- the issue is that these players ONLY experience this bug in my game. So it’s something to do with my Game?
I’m lost. I have reposted similar posts because they keep getting taken down. I don’t usually use the forum and I’m not even sure what the nature of this bug is.
You might have a memory leak. Make sure you disconnect events when they are not being used. You can create a debug profile to monitor what is happening.
I do make sure to disconnect events and such and also add all Instances I create with a script to game.Debris but I don’t think a data leak is causing this. it effects players immediately upon joining and this only affects specific people. As said in the post even stuff like creating new servers and even making a new account do not work
I have heard that Debris service is pretty bad at actually cleaning things up. If you want things to be deleted immediately you should use :Destroy or a custom Debris service.
That behaviour is strange, you will need to just try your best to debug. Maybe get a fly swatter at the ready
I’ll keep note of this and check it out later (thanks for the debris tip) but have you heard of anything else that uh- goes across servers? also yes. i have done full data wipes on these peoples characters in an attempt to fix the bug.
This is really weird and I didn’t even know it was possible for something like this to happen. the closest thing I have to a theory is that these players are experiencing some form of issue (unknown) that my game cant handle but other games can…?
Note: since I can’t seem to recreate this bug i need other people who are effected by it to send me these videos and such
Users hitbox is lagging out in this video and doesn’t seem to be getting removed properly (i host hitboxes on the client side with server-side magnitude checks)
Image of the person I told to look at their micro profile
Like @Evercreeper said you need try your best to debug. Change microprofiler mode to “Detailed” and pause it and then start looking what is exactly happening. You’re looking for something like this:
Okay, looks like “Everything Handler” takes a lot time to process and it MIGHT be one of the reasons because there is more suspiciously long processes but i can’t read what name of them is because they are too tiny. Remember that you can zoom and pan this with scroll wheel and mouse.
No worries, I don’t think that splitting this into multiple scripts will help. You should rather analyze your code and make sure everything is working properly. Also check if heartbeat event inside this script is handling only most important stuff.
Gotcha. I destroyed the everything handled Inside one of the people affected. they were fixed immediately though some other issues appeared (i mean an important script was destroyed so it makes sense) I appreciate the help and will take a second look at the code!