# Is there an editor memory leak?...

**URL:** <https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418>\
**Category:** Community & Industry Discussion\
**Tags:** leak, unreal-engine, memory, editor, question\
**Created:** [April 1, 2019, 8:57pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418 "2019-04-01T20:57:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 1, 2019, 8:57pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/1 "2019-04-01T20:57:14Z")

</div>

Hi

After working on any level in the editor for any length of time, I start to get the ‘texture streaming pool over X KiB budget…’ message.

The longer I carry on the higher X gets until eventually, all the textures get ‘blown out’ ( fuzzy ) and I have to re-load the level in the editor.

There’s not a vast amount of stuff in the level, I’m not adding textures / actors. I’m just adjusting things / moving them around etc as I work on the level. Alternating between edit and play.

It really looks like a memory leak to me, although I have no idea how to prove that.

Does anyone know about this?

Many Thanks

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 2, 2019, 1:40pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/2 "2019-04-02T13:40:28Z")

</div>

Hey there. Try this while not in Play: Bring up the console (tilde key) and type r.Streaming.PoolSize and set it to a high value like 4096 and see if you still get the same warning.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 2, 2019, 1:45pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/3 "2019-04-02T13:45:38Z")

</div>

Thanks for your answer, but that’s not going to solve the problem, that’s just hiding it…

In any event, like I say, it’s not a texture memory problem, otherwise it would start much earlier.

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 2, 2019, 1:54pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/4 "2019-04-02T13:54:31Z")

</div>

It’s definitely not a leak in the editor, but caused by the way you’ve authored your materials. I run into it while working on ArchViz where my usage of many 4K textures triggers the warning… while, during gamedev, I try stay within a certain limit by keeping an eye on my mips and texture sizes. But it’s not an uncommon issue since, if you set that value to 0 it would uncap the pool, it’s just there as one of the tools that help you stay within whatever texture budget you’ve set 🙂

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 2, 2019, 2:19pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/5 "2019-04-02T14:19:52Z")

</div>

Why does the pool go over size after 2 hours of editing and playing. Surely if it’s too bit, it’s just too big.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 2, 2019, 3:05pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/6 "2019-04-02T15:05:21Z")

</div>

If I look in the statistic window when running / editing, I can see the current memory column only ever goes up. Surely it should go down again when I move away from high res objects?..

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 2, 2019, 4:19pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/7 "2019-04-02T16:19:56Z")

</div>

Are you able to narrow it down the to the objects/materials driving up the pool? You could also try migrating your level to a blank project to see if the issue persists across.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 2, 2019, 6:24pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/8 "2019-04-02T18:24:01Z")

</div>

I’ve found the objects, ie, the material. I’m not quite sure what change to make to the material yet, for some reason, it seems to be stuck on max detail, even when I’m nowhere near it.

But I guess the main thing I don’t get is why the streamer doesn’t start dropping textures that are far away. That’s it’s job, isn’t it?..

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 2, 2019, 7:19pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/9 "2019-04-02T19:19:46Z")

</div>

It should but each texture asset has settings that can affect or prevent this, like the MinLODSize, MipBias or TextureGroup it belongs to. There’s also a check to NeverStream a texture which will always keep it in memory, regardless of how far it is from you.  
I’d recommend [building your streaming data](https://docs.unrealengine.com/en-US/Engine/Content/Types/Textures/Streaming/Building) from time to time as you work, to ensure the Mip computations are kept up-to-date. Then you could more carefully check the settings of each texture used by your most expensive materials against [this glossary](https://docs.unrealengine.com/en-US/Engine/Content/Types/Textures/Properties) to find any funky settings that might’ve been overlooked during import.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 2, 2019, 7:49pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/10 "2019-04-02T19:49:36Z")

</div>

Thanks for your help so ar duderseb ( I have checked these things you indicate ).

It basically boils down to two things:

1. In this case, I have about 180 actors which are making up a large cliff face. Once I’ve been near them, they stay on 4096 res, even after walking away again. I know technically I can routing around in there and adjust the actually textures, or set the View MipBias in the material. But it’s not my material and it’s complicated. Is there a kind of ‘blanket’ way to adjust this?

2. So I go near the cliffs and then I go away again. So what. Why doesn’t the streamer unload the high res cliff textures and load the high res ones for the material I’m approaching, instead of whining about running out of budget?..

Any help gratefully received - especially on 1.

🙂

* * *

I discovered that using

r.Streaming.FramesForFullUpdate 100

( I have no idea what the default is ), makes the streaming work normally. IE, the amount used GOES DOWN when I move away from objects… pfff… no idea.

---

<div class="post-metadata">

**Author:** ![duderseb](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/duderseb/32/558202_2.png) [@duderseb](https://forums.unrealengine.com/u/duderseb)\
**Post date:** [April 2, 2019, 10:12pm UTC](https://forums.unrealengine.com/t/is-there-an-editor-memory-leak/446418/11 "2019-04-02T22:12:46Z")

</div>

Was about to suggest that and a couple other r. console commands for your “blanket” solution - glad it works now, indeed it should be something in the material/texture settings 🙂 FYI, you can call them on BeginPlay by wiring an Execute Console Command node in your Level Blueprint.
