Hi, I’m trying to make “object pool” system with using sprite nodes.
Is it take CPU or rendering process when I reserve sprite nodes which not having parent nodes?
I’m making 2D action type game wich aiming to have high frame rate. Enemy shoots many various bullets in the game. I don’t want to create and destroy sprite nodes everytime when enemy shooting the bullets, because it seems slow.
So, I’m plannning to reserve pre-created sprite nodes for general purpose. And use it when enemy shooting the bullets, with setting corresponding sprite frame and parent node. After finish using them, the node will release and back to reserve nodes.
I believe this approach called “Object pool”.
I’m worry that is there any problem that having a lot of no-parent node without using.
Also, if have any advice on this approach, please feel free to tell me.