Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ArrayBuffer/Buffer pooling #91

Open
ghost opened this issue Apr 6, 2018 · 0 comments
Open

Support for ArrayBuffer/Buffer pooling #91

ghost opened this issue Apr 6, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 6, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants