ZeroAllocPool is a new Godot addon designed to optimize memory allocation in performance-critical games. Developed by ElBranda as a GDExtension, it targets indie developers building systems that rapidly create and recycle large numbers of objects during gameplay, a common challenge in genres such as bullet hell games, twin-stick shooters, and horde survival games.
The addon is well suited for gameplay systems such as large-scale particle effects, enemy spawners, projectile-heavy combat, and other object-dense mechanics where allocation overhead can become a bottleneck.
ZeroAllocPool uses a Static Index Free-List Pool architecture implemented directly in native C++. The developer explains that frequent new() and free() operations during gameplay can cause heap fragmentation, eventually triggering garbage collection, resulting in micro-stutters and frame drops that disrupt smooth gameplay. ZeroAllocPool was created to address this issue.
Key features include True Zero-Allocation behavior, where a contiguous memory block is reserved at level load so no runtime allocations are required during gameplay. CPU Cache Locality improves performance by keeping data tightly packed in memory, reducing cache misses and increasing overall efficiency. O(1) Time Complexity ensures that object fetching and recycling take a constant amount of time regardless of pool size.
The developer showcases a stress test spawning 15,000 active nodes, where the performance gains can be significant. A comparison between standard GDScript allocation and ZeroAllocPool shows a clear difference between smooth 60 FPS gameplay and subpar, stuttering performance at 19 FPS.
According to the developer, the addon is structured professionally and includes both Debug builds with error checks and optimized Release builds for maximum performance. It also exposes a clean, high-speed index management API for use in GDScript, without SceneTree overhead.
ZeroAllocPool is MIT licensed and can be compiled from source for multiple platforms, including Windows, Linux, macOS, mobile, and consoles. It is compatible with Godot 4.6 and above.
For more information or access to the project, visit the product page on itch.io.