# Metal pixel shader memory usage too high.

**URL:** <https://forums.unrealengine.com/t/metal-pixel-shader-memory-usage-too-high/377301>\
**Category:** Rendering\
**Tags:** metal, memory-usage, unreal-engine, shader, question\
**Created:** [November 24, 2016, 11:45am UTC](https://forums.unrealengine.com/t/metal-pixel-shader-memory-usage-too-high/377301 "2016-11-24T11:45:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c94f194d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c94f194d](https://forums.unrealengine.com/u/anonymous_user_c94f194d)\
**Post date:** [November 24, 2016, 11:45am UTC](https://forums.unrealengine.com/t/metal-pixel-shader-memory-usage-too-high/377301/1 "2016-11-24T11:45:41Z")

</div>

Our game has some problems with memory usage. Our target budget is 500MB and we support only Metal devices on iOs. I have noticed that Metal shaders use very large amount of memory. For Pixel shaders it’s over 6 times more than High-EndMobile/Metal preview use.  
I have screenshots from iPad Pro and PC preview with STAT MEMORY and STAT RHI.

 ![116225-mobilememory.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/8/6d814d6fef6d1cffe15d4687210ca64a3539d83b.jpeg)

 ![116226-mobilepreviewmemory.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/e/53ed4f8aed70c41c1ac3da5df56a74bf8b30d5bb.jpeg)

---

<div class="post-metadata">

**Author:** ![ttmayrin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ttmayrin](https://forums.unrealengine.com/u/ttmayrin)\
**Post date:** [November 29, 2016, 7:06am UTC](https://forums.unrealengine.com/t/metal-pixel-shader-memory-usage-too-high/377301/2 "2016-11-29T07:06:18Z")

</div>

I have same memory issue at iPhone6plus (1GB ram)…  
Metal shader memory is too high.

```
     2675571 - VertexShader Memory
    88613606 - PixelShader Memory
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c94f194d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c94f194d](https://forums.unrealengine.com/u/anonymous_user_c94f194d)\
**Post date:** [December 19, 2016, 9:22am UTC](https://forums.unrealengine.com/t/metal-pixel-shader-memory-usage-too-high/377301/3 "2016-12-19T09:22:08Z")

</div>

I really would like to see some progress for this.

---

<div class="post-metadata">

**Author:** ![ufna](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ufna/32/1194675_2.png) [@ufna](https://forums.unrealengine.com/u/ufna)\
**Post date:** [February 16, 2017, 12:08pm UTC](https://forums.unrealengine.com/t/metal-pixel-shader-memory-usage-too-high/377301/4 "2017-02-16T12:08:50Z")

</div>

It’s easy to debug shaders size by unzipping the .ipa and checking the real size of materials to find the problematic one. Also you should check “material usage” section of material, because multiple use produces lots of shaders variations to be stored in memory.

---

<div class="post-metadata">

**Author:** ![ArtemisLin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/artemislin/32/88715_2.png) [@ArtemisLin](https://forums.unrealengine.com/u/ArtemisLin)\
**Post date:** [May 14, 2022, 6:57am UTC](https://forums.unrealengine.com/t/metal-pixel-shader-memory-usage-too-high/377301/5 "2022-05-14T06:57:12Z")

</div>

hi，are there any more details about .ipa?
