Optimize your game with Basic Object Pools in Phaser 3 using the Group Class.

Posted on 14th Apr 2021. Follow @phaser_ and get the Phaser World newsletter.


Tommy Leung from Ourcade presents this invaluable tutorial: "Speed is often an important performance metric in a game. If players have to react in realtime then framerate is a big deal.

One common reason for framerate problems is memory allocation inside update loops.

Memory allocation happens when creating new instances.

You generally want to avoid doing that as much as you can but making things appear in response to player interaction is unavoidable.

The solution is to use Object Pools.

In this article, we will take a look at using Object Pools in Phaser 3."

Read More

Learn to code and lead your intrepid crew on a mission to save The Cloud in TwilioQuest, a PC role-playing game inspired by classics of the 16-bit era. Free forever, and available now for Windows, Mac, and Linux.

The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
  • By Emanuele Feronato
  • 155 Pages
  • 28 Source Code Examples
  • Build a complete game from start to finish
  • Cross Platform
  • Scaling for devices
Buy Now