← All projectsPlugin · C++ · UE5

Object Pooling

Reuse spawned actors and objects instead of destroying and respawning them, with no subsystem required.

TypePlugin
TechC++, UE5

Object pooling is all about reusing spawned objects/actors and not destroying and spawning them over and over again. There are many times where pooling objects is preferred over spawning them, for example in a bullet hell game where you have hundreds of bullets on screen at once, it’s much more efficient to pool them and reuse them (although these would probably be niagara meshes), another example is enemies, sounds, vfx, decals, etc.

The plugin has a quite extensive list of built in poolable actor types but just to name a few:

  • Sound
  • Niagara VFX
  • Decals
  • Static / Skeletal Meshes
  • Widgets

The pool does not require a subsystem which was a massive goal of mine when creating it, I wanted it to be as reusable and easy to integrate as possible. It was important that I could allow (almost) any object to own the pool and manage it, nothing stops you from putting a pool on a subsystem though if desired.