# Hierarchical Instanted Static Mesh flickers

**URL:** <https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522>\
**Category:** Rendering\
**Tags:** Hierarchical-Instanced-Static-Mesh, flickering, unreal-engine, Rendering, question, CPP\
**Created:** [January 25, 2018, 3:28pm UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522 "2018-01-25T15:28:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgumley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Post date:** [January 25, 2018, 3:28pm UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/1 "2018-01-25T15:28:13Z")

</div>

After adding and removing thousands of instances from a HISM component, the HISM begins to flicker when adding additional instances. Here is a video demonstration. The flickering starts at time=1:12.

[https://youtu.be/BjiPNkBk0Wc?t=1m12s](https://youtu.be/BjiPNkBk0Wc?t=1m12s)

---

<div class="post-metadata">

**Author:** ![Duncan\_Dam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Duncan\_Dam](https://forums.unrealengine.com/u/Duncan_Dam)\
**Post date:** [January 26, 2018, 3:20am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/2 "2018-01-26T03:20:14Z")

</div>

I think problem might be with HISM when each instanced have its own LOD. I’m having some flicker before also and i read that HISM is buggy with LOD calculation at run time when you adding and removing, so till i only have less than 50 instances, i just switch to Instanced Static Mesh Component and the problem gone.

---

<div class="post-metadata">

**Author:** ![mgumley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Post date:** [January 26, 2018, 5:04am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/3 "2018-01-26T05:04:46Z")

</div>

Your solution isn’t quite clear to me. Are you suggesting to just stop using HISM?

---

<div class="post-metadata">

**Author:** ![Duncan\_Dam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Duncan\_Dam](https://forums.unrealengine.com/u/Duncan_Dam)\
**Post date:** [January 26, 2018, 6:42am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/4 "2018-01-26T06:42:30Z")

</div>

My suggest is using Instanced Static Mesh instead of Hierarchical ISM

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [January 26, 2018, 3:27pm UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/5 "2018-01-26T15:27:11Z")

</div>

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

[https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form](https://forums.unrealengine.com/unreal-engine/announcements-and-releases/1410408-unreal-engine-bug-submission-form)

Thanks

---

<div class="post-metadata">

**Author:** ![mgumley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Post date:** [January 27, 2018, 4:10am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/6 "2018-01-27T04:10:06Z")

</div>

Duncan, this is not very helpful. You should not be replying to bug reports by simply saying “Don’t use that feature”. The ISM does not provide the same benefits of the HISM, it is not a replacement.

---

<div class="post-metadata">

**Author:** ![mgumley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Post date:** [January 27, 2018, 4:28am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/7 "2018-01-27T04:28:24Z")

</div>

Thanks for clarifying that Sean. I just filled out the bug report there.

---

<div class="post-metadata">

**Author:** ![Duncan\_Dam](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Duncan\_Dam](https://forums.unrealengine.com/u/Duncan_Dam)\
**Post date:** [January 27, 2018, 11:28am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/8 "2018-01-27T11:28:27Z")

</div>

what’s your deal man ? just trying to help and suggestion based on my experience, also that’s why i put on comment section not answer. Suggestion is for your reference you can take it or not. ok.

---

<div class="post-metadata">

**Author:** ![mgumley](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mgumley](https://forums.unrealengine.com/u/mgumley)\
**Post date:** [February 1, 2018, 3:45am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/9 "2018-02-01T03:45:06Z")

</div>

I submitted the bug using that submission form, but I can’t find it on your site. I looked here ( [https://issues.unrealengine.com/](https://issues.unrealengine.com/) ) and searched for the title (the same as this post) but I can’t find it. Can you show me where I can find it?

---

<div class="post-metadata">

**Author:** ![Infiltrator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Infiltrator](https://forums.unrealengine.com/u/Infiltrator)\
**Post date:** [February 13, 2018, 4:41am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/10 "2018-02-13T04:41:29Z")

</div>

@Duncan Dam, that is not the way to help by suggesting HISM should not be used.

---

<div class="post-metadata">

**Author:** ![Infiltrator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Infiltrator](https://forums.unrealengine.com/u/Infiltrator)\
**Post date:** [February 13, 2018, 4:43am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/11 "2018-02-13T04:43:53Z")

</div>

@mgumley I am facing the same issue but mine is more severe. See the video of the HISM flickering in and out as I simply change the view point : [link text](https://www.youtube.com/watch?time_continue=1&v=eohHmQzkGvo)

---

<div class="post-metadata">

**Author:** ![JohnADaniels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnadaniels/32/1080686_2.png) [@JohnADaniels](https://forums.unrealengine.com/u/JohnADaniels)\
**Post date:** [October 28, 2018, 7:02am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/12 "2018-10-28T07:02:51Z")

</div>

Did you guys ever get this figured out, I am having the exact same issue.

---

<div class="post-metadata">

**Author:** ![JohnADaniels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnadaniels/32/1080686_2.png) [@JohnADaniels](https://forums.unrealengine.com/u/JohnADaniels)\
**Post date:** [October 28, 2018, 12:01pm UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/13 "2018-10-28T12:01:40Z")

</div>

Did you guys ever get this figured out, I am having the exact same issue.

---

<div class="post-metadata">

**Author:** ![JohnADaniels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnadaniels/32/1080686_2.png) [@JohnADaniels](https://forums.unrealengine.com/u/JohnADaniels)\
**Post date:** [October 28, 2018, 12:01pm UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/14 "2018-10-28T12:01:46Z")

</div>

Did you guys ever get this figured out, I am having the exact same issue.

---

<div class="post-metadata">

**Author:** ![JohnADaniels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnadaniels/32/1080686_2.png) [@JohnADaniels](https://forums.unrealengine.com/u/JohnADaniels)\
**Post date:** [October 28, 2018, 12:19pm UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/15 "2018-10-28T12:19:57Z")

</div>

Thank you, I may have to do the same thing.

---

<div class="post-metadata">

**Author:** ![BrendanLoBuglio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrendanLoBuglio](https://forums.unrealengine.com/u/BrendanLoBuglio)\
**Post date:** [January 23, 2019, 12:01am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/16 "2019-01-23T00:01:43Z")

</div>

Hi, folks! I have found what I believe is a partial solution.

I found that my issue lied in the HISMs building asynchronously: after moving some HISM instances, the meshes would briefly pop out and in again within a single frame. In other words, there was no single game frame where the instances were gone; as I stepped through in play mode, the meshes would often disappear and reappear after a single click of the “Step Forward” button.

In order to address this I’m now calling UHierarchicalInstancedStaticMeshComponent::BuildTreeIfOutdated after doing the operation on the instances that causes my flickering, passing in false for Async and true for ForceUpdate. My understanding is that this forces the HISM to build synchronously on that frame.

I’ve done a little bit of profiling and haven’t found a big performance impact from this technique, but that might vary depending on the size of your HISMs and / or how frequently you need to call BuildTreeIfOutdated.

---

<div class="post-metadata">

**Author:** ![ProzackPH7](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/prozackph7/32/597366_2.png) [@ProzackPH7](https://forums.unrealengine.com/u/ProzackPH7)\
**Post date:** [April 1, 2019, 10:58am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/17 "2019-04-01T10:58:07Z")

</div>

Is there anyway I can do this in blueprints?

---

<div class="post-metadata">

**Author:** ![KristofMorva](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kristofmorva/32/1194508_2.png) [@KristofMorva](https://forums.unrealengine.com/u/KristofMorva)\
**Post date:** [April 1, 2019, 11:12am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/18 "2019-04-01T11:12:41Z")

</div>

Based on my experiences it has been fixed in **4.22** , so just update your project as soon as it’s released and the flickering should go away 🙂

---

<div class="post-metadata">

**Author:** ![JohnADaniels](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/johnadaniels/32/1080686_2.png) [@JohnADaniels](https://forums.unrealengine.com/u/JohnADaniels)\
**Post date:** [April 1, 2019, 11:20am UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/19 "2019-04-01T11:20:35Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![thebenjiman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thebenjiman/32/577800_2.png) [@thebenjiman](https://forums.unrealengine.com/u/thebenjiman)\
**Post date:** [November 30, 2021, 4:07pm UTC](https://forums.unrealengine.com/t/hierarchical-instanted-static-mesh-flickers/415522/20 "2021-11-30T16:07:42Z")

</div>

I’m using 4.26 and had the issue just right now.

The problem for me was that the HISM component’s transform (not the instances’) was being occluded by some other element in the game. The engine would then start culling/unculling the instances of this HISM. Thus the flickering.

What is made to fix this was to make sure the transform of the HISM component would not be 0,0,0 and also bumped the boundScale of the HISM component by 4.
