# Unreal GPU Memory Footprint

**URL:** <https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** gpu, rhi, memory-usage, unreal-engine, Performance, question\
**Created:** [March 5, 2018, 7:44am UTC](https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990 "2018-03-05T07:44:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 5, 2018, 7:44am UTC](https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990/1 "2018-03-05T07:44:29Z")

</div>

Hello!

I’d have a question about UE GPU memory usage. Due to the fact that I’m trying to target as low hardware as possible I’ve turned off Texture memory streaming and trying to fit all the textures in the level at a 1GB video memory usage.

When using ‘stat memory’ I see that the ‘Texture memory 2D’ is at 379MB.

When I use ‘stat rhi’ I see that there are many things that use the gpu memory.

1.Render target memory 2D - 466MB

2.Texture memory 2D - 379MB

3.Texture memory Cube 95MB

4.Structured buffer memory 59MB

5.Vertex buffer memory 50MB

Others are neglect-able. I’ve attached a image showing the stats:

 ![232763-memoryquestion.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/a/f6a005d72593fec2b1d565e771397da6879a1f7d.jpeg)

So my questions are:  
1.Is my memory usage 1098 GPU memory, that is the sum of all those stats?

2.Is the ‘Texture Memory 2D’ the usage of the textures that I’ve imported?

3.Why is that ‘Render target memory 2D’ so high?

4.Why is the ‘Texture memory cube’ so high since I only use 1 reflection probe

5.Why are there 557 ‘DrawPrimitive’ calls? I’ve taken the stat in a place of the scene where nothing is draw (an empty spot without any meshes or lights casting in it)

Is there any way to deep profile the GPU memory usage and maybe see where all that extra data comes from?

Thanks & Regards!

---

<div class="post-metadata">

**Author:** ![AssemblerJohn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/assemblerjohn/32/921539_2.png) [@AssemblerJohn](https://forums.unrealengine.com/u/AssemblerJohn)\
**Post date:** [March 7, 2018, 6:32am UTC](https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990/2 "2018-03-07T06:32:32Z")

</div>

For those finding themselves in the same situation as me the following steps should be done when doing memory profiling:

1. Close the editor and open it again so that all dangling memory is released
2. Launch the game as a stand-alone instead of ‘Play In Current Viewport’
3. Use ‘memreport -full’ for a full detailed dump on the memory usage

The interpreting of the values goes as follows:

- “RHI resource memory (not tracked by our allocator)” - Section is related to GPU memory usage, a value after all the data is shown. In my case it was ‘683MB total’. Since we’re targeting GTX550+ I guess that we have around 300MB more of video memory that we can use.
- “Pooled Render Targets” - Section related to the “Render Target Memory 2D”. It explains there the high render target memory usage. It is high due to all the buffers allocated, especially the DBuffer textures. It also seems not to show real values all the time, that is why an editor restart is required.
- “Listing all textures” - Section related to the textures used by your game. The list is ordered from highest memory to lowest. The top textures are a good start on optimizing. Remember that a 2k texture means about 4 1024 textures or 16 512 textures! Better use tiling textures, detail textures etc.

The video memory consumption you are targeting for is determined by the GPU that you are targeting (we’re targeting GTX 550 with 1GB Vram) and if you are using texture streaming or not.

CPU memory profiling is a lot easier I’ll not get in details with that too.

Even though many Unreal users already know what I’ve listed, maybe there would be some newcomers with the engine (like myself) that require a little bit of help when profiling the GPU usage. Searching info over the internet linked me back to my question so maybe anyone will find it useful.

---

<div class="post-metadata">

**Author:** ![Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_e5d5c0bf7d300728867097ff79906dbe](https://forums.unrealengine.com/u/Anonymous_e5d5c0bf7d300728867097ff79906dbe)\
**Post date:** [May 22, 2018, 1:24am UTC](https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990/3 "2018-05-22T01:24:52Z")

</div>

Huge thanks for sharing!

---

<div class="post-metadata">

**Author:** ![dellis23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dellis23](https://forums.unrealengine.com/u/dellis23)\
**Post date:** [March 23, 2022, 1:34am UTC](https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990/4 "2022-03-23T01:34:54Z")

</div>

I’ve tried typing `memreport -full` into the console in a standalone game, but it appears to do nothing. Does it output a file for analysis, or is there another step that’s missing?

---

<div class="post-metadata">

**Author:** ![dellis23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dellis23](https://forums.unrealengine.com/u/dellis23)\
**Post date:** [March 23, 2022, 1:41am UTC](https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990/5 "2022-03-23T01:41:31Z")

</div>

Found the answer in [this](https://www.unrealengine.com/en-US/blog/debugging-and-optimizing-memory) post. Paraphrasing here for posterity: you can find the output in your project’s `Saved\Profiling\MemReports\` directory. It’s a simple text file that you should be able to read.

---

<div class="post-metadata">

**Author:** ![ShekharSharma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShekharSharma](https://forums.unrealengine.com/u/ShekharSharma)\
**Post date:** [June 15, 2023, 10:51am UTC](https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990/6 "2023-06-15T10:51:17Z")

</div>

@AssemblerJohn What do you mean by CPU memory profiling? is it RAM usage you are talking about. Also can you please share pointers around how to profile?

---

<div class="post-metadata">

**Author:** ![WiseSam](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wisesam/32/610487_2.png) [@WiseSam](https://forums.unrealengine.com/u/WiseSam)\
**Post date:** [August 18, 2023, 6:39pm UTC](https://forums.unrealengine.com/t/unreal-gpu-memory-footprint/418990/7 "2023-08-18T18:39:52Z")

</div>

You’ve probably found the solution to this already; but for anyone else that runs into this;  
running “memreport -full” or “memreport” will run a string of commands that dumps the results in two places…

1. Your output log in the editor, which may be difficult to read due to the sheer amount of data it produces.
2. You project’s saved folder; project\_name/Saved/Profiling/MemReports/blahblah.memreport - open the file in an editor like Notepad++ or Sublime text)

You can use a compare plugin in Notepad++ to monitor changes in memory, which can be useful for hunting down leaks.
