After the update and small redesign of roblox came out, I noticed one strange thing.
On my place in PVP genre there are some NPCs that are regular Rig6, inside of which there are only their cosmetics, binding parts and body parts (and a script to play movement animations).
In a test in the studio, I kill an NPC via the usual Humanoid:TakeDamage(N) and after 3 seconds I have the entire NPC model deleted. When I remove the model, I get a serious slowdown to 0-2fps and it lasts for 2 seconds, after which everything goes back to normal. The new NPC is respawned 5 seconds after the death of the previous one using the Clone() method and has identical functionality, BUT! The frame drop suddenly disappears when the second and subsequent NPCs die.
https://gyazo.com/dbe5a980004fb54681c6a5678f64005e
I was not happy with what was happening and checked everything on my side of the scripts and came to banal disabling them for tests. The experiment repeats with frame sagging even if inside any other Rig add a script to delete the whole model after 15 seconds and after that nothing repeats.
I checked the workspace for other scripts running and found nothing, literally nothing that could affect the operation of simply deleting a model.
A more interesting result I got when I published the place and tested everything in roblox itself, there is no sag at all, Ping and Recovery are very low and don’t change values at all when any bot dies.
MicroProfiler has given a tip that at the moment of the slump only 2 processes are working: Worker and Preload, one of which is used for physics processing and PathFinding (I don’t use it at all), and the second one for model rendering.
I’d be glad for any help, just to figure out if it’s my fault or if it’s due to some roblox updates.