Replicator - UpdateSkinnedMeshMeshId is taking too long for some meshes

I was working on a character morphing script that uses ApplyMesh() to change the meshids, and I noticed that when playtesting, my client would freeze for a while when trying to morph
Looking in microprofiler showed that ‘UpdateSkinnedMeshMeshId’ was taking around 180ms per meshpart for the first time the morphing happens, then its normal afterwards

Reproduction file:
updateskinnedmeshlag.rbxl (73.8 KB)

2 Likes

Hi! Thanks for bringing this to our attention. This is expected, although unfortunate, behavior. We plan to optimize this in the future.