ERROR: All memory pool allocations are in use // And Godot seems to use not many memory

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By abelgutierrez99

Hi,
I’m trying to create a strategy game. It is voxel-based. Here is an example of what I have:

This is a radius 5 “circle”.

I tried to create a radius 100 but I get an error regarding memory. The algorithm creates a big Array with all the translation. Then I thought that the Array was too big, so I decided to do another algorithm, something like a “generator”, so I do not need to save all the Vector3 in an Array. The previous image was generated with that algorithm. But the problem persists. The error is:

ERROR: All memory pool allocations are in use.
at: (./core/pool_vector.h:512)

There are not overlaped voxels. The maximum radius I can achieve is 73.

I get the next information from the editor in the 73 limit:

And from the Windows Task Manager:

So it seems that there is some limitation to the memory that Godot can handle.

Same error but not same solution.

abelgutierrez99 | 2022-03-26 13:32

:bust_in_silhouette: Reply From: abelgutierrez99

It seems that is a Godot problem, I posted the issue in the Github page.

Hopefully will be solved in future versions, 3.5 and/or 4.