This issue is still causing massive performance losses at my games, and the original post seems to prove that it’s out of my control entirely. I think I successfully got a dump of this but I’m not entirely certain how to get to it, if it would be beneficial for debugging this issue then I can upload it here.
Ok I just found out that this is also causing massive issues in Aegis, and I only narrowed it down today… This needs to be resolved, for now im going to just kill the humanoid… Firing it once causes a 50% spike in server usage, and you can clearly tell when its being fired as the lag spike is crazy…
I also thought that we had resolved this issue, can you provide more information about what issues you are seeing and a way to reproduce them? Are the performance issues you are seeing on the client or the server? Does your game use R15 or R6 avatars?
We have made some significant changes to LoadCharacter since this thread was initially posted so hopefully there aren’t still performance issues related to character loading.
R15, 100% server side, replication of everything pauses because of the CPU usage spike in those few frames. The only thing I can tell is that the issue scales with player count. Il see what I can do about a easy repo for you guys. With around 45 players, the spikes are around 50%, less players uses less usage. Running the code in the first post causes the same results in my game that TwentyTwoPilots is seeing in his post 13 days ago.
My game relies on LoadCharacter for respawns due to a custom death situation, and it hogs over 50% of the memory, causing a lag spike. Is this still an issue to date?
In both No-Scope Sniping and it’s remake, I use a custom character spawning script that uses LoadCharacter. At the end of a round when this is called in mass, the server dies for a second.
I’m a bit upset that 4 years later, Roblox still hasn’t fixed this bug.
When I’m testing this using the same method, I’m getting spikes up to about 10ms when respawning but nothing crazy like the above, leading me to believe it was fixed at some point. Check your CharacterAdded events for other problems.
I haven’t noticed this in my games, but I did notice that the server lags when a player joins the game. It happens in on baseplate, so I don’t think I can fix it on my end. Average ping goes from 50 ms to 500-1000ms for a few frames, pretty much goes back to 50 ms in a second.
This indeed does still happen, I have a “last man standing” type of round match in which players are all spawned together at the start after choosing their character, the server activity spikes up for a short while.
This is happening in our game Neighbors 🔊 [Voice Chat & Mic Up] - Roblox. We use :LoadCharacter anytime the character “dies” which causes a clear fps spike and can be seen in the microprofiler.
Edit:
It doesn’t seem to be LoadCharacter itself but instead when working with specific appearances. Doing any of the below will spike fps/profiler. This spike is significantly worse when a character has layered clothing, rthro, or anything similar (eg lots of hairs).
Rescaling a character by modifying their body scale values in their Humanoid (BodyDepthScale, BodyHeightScale, etc)
Changing a character into another appearance by using ApplyDescription.
Sorry for the bump but my players have complained about this over and over again
Anytime a player respawns whether using :LoadCharacter() or just using auto respawn, there is a clear slight freeze in the game for all players, easier to notice when multiple players are dieing and respawning at the same time
Here I have a baseplate with the only active script being a simple spin and damage script, when the player dies my screen shows the spike freezing for 0.1 seconds. This can get really irritating when it happens multiple times in a row with lots of moving or animated parts all freezing like this together