# How can the garbage collection in the blueprint work?

**URL:** <https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402>\
**Category:** Blueprint\
**Tags:** garbage-collection, unreal-engine, Blueprint, question\
**Created:** [July 20, 2020, 9:12am UTC](https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402 "2020-07-20T09:12:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CharlotteBYth3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charlottebyth3/32/470737_2.png) [@CharlotteBYth3](https://forums.unrealengine.com/u/CharlotteBYth3)\
**Post date:** [July 20, 2020, 9:12am UTC](https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402/1 "2020-07-20T09:12:08Z")

</div>

I am considering how to optimize engine performance. I don’t know a programming language, and I have only been familiar with the blueprint. Recently, I saw the node “garbage collection” in the blueprint, and I searched for related concepts, but they were all C++, but I didn’t find the blueprint. So I am very frustrated, so I am here to ask, do you have any knowledge and experience in blueprint garbage collection? I would love to know how it works, thank you all.

---

<div class="post-metadata">

**Author:** ![TheKaosSpectrum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheKaosSpectrum](https://forums.unrealengine.com/u/TheKaosSpectrum)\
**Post date:** [July 20, 2020, 12:51pm UTC](https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402/2 "2020-07-20T12:51:23Z")

</div>

Garbage collection is handled automatically by the engine. There is a way to force a Garbage collection, which can be used to collect garbage at points in the game where a hitch would not cause hinderance to gameplay (like during a cutscene/round change. You don’t have to worry about calling garbage collection manually, as the engine already handles this.

---

<div class="post-metadata">

**Author:** ![CharlotteBYth3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charlottebyth3/32/470737_2.png) [@CharlotteBYth3](https://forums.unrealengine.com/u/CharlotteBYth3)\
**Post date:** [July 21, 2020, 2:05am UTC](https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402/3 "2020-07-21T02:05:42Z")

</div>

I see, thank you for your professional reply, thank you very much.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [July 21, 2020, 8:07am UTC](https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402/4 "2020-07-21T08:07:09Z")

</div>

As explained in the other answer, you generally do not need to worry about it too much but you can make some tweaks in the project settings:

 ![307694-annotation-2020-07-21-090427.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/5/8/35846a3cc40eb0faf8714405740baf4c8128dc10.jpeg)

Have a look at the tooltips for more info. And here’s a more in-depth read:

[https://www.ue4community.wiki/Memory\_Management](https://www.ue4community.wiki/Memory_Management)

---

<div class="post-metadata">

**Author:** ![CharlotteBYth3](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charlottebyth3/32/470737_2.png) [@CharlotteBYth3](https://forums.unrealengine.com/u/CharlotteBYth3)\
**Post date:** [July 24, 2020, 7:51am UTC](https://forums.unrealengine.com/t/how-can-the-garbage-collection-in-the-blueprint-work/468402/5 "2020-07-24T07:51:26Z")

</div>

Surprise, thank you for the link, I have seen many examples that can be studied here, to make up for some of the problems in the official documents that are not understood. Thank you very much.
