# Is it possible to force Virtual Shadow Maps to update?

**URL:** <https://forums.unrealengine.com/t/is-it-possible-to-force-virtual-shadow-maps-to-update/1796227>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [April 9, 2024, 10:24pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-force-virtual-shadow-maps-to-update/1796227 "2024-04-09T22:24:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReedH\_TruGolf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ReedH\_TruGolf](https://forums.unrealengine.com/u/ReedH_TruGolf)\
**Post date:** [April 9, 2024, 10:24pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-force-virtual-shadow-maps-to-update/1796227/1 "2024-04-09T22:24:46Z")

</div>

![landscapestripes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/4/424c7f2134e3d6c16300c5b68f6d36cd5879b5e7.jpeg)

I’m running into an issue where the Virtual Shadow Maps are being created while the landscape is still loading in. As the landscape streams in, it first appears in a very low resolution–all blocky like a Minecraft world. The virtual shadow maps are created at this point, which of course makes weird, jagged shadows. When the landscape finishes loading in, it gets smooth, but the shadows are still jagged.

These shadows do clear up when the player turns or moves far enough, but I’d prefer we don’t have the bad shadows at all. Can I tell the engine to refresh the Virtual Shadow Maps once the landscape is fully loaded? Or is this more about making sure the shadow maps are generated later in the loading process?

---

<div class="post-metadata">

**Author:** ![Maydie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maydie](https://forums.unrealengine.com/u/Maydie)\
**Post date:** [April 28, 2024, 11:32pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-force-virtual-shadow-maps-to-update/1796227/2 "2024-04-28T23:32:38Z")

</div>

Did you ever get this resolved? I have the exact same issue. As the map loads, the virtual shadow map looks ugly but then clears up as the camera moves. I would do a refresh if it was possible to trigger it or maybe delay it until the scene is fully loaded.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [May 29, 2024, 3:49pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-force-virtual-shadow-maps-to-update/1796227/3 "2024-05-29T15:49:29Z")

</div>

i want to know this as well. I am using dynamic tesselation in nanite for rain puddles. Flattens out the ground… but the shadows look aweful until i turn the camera and basica refresh the virtual shadow maps. Anyway to make them refresh instantly when i want?

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [May 29, 2024, 4:41pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-force-virtual-shadow-maps-to-update/1796227/4 "2024-05-29T16:41:01Z")

</div>

In 5.3/5.4 you can set the shadow cache invalidation behavior manually in the actor settings, I believe it can probably also be set from blueprint. If you know an actor is going to be constantly changing from tessellation you can set the invalidation behavior to “always” and it should mark the cached pages and force them to regenerate every frame.

Obviously, this will have an impact on performance. Such is life.

Not sure if this setting exists on landscapes.

---

<div class="post-metadata">

**Author:** ![kurylo3d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurylo3d/32/1150889_2.png) [@kurylo3d](https://forums.unrealengine.com/u/kurylo3d)\
**Post date:** [June 2, 2024, 3:15pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-force-virtual-shadow-maps-to-update/1796227/5 "2024-06-02T15:15:27Z")

</div>

well im thinkn time of day sort of settings… , updating per interval or something…

---

<div class="post-metadata">

**Author:** ![MrHardo1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrHardo1](https://forums.unrealengine.com/u/MrHardo1)\
**Post date:** [January 8, 2026, 7:14pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-force-virtual-shadow-maps-to-update/1796227/6 "2026-01-08T19:14:25Z")

</div>

For those of you who are just looking for a method to manually trigger a refresh, for example if you are working with Nanite tessellated materials in the editor and need to manually invalidate the cache, you can just use the command “r.shadow.virtual.enable 1” and that will refresh it.

In the case of OP’s situation, you could also do an automatic refresh by executing the command with a BP node after the landscape has streamed in. If you are using world partition, there is a function IsStreamingCompleted() in the World Partition subsystem you can poll and leverage for this purpose.
