Skip to content

Create a custom allocator class #55

@Raelr

Description

@Raelr

Description

One method for tracking memory allocations in Siege is through the use of custom memory allocators. One of the most common types of memory allocators is the PoolAllocator - which maintains a pool of memory which can be accessed by various elements in the application. A most basic form of this would be a class which stores a void pointer of raw data and tracks available allocations via a list of 'Partitions'. When memory is needed, we simply ask the allocator for a chunk of memory which we then use for the data that we wish to use.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestutilsRelating to the engine's utils

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions