# UE5: Dynamic mesh actor optimize performance

**URL:** <https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [June 27, 2025, 8:46am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722 "2025-06-27T08:46:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![baibaituan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baibaituan](https://forums.unrealengine.com/u/baibaituan)\
**Post date:** [June 27, 2025, 8:46am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/1 "2025-06-27T08:46:43Z")

</div>

In my last forum question （ [UE5: How to spawn Dynamic Mesh Component Actor Dynamically?](https://forums.unrealengine.com/t/ue5-how-to-spawn-dynamic-mesh-component-actor-dynamically/2575656)） ,  
I solved the spawning issue with the DynamicMeshActor.  
And I’ve implemented the ability to “dig a hole” to BP\_DiggableItem with Boolean subtraction operations on dynamic meshes, and the problem is when the number of holes is getting bigger (or duing to the dynamic meshes are more complexly modified?) the program runs more laggy.  
I want to know how to optimize performance for dynamic mesh modifications？  
The function I want to do can refer to the Steam game DiggingAHole

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/b/6ab4e80fd9409b642e160ee3e0ce5b34f63169e0.png)  
I made a “Sway” feature for the weapon to make the weapon have a swing effect when rotating the field of view. It can also be seen that the weapon has a noticeable laggy in the back of the video  

  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/a/d/7ada813e53b3fd145e92fb602630e73a37ec5faa.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/2/542f8e14a23d1f4239d4d083d6b3c748350ed115.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/4/494e200eda6f96ae2f541cfbff1ed2e2f3fde0b2.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/6/056ee995c33e318314de4e323f3beb17df04fc50.png)

---

<div class="post-metadata">

**Author:** ![PREDALIEN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/predalien/32/1194670_2.png) [@PREDALIEN](https://forums.unrealengine.com/u/PREDALIEN)\
**Post date:** [June 27, 2025, 9:07am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/2 "2025-06-27T09:07:42Z")

</div>

You should check whether the problem is in the complexity of the final mesh, or in the cost of adding a new cutout if there are many of them (for example, ISM/HISM has a similar “problem”).

If the first, then most likely you will have to combine a large cluster of small cutouts into one large one (and figure out how to do this unnoticeably for the player)

If the second, then the model itself should initially consist of smaller parts, so that it is impossible to create too many cutouts in one part.

---

<div class="post-metadata">

**Author:** ![baibaituan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baibaituan](https://forums.unrealengine.com/u/baibaituan)\
**Post date:** [June 27, 2025, 9:13am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/3 "2025-06-27T09:13:00Z")

</div>

One idea I have is that whenever a BP\_DiggableItem is subtracted 100 times (for example), I convert the dynamic mesh to a Static Mesh with the same Mesh, and then convert it to a dynamic mesh again, which is equivalent to resetting the mesh’s modify history. I don’t know if that’s reasonable

---

<div class="post-metadata">

**Author:** ![baibaituan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baibaituan](https://forums.unrealengine.com/u/baibaituan)\
**Post date:** [June 27, 2025, 9:15am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/4 "2025-06-27T09:15:26Z")

</div>

And UE provides some Simplify nodes, don’t know if I’m using them correctly

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/3/9f33cea3fe46e434417c0d8ff811b1a77810e8cc.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/f/bbff7f481e67bc07cee6ea6ba32e39f95df90fbc.jpeg)

---

<div class="post-metadata">

**Author:** ![baibaituan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baibaituan](https://forums.unrealengine.com/u/baibaituan)\
**Post date:** [June 27, 2025, 9:19am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/5 "2025-06-27T09:19:23Z")

</div>

Will the cutouts of the Dynamic Mesh be automatically removed after they are completely subtracted? Or that I need to do extra logic to determine if it’s completely subtracted – \> and then, I need to manually destory them

---

<div class="post-metadata">

**Author:** ![PREDALIEN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/predalien/32/1194670_2.png) [@PREDALIEN](https://forums.unrealengine.com/u/PREDALIEN)\
**Post date:** [June 27, 2025, 9:26am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/6 "2025-06-27T09:26:59Z")

</div>

> [@baibaituan](#):
>
> I don’t know if that’s reasonable

The answer depends on whether the FPS increases at the same time)

> [@baibaituan](#):
>
> don’t know if I’m using them correctly

Unfortunately, me too…

> [@baibaituan](#):
>
> automatically removed

Most likely you will have to manually remove all the small cutouts and replace them with one large one.

---

<div class="post-metadata">

**Author:** ![Dasay2605](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dasay2605](https://forums.unrealengine.com/u/Dasay2605)\
**Post date:** [June 27, 2025, 11:12pm UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/7 "2025-06-27T23:12:38Z")

</div>

The problem with the boolean operation is that it is applied to a mesh with a large vertex count, which eventually leads to the lag you were seeing at the end. The basic way to fix this, as suggested here, is to make the boolean only apply to small parts of the “Diggable” object, potentially splitting it into smaller parts (chunks). But I think doing this yourself is a lot of work. This task itself could be a small project.

The developers of the Steam game you mentioned most likely used the idea of ​​ **Voxel**. I haven’t used it myself, but I believe it was designed for this kind of thing. It allows you to automatically create chunks, so it will do what I mentioned to you. Then it should work as you wanted, eliminating the lags that were appearing later, so I highly recommend doing some research in this area, maybe try using **Voxel Plugin** and see if that works for you. I think it’s free, but I’m not sure.

---

<div class="post-metadata">

**Author:** ![baibaituan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baibaituan](https://forums.unrealengine.com/u/baibaituan)\
**Post date:** [June 29, 2025, 9:00am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/8 "2025-06-29T09:00:31Z")

</div>

> [@Dasay2605](#):
>

The chunks way is too hard for me to know how to do it.  
However, I think it is important to identify the “hole faces” created by Boolean subtraction, and optimize the vertices for those faces (to use any of the nodes provided by the official) without changing the rest of the DiggableItem.  
An acceptable indication is that these “hole faces” are simplified and changed shape due to performance-optimized operation  
Here are some nodes I’m testing to get those “hole faces” ……

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/f/d3f1df6cacd38061c8900ccb2e74f1bbee04070e.jpeg)

---

<div class="post-metadata">

**Author:** ![baibaituan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@baibaituan](https://forums.unrealengine.com/u/baibaituan)\
**Post date:** [June 29, 2025, 9:07am UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/9 "2025-06-29T09:07:24Z")

</div>

The most likely outcome is a variable of type “struct”, are there any nodes that simplify this variable? Or do I need to do any other conversions?

---

<div class="post-metadata">

**Author:** ![Dasay2605](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dasay2605](https://forums.unrealengine.com/u/Dasay2605)\
**Post date:** [June 29, 2025, 12:25pm UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/10 "2025-06-29T12:25:24Z")

</div>

I mean, you can convert these structures to arrays, you can just drag a pin from “structure” and type “convert” and use the function that pops up.

But again, no matter how you optimize the algorithm, you’re still generally going to be creating at least a few new vertices every time you apply the boolean. If you have a game like you showed, with a fairly large “Diggable” object, you’ll eventually reach a point where the most optimized object still has too many vertices for the boolean to work fast enough, causing significant lag. This is a limitation of the boolean algorithm, it wasn’t designed to work at runtime on objects with many vertices. I don’t think there’s much you can do for a single object to ensure that there are no lags in the long run.

Voxel splitting is the only good option designed to solve these kinds of problems. It’s a complex topic, but it’s the only good solution I can suggest here.

---

<div class="post-metadata">

**Author:** ![europa-12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@europa-12](https://forums.unrealengine.com/u/europa-12)\
**Post date:** [March 9, 2026, 3:00pm UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/11 "2026-03-09T15:00:48Z")

</div>

Actually, if you know C++, the files inside offer plenty of options (like the edges or vertices from the Boolean intersection you mentioned—there’s an array storing them). Unfortunately, even with that, the current dynamic mesh-related features might not function perfectly at runtime. I’d recommend using FAB’s voxel-related plugins to implement your functionality instead.

---

<div class="post-metadata">

**Author:** ![JHBlancs27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JHBlancs27](https://forums.unrealengine.com/u/JHBlancs27)\
**Post date:** [June 18, 2026, 10:24pm UTC](https://forums.unrealengine.com/t/ue5-dynamic-mesh-actor-optimize-performance/2580722/12 "2026-06-18T22:24:02Z")

</div>

I don’t see chunk-separating the mountain being that big of a task. Sure, it’s a day of booleaning the mountain into quarters or more, or setting that to happen at runtime start - boolean the overall mountain into an Array of dynamic mesh objects. Either way, convert the mountain into a bunch of stacked cubes.

Then, when doing your subsequent digging booleans, first fire a multisphere trace to check which chunks are going to be manipulated. Then do the bool on each chunk.
