Object Pools

The green recycle symbol. Taken from http://www.sxc.hu/photo/1266576.

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.

JavaScript Object Pool

The green recycle symbol. Taken from http://www.sxc.hu/photo/1266576.

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.

Read more