# UStaticMesh::InitResources always sets CachedSRRState.bHasPendingInitHint to true

**URL:** <https://forums.unrealengine.com/t/ustaticmesh-initresources-always-sets-cachedsrrstate-bhaspendinginithint-to-true/1241047>\
**Category:** Rendering\
**Tags:** unreal-engine, staticmesh\
**Created:** [July 26, 2023, 9:22pm UTC](https://forums.unrealengine.com/t/ustaticmesh-initresources-always-sets-cachedsrrstate-bhaspendinginithint-to-true/1241047 "2023-07-26T21:22:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdixonTNM](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jdixontnm/32/631748_2.png) [@jdixonTNM](https://forums.unrealengine.com/u/jdixonTNM)\
**Post date:** [July 26, 2023, 9:22pm UTC](https://forums.unrealengine.com/t/ustaticmesh-initresources-always-sets-cachedsrrstate-bhaspendinginithint-to-true/1241047/1 "2023-07-26T21:22:00Z")

</div>

Hi everybody,

I was looking into the UStreamableRenderAsset::LinkStreaming & UStreamableRenderAsset::UnlinkStreaming calls and I found this curious thing:

In 5.2+ StaticMesh.cpp, UStaticMesh::InitResources (as long as GetRenderData() is true) we 100% of the time set CachedSSRState.bHasPendingInitHint = true.

While other StreamableRenderAssets will clear this via UStreamableRenderAsset::HasPendingInitOrStreaming, I’m seeing a non-streaming StaticMesh which never clears this bit. The #if STATS block at the bottom of UStaticMesh::InitResources is already valid without any pendingInitHint required.

I believe we can simplify some of the redundant LinkStreaming & UnlinkStreaming calls, which will help communicate the amount of IO needs per frame across all RenderAssetTypes.

Thanks so much,

- Jeff 🙂
