Description

From UDN :

we are spawning a number of characters at the same time during the game, and seeing a major framerate hitch when we do so. After the characters have been spawned, we use SetSkinnedAssetAndUpdate on their skeletal mesh components to configure them, which is part of what is taking the time. Among other things, it causes a render pipeline flush in USkinnedMeshComponent::InitLODInfos(), which means that spreading out the calculations over several frames is not as attractive, since that would give us about 35 frames in sequence with a render pipeline flush in them.

Is there a way to avoid a stall waiting for the render commands to flush when setting a skinned mesh? More generally, what is the recommended way to spawn and set up characters like this during a game? The characters we use are metahuman based, so they may have fairly complex skeletons and meshes, and can take a while to initialize.

Steps to Reproduce

Customer will have to validate, the fix was obvious, but repro is specific to their setup.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-183719 in the post.

7
Login to Vote

Fixed
ComponentUE - Anim - Rigging
Affects Versions5.2
Target Fix5.3
Fix Commit25483438
Main Commit25483438
CreatedApr 19, 2023
ResolvedMay 16, 2023
UpdatedMay 22, 2023
View Jira Issue