Opened 9 years ago

Last modified 8 years ago

#3362 new enhancement

Memory Pool and Bucket Allocator

Reported by: Thanduel Owned by: Thanduel
Priority: Should Have Milestone: Backlog
Component: Core engine Keywords:
Cc: mynaamisdavid@… Patch:

Description (last modified by Thanduel)

The purpose of this is to review, improve and apply the memory pool implementation that was started here http://trac.wildfiregames.com/ticket/2020 for the purpose of improving the performance of 0ad.

At the moment the plan is to simplify this implementation by removing the dynamic pool which I think is unnecessary. We don't really want the pool resizing itself in the middle of the game as it defeats the object of the pool. The pool will fall back on malloc if it has reached it's capacity. This will mean that in the worst case the performance will default back to what it is now. Further, I intend to add some form of logging to this to allow the user to determine how big the pools actually need to be through playing the game.

Change History (2)

comment:1 by Thanduel, 9 years ago

Cc: mynaamisdavid@… added
Description: modified (diff)

comment:2 by Itms, 8 years ago

Milestone: Alpha 20Backlog

Any progress on this?

We aim for a short release cycle so it would be best to remove the A20 milestone, but keep us updated if you have some working prototype!

Note: See TracTickets for help on using tickets.