Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualNightCreature83

Posted 25 April 2013 - 05:36 AM

Maybe this article will answer your questions: http://www.gamedev.net/page/resources/_/technical/general-programming/c-custom-memory-allocation-r3010 But generally you want a custom allocator because then you have control over what it does, and you can have different allocations in the back end, think heap allocator and slot allocator. A slot allocator is far faster then a heap allocator as all the slots will have the same size, so there generally is no searching for free slots big enough in this allocator.


#1NightCreature83

Posted 25 April 2013 - 05:35 AM

Maybe this article will answer your questions: http://www.gamedev.net/page/resources/_/technical/general-programming/c-custom-memory-allocation-r3010 But generally you want a custom allocator because then you have control over what it does, and you can have different allocations in the back end, think heap allocator and slot allocator. A slot allocator is far faster then a heap allocator as all the slots will have the same size.


PARTNERS