🎉 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!

Advertisement

Latest memorymanagement Activity

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 th…

17,621 views
Advertisement

DevReign said:
It's not clear to me which is the simplest fundamentally correct solution that results in a clean program and accomplishes what I require.

Was offline for a few days, so the answer is a bit delayed.

What that means exactly depends on the game. Basically, the goal is to have all cases in…

26,925 views
C++17 Allocators

a light breeze said:

That's not actually what's happening. Your code creates an object with position (0, 0) and size (32, 32). If you look at the debugger, the object at position 1 has position (32, 32) and size (0, 0). So you have the first object constructed to straddle the boundary between positi…

5,267 views
Advertisement
Advertisement