buildSkeleton takes too long to perform its operations

Reproduction Steps
Firstly updating the properties of the bones of a skinned mesh does not update the skinned mesh. Any update to the geometry including updating any property of any skinned mesh except the CFrame updates the geometry which runs the buildSkeleton function which takes far too long.

This issue is not present in studio testing, it only happens in the live game. In studio everything works fine.

Expected Behavior
For the skinned mesh to change the vertices when I update the bones and for buildSkeleton function to take less than a millisecond on my system.

Actual Behavior
Vertices don’t move and buildSkeleton function takes more than 2 seconds to update


image

Issue Area: Engine
Issue Type: Performance
Impact: Very High
Frequency: Constantly
Date First Experienced: 2021-11-27 16:11:00 (+03:00)
Date Last Experienced: 2021-11-28 00:11:00 (+03:00)
A private message is associated with this bug report

10 Likes

Been having a similar issue in my own game. It seems that this is purely a studio issue relating to rendering that ends up breaking/affecting other portions of the game (scripts, tools, etc.) As of now the best way to fix this is to make the game less engine intensive. 131313

Hello @Klutzagon do you happen to have a sample place file (rbxl) that you can share with us that presents the problem? It will help us investigate further. You can send it to me in a private message if you prefer. Thank you!

Hey, make sure to verify that:

  1. The skinned mesh is parented to a model, and not a folder/workspace
  2. The parent model doesn’t have too many misc. parts, because the operation time is tied to how many objects exist within the mesh’s parent
3 Likes

You’re a lifesaver!

I could imagine myself spending weeks trying to figure out this 5 second fix, thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.