# All VSM cache being invalidated when rotating camera

**URL:** <https://forums.unrealengine.com/t/all-vsm-cache-being-invalidated-when-rotating-camera/2154038>\
**Category:** Rendering\
**Tags:** unreal-engine, Rendering, question\
**Created:** [November 27, 2024, 9:08am UTC](https://forums.unrealengine.com/t/all-vsm-cache-being-invalidated-when-rotating-camera/2154038 "2024-11-27T09:08:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuri9447](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yuri9447](https://forums.unrealengine.com/u/Yuri9447)\
**Post date:** [November 27, 2024, 9:08am UTC](https://forums.unrealengine.com/t/all-vsm-cache-being-invalidated-when-rotating-camera/2154038/1 "2024-11-27T09:08:01Z")

</div>

Hi! I was using Unreal Engine 5.4.4 and I noticed that when I ratating my camera the cache stats (using r.Shadow.Virtual.ShowStats console variable) drop rapidly to ZERO (Even if I just do a slightly ratate). The FPS drops too and goes back to normal as I stop rotating camera. The “Shadow Depth” will continuously increase if I keep ratating camera. The VSM doc says that “There is a known issue with **Scene Capture Components** that can cause the entire cache to be invalidated”, but I’m not using any. So how can I figure out what causes this. Many Thanks!!!

---

<div class="post-metadata">

**Author:** ![Yuri9447](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yuri9447](https://forums.unrealengine.com/u/Yuri9447)\
**Post date:** [November 28, 2024, 1:02am UTC](https://forums.unrealengine.com/t/all-vsm-cache-being-invalidated-when-rotating-camera/2154038/2 "2024-11-28T01:02:44Z")

</div>

Turned out that there is a SceneCaptureComponent2D(Occlusion Capture) in Sky Creator Plugin. If I disable this component. VSM performance when rotating or moving camera is as what I expected since the caches are working. So I guess that before Epic fixed this issue, we should really not using Scene Capture Component when VSM is enabled.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 28, 2024, 1:03am UTC](https://forums.unrealengine.com/t/all-vsm-cache-being-invalidated-when-rotating-camera/2154038/3 "2024-12-28T01:03:02Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
