ddiakopoulos / polymer

🎨 graphics/interaction prototyping sandbox
BSD 3-Clause "New" or "Revised" License
303 stars 21 forks source link

Implement Object Pool & Memory Pool #8

Open ddiakopoulos opened 6 years ago

ddiakopoulos commented 6 years ago

A generic memory pool is relatively simple and useful enough that Polymer should have one even though it's not presently required for any in-engine features.

While component pools and hash tables provide most of the heavy lifting for the ECS functionality, an object pool can still be useful (i.e. objects that wrap third-party functionality like physics).

Reference: https://github.com/mtrebi/memory-allocators