2 ms·
> move all memory management into centralized systems (like rendering, physics, animation, …), with the systems being the sole owner of their memory allocations
by jhgb 6y ago
> move all memory management into centralized systems (like rendering, physics, animation, …), with the systems being the sole owner of their memory allocations
> when creating an item, only return an ‘index-handle’ to the outside world, not a pointer to the item
> in the index-handles, only use as many bits as needed for the array index
> only convert a handle to a pointer when absolutely needed, and don’t store the pointer anywhere
DataDraw, anyone? http://datadraw.sourceforge.net http://datadraw.sourceforge.net