# Giving Unreal Pre-Allocated Memory?

**URL:** <https://forums.unrealengine.com/t/giving-unreal-pre-allocated-memory/236738>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine\
**Created:** [June 22, 2021, 4:06am UTC](https://forums.unrealengine.com/t/giving-unreal-pre-allocated-memory/236738 "2021-06-22T04:06:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ataren3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ataren3](https://forums.unrealengine.com/u/ataren3)\
**Post date:** [June 22, 2021, 4:06am UTC](https://forums.unrealengine.com/t/giving-unreal-pre-allocated-memory/236738/1 "2021-06-22T04:06:07Z")

</div>

Hey everyone, I’ve been looking into this for a bit and I can’t seem to find anything concrete. I’m aware that UE4 has its own memory management system, and allows standard C++ memory management found here in the wiki:  
[Memory Management](https://www.ue4community.wiki/memory-management-6rlf3v4i)

Is there any way I would be able to make a memory management system that allocates just a block of memory to use for the application? Is there anyway to pre-allocate a large block of memory for the Unreal memory manager?

As an example, I give my application 1GB of memory with which to use. When it tries allocating beyond that the system errors saying “not enough memory allocated”. Conversely, I can watch the memory usage throughout the lifetime of the application, and reduce the allocation if necessary.

If at all possible I like to reduce fragmentation on software because it makes inevitable memory leaks much easier to pin down and helps with other systems looking for a block of memory while the application is running. I can’t seem to find any information on this, other than the UE4 memory management tries to reduce fragmentation.
