Skip to content

Support for ArrayBuffer/Buffer pooling #91

Open
@ghost

Description

Support for pooling would be great. This kind of feautre is must have for html5 games to prevent GarbageCollector throttling effect aka lagging.

The only file that manage memory is in resize.js?

We should then provide callbacks or methods like:
onCreateBuffer() and onUtilizeBuffer() that would be called in resize method

in default behaviour onUtilizeBuffer will be just empty, but if someone will be in need both can be overridden to obtain Buffer from Pool and release Buffer to pool.

I can do the code for it but need to be sure that managing memory is only about resize.js source.

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