Skip to content

Add FlxMatrix pooling #3581

@MaybeMaru

Description

@MaybeMaru

Same as with FlxPoint and FlxRect, FlxMatrix is a very commonly used class in HaxeFlixel for math calculations.
However, strangely, it is the only one of the group that lacks pooling support to reuse instances of FlxMatrix.

Adding the same kind of pooling that FlxPoint and FlxRect have would be extremely useful, both for developers and within HaxeFlixel itself, as it would reduce the number of instances and the memory overhead caused by constantly creating and destroying FlxMatrix objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions