# Are all cubemaps within the project folder included in texture memory, at all times?

**URL:** <https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970>\
**Category:** Rendering\
**Tags:** Cubemaps, unreal-engine, UE4-26, question\
**Created:** [May 27, 2022, 2:43pm UTC](https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970 "2022-05-27T14:43:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![SVR33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svr33/32/906589_2.png) [@SVR33](https://forums.unrealengine.com/u/SVR33)\
**Post date:** [May 27, 2022, 2:43pm UTC](https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970/1 "2022-05-27T14:43:42Z")

</div>

I’m learning how to optimize my game and found nearly 5GB of ‘NonStreamingMips’ which left me scratching my head. Even in a completely blank level, that number doesn’t change in Stat Streaming.

 ![stat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/c/a4ccb5d39b16ed69bb4796d99b21bd011196a788.jpeg)  
After some digging, I realized it was from a fairly large collection of cubemaps I have in my project, of which only a small handful are even being used.

I’m hoping someone can confirm that I’m understanding this correctly… it seems like any cubemap in the project, regardless of whether it’s being used/referenced or not, will always be included in texture memory… is that correct?

---

<div class="post-metadata">

**Author:** ![BananableOffense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BananableOffense](https://forums.unrealengine.com/u/BananableOffense)\
**Post date:** [May 27, 2022, 8:00pm UTC](https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970/2 "2022-05-27T20:00:38Z")

</div>

Oof. Doing some searches and this appears to be correct. Not sure why cubes with no level references would load. Seems like a huge waste of memory of you want decent quality cubes.

Although I’ve always found I could get away with shockingly low resolution cubes.

---

<div class="post-metadata">

**Author:** ![SVR33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svr33/32/906589_2.png) [@SVR33](https://forums.unrealengine.com/u/SVR33)\
**Post date:** [May 28, 2022, 7:40pm UTC](https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970/3 "2022-05-28T19:40:23Z")

</div>

For most things, yes, I’m doing the same - setting the cube texture resolution really low. However, I have a specific set of starfield/nebula cubemaps that need to be higher resolution. There has to be some way to remove them from memory, when unneeded… but I sure as hell can’t find it!

---

<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 28, 2022, 8:26pm UTC](https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970/4 "2022-05-28T20:26:54Z")

</div>

Have you tried actually packaging the project? It may be that this only happens in editor

---

<div class="post-metadata">

**Author:** ![SVR33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svr33/32/906589_2.png) [@SVR33](https://forums.unrealengine.com/u/SVR33)\
**Post date:** [June 2, 2022, 9:56am UTC](https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970/5 "2022-06-02T09:56:11Z")

</div>

That’s a good thought! I’ll be packaging again sometime this weekend and will report back.

---

<div class="post-metadata">

**Author:** ![SVR33](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/svr33/32/906589_2.png) [@SVR33](https://forums.unrealengine.com/u/SVR33)\
**Post date:** [June 2, 2022, 2:02pm UTC](https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970/6 "2022-06-02T14:02:18Z")

</div>

The stats are the same in the packaged game, as well.

---

<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:** [June 2, 2022, 4:45pm UTC](https://forums.unrealengine.com/t/are-all-cubemaps-within-the-project-folder-included-in-texture-memory-at-all-times/567970/7 "2022-06-02T16:45:33Z")

</div>

Thats unfortunate, thanks for reporting the results regardless. It’s useful for the rest of us 🙂
