Description

FCableSceneProxy::BuildCableMesh in CableComponent.cpp:233 showed up as a hot spot in profiling because the two TArray allocators in SetDynamicData_RenderThread used by BuildCableMesh are created and appended to every frame in a worker. they're about 2-8kb in size.

 

The TArrays are getting filled up then memcpy'd to an RHI buffer then dropped right after in the same function. This can be fixed by converting the function to just generate and write to the RHI buffer as the elements are being generated.

Steps to Reproduce

n/a

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Simulation - Physics
Affects Versions5.5
Target Fix5.7
Fix Commit42105372
CreatedFeb 12, 2025
ResolvedApr 30, 2025
UpdatedMay 1, 2025
View Jira Issue