# ULandscapeHeightfieldCollisionComponent::CreateCollisionObject is slow 

**URL:** <https://forums.unrealengine.com/t/ulandscapeheightfieldcollisioncomponent-createcollisionobject-is-slow/2662226>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [September 4, 2025, 1:43pm UTC](https://forums.unrealengine.com/t/ulandscapeheightfieldcollisioncomponent-createcollisionobject-is-slow/2662226 "2025-09-04T13:43:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 4, 2025, 1:43pm UTC](https://forums.unrealengine.com/t/ulandscapeheightfieldcollisioncomponent-createcollisionobject-is-slow/2662226/1 "2025-09-04T13:43:38Z")

</div>

Most of the time is spend deserializing Chaos::FHeightfield::Data::Heights and Chaos::FHeightfield::Data::MaterialIndices which are respectively a TArray\<uint16\> and TArray\<uint8\>.

[Image Removed]

I improve the Unreal Insight trace to better observe the issue. We can see that Unreal spend ~1.5ms to deserialize ~192kb

Looking into the code, I feel like it could be faster.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 4, 2025, 1:43pm UTC](https://forums.unrealengine.com/t/ulandscapeheightfieldcollisioncomponent-createcollisionobject-is-slow/2662226/2 "2025-09-04T13:43:42Z")

</div>

**Steps to Reproduce**  
To reproduce the issue, open the provided project (which is the VehicleExample template with an added Landscape to emphasize the issue).

Package the project.

Start the packaged build with argument -statnamedevent and collect a trace.

You should be able to observe a trace that match the screenshot I provided.

---

<div class="post-metadata">

**Author:** ![Svegn2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svegn2/32/924220_2.png) [@Svegn2](https://forums.unrealengine.com/u/Svegn2)\
**Post date:** [September 4, 2025, 6:00pm UTC](https://forums.unrealengine.com/t/ulandscapeheightfieldcollisioncomponent-createcollisionobject-is-slow/2662226/3 "2025-09-04T18:00:14Z")

</div>

Hi,

I believe that the load times can be improved by this pull request: [https://github.com/EpicGames/UnrealEngine/pull/12878](https://github.com/EpicGames/UnrealEngine/pull/12878)

Our devs haven’t had the time to look at it yet but it seems something that would help in your case.

I’ll pass the question to our Simulation team to make sure they are aware of the problem.

Regards,

Martin

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [September 12, 2025, 12:21pm UTC](https://forums.unrealengine.com/t/ulandscapeheightfieldcollisioncomponent-createcollisionobject-is-slow/2662226/4 "2025-09-12T12:21:17Z")

</div>

Hi Martin!

Thanks for the pull request. It makes the serialization much faster, and after a week of testing I did not experience any issue.

I hope someone at Epic can review the pull request soon so that everyone can get faster serialization.

Thanks again.
