Optimize your game with Basic Object Pools in Phaser 3 using the Group Class.
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."
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