Check the original blog post at The Gamedev Guru: Object Pooling in Unity 2021+
While developing your game, you noticed that instantiating 100 bullets per second is suffocating your mobile CPU performance. You then...
A: you reduce the number of bullets to 20
B: you implement your own pooling system
C: you pay 50 bucks for a pooling system in the Asset Store
D: you use the new Unity Pooling API introduced in 2021
In this blog post, we are going to cover this last option.
Today, you will learn how to use the new Pooling API introduced in 2021.
Table of Content
Since Unity 2021, you have access to a wealthy set of pooling features that will help you develop high-performing Unity projects.
Ready to get to know them?
When Do You Actually Need Pooling?
Let’s start with the most important question: when do you need pooling?
I ask that because pooling shouldn’t be your go-to solution 24/7.
Object pooling in Unity has definitely some important drawbacks that do more harm than good, so you have to be careful there.
We will look into those later.
To keep it short, consider pooling when:
You