FramePool

A frame pool.

Frame pools allow reuse of memory that changes frequently, eg. every frame.

Frame pools are grown by a given "page" size if additions to the pool go beyond the current allocation of the pool.

Constructors

this
this(size_t pageSize)

Initializes a new memory pool.

Destructor

~this
~this()

Destructor

Members

Functions

allocate
PoolToken!T allocate(size_t count)

Allocates memory from the pool for the given amount of elements.

free
void free()

Frees the pool.

next
void next()

Begins the next frame/generation.

Properties

generation
size_t generation [@property getter]

The current generation of the frame pool.

Meta