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…
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…
![C++17 Allocators](https://uploads.gamedev.net/forums/monthly_2021_05/a28f9d8e42a94075927b5ca12f754f07.Annotation-2021-05-24-155435.png)
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…