Cocos2dx object pooling

Hi. im developing an endless runner game and i create nodes (obstacles, coins…) in update function. But if i use object pooling do i get better performance? How can i implement that? (creating sprites in the beginning and using them when needed)

Please help

I just use vectors mostly. I create my needed objects on startup, in the background,

Sometimes my games don’t need this and I just re-use an object once it goes off screen I reset the position back and keep going

I’d encourage you to use a parallax node.

If I do need to use a pool, I do. Look at this website. They are the best resource, IMHO: http://gameprogrammingpatterns.com/object-pool.html