polymer
polymer copied to clipboard
Implement Object Pool & Memory Pool
- Object pool (arena?)
- Memory pool
- ~~Component pool~~
- ~~Alligned allocator~~
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