# Lightmap memory usage vs actual size of the map

**URL:** <https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [May 14, 2019, 10:26am UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144 "2019-05-14T10:26:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1d00519](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1d00519](https://forums.unrealengine.com/u/anonymous_user_e1d00519)\
**Post date:** [May 14, 2019, 10:26am UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144/1 "2019-05-14T10:26:58Z")

</div>

Hi Everyone.

I am still new to Unreal, and I am trying to understand better about how Unreal manages its lightmap usage memory.  
The question is when I take a look at the lightmap generated in the world setting, their texture sizes are pretty large and their resource size memory is understandable. But when I open statistics window and take a look at static mesh lighting info, it looks like it has considerably lower memory usage in both total and its individual size.

I can understand that the maps that I see in the world settings are the atlas packed maps, so they are larger by design. But the total memory used for those textures vs what is indicated in the statistics are way different.

Even after consider the landscape taking its fair share of space, it still leaves huge gap.

Can anyone explain this for me please?

Thanks.

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [May 14, 2019, 3:32pm UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144/2 "2019-05-14T15:32:09Z")

</div>

The lightmaps that are currently being used are going to be far less than what was generated for the map

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1d00519](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1d00519](https://forums.unrealengine.com/u/anonymous_user_e1d00519)\
**Post date:** [May 14, 2019, 4:42pm UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144/3 "2019-05-14T16:42:07Z")

</div>

Ok. Fair enogh. But why is that the case? If it is view dependent, it should change according to the camera angle, position but statistics doesnt change.

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [May 14, 2019, 5:22pm UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144/4 "2019-05-14T17:22:09Z")

</div>

It’s not going to be exactly camera view dependent since that would be a problem when the camera is moving in terms of the ability to load in lightmaps fast enough, more than the current view is loaded. Also, it does save lightmaps into atlases so some stuff is loaded in even when not used.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1d00519](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1d00519](https://forums.unrealengine.com/u/anonymous_user_e1d00519)\
**Post date:** [May 14, 2019, 11:21pm UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144/5 "2019-05-14T23:21:47Z")

</div>

What I am saying is that the statistics for lightmap memory usage is Lower than the total lightmap baked for the level. Much lower. As far as I can understand, all the lightmap atlases should be loaded into the memory. So it is confusing to see stastics showing so much lower memory usage.

is there way to check out total lightmap memory used in the game?

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [May 15, 2019, 6:29am UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144/6 "2019-05-15T06:29:34Z")

</div>

It’s not going to load all of the lightmaps that a level has, it physically can’t

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e1d00519](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e1d00519](https://forums.unrealengine.com/u/anonymous_user_e1d00519)\
**Post date:** [May 15, 2019, 7:36am UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144/7 "2019-05-15T07:36:02Z")

</div>

Ok, well, I would still love to find out sum of all light maps baked, in terms of memory usage, so I can adjust overall density of the maps globally.

---

<div class="post-metadata">

**Author:** ![Raildex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raildex](https://forums.unrealengine.com/u/Raildex)\
**Post date:** [May 15, 2019, 7:45am UTC](https://forums.unrealengine.com/t/lightmap-memory-usage-vs-actual-size-of-the-map/126144/8 "2019-05-15T07:45:05Z")

</div>

In the newest verison, doesnt Unreal already use Virtual Texturing for Lightmaps? Which means the Memory usage for Lightmaps is constant, regardless of the actual size of the lightmap data
