maltebp / River

2 stars 0 forks source link

Custom memory management #55

Open maltebp opened 3 years ago

maltebp commented 3 years ago

A lot of small memory allocations with the lifetime of a single frame may be allocated. With some simple customized memory management, we can optimize these smaller allocations by recycling the them instead of reallocating them every frame.

Comments on overloading new: https://stackoverflow.com/questions/8620940/using-a-vector-in-a-custom-memory-manager Nice article: https://developer.ibm.com/technologies/systems/tutorials/au-memorymanager/