Object Pools
I recently wrote an article for Gamedevtuts+ that covered object pools and how to use them to create an efficient particle system.
I hope you find it helpful.
I recently wrote an article for Gamedevtuts+ that covered object pools and how to use them to create an efficient particle system.
I hope you find it helpful.
During the development of my Galaxian style HTML5 game, I wanted to make an object pool of the bullets that my ship and enemies could use to help keep my performance high and unnecessary garbage collection low. However, after 30 minutes of Google searching for an object pool in JavaScript, it seemed that no one had posted any examples. I was quite baffled that no one had made one, so I developed my own simple object pool for JavaScript.