Phaser 3 Game Object Pools Tutorial
Memory allocation inside update loops often causes framerate problems in real-time gaming. One of the best solutions to this is to use Object Pools in Phaser 3.
An Object Pool is a collection of instances of game objects created for future instances. Instead of creating a new instance, you can access one of the unused instances in the Object Pool. After using it, you can return it to the pool later reuse.
Phaser 3 has the Groups function that allows you to modify and reuse game objects.
Check out this tutorial to learn more about game object pools in Phaser 3.