🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Creating a custom stack allocator for game engine

Started by
20 comments, last by JoshuaManton 1 year, 10 months ago

The creator of the Odin programming language has a fantastic series on custom memory allocators here: https://www.gingerbill.org/series/memory-allocation-strategies/

Part 3 covers stack allocators, which are basically an arena with the ability to free the most recent allocation. This complicates things quite a bit relative to an arena because you will now need headers before each allocation to track how large it was and such.

This topic is closed to new replies.

Advertisement