Finding actors that invalidate VSM cache in Unreal Engine

Hello,

The tool for identifying which objects are invalidating VSMs (“r.Shadow.Virtual.Cache.DrawInvalidatingBounds”) has issues in 5.4 and 5.5.

The public tracker for this bug can be found here:

https://issues.unrealengine.com/issue/UE-217513

The following functions are responsible for adding primitives to the invalidation list:

  • “FVirtualShadowMapPerLightCacheEntry::OnPrimitiveRendered(…)”
  • “FVirtualShadowMapArrayCacheManager::FShadowInvalidatingInstancesImplementation::AddInstanceRange(…)”

Please let us know if this helps.