Codementor Events

Object Pooling

Published Nov 07, 2018Last updated Aug 04, 2019
Object Pooling

what is object pooling in simple words one time created object use repted.suppose we are create shooter game.we having 5 bullet and all was fired, now it should be use a first bullet using reposition it.

benifits. suppose we are create all time bullet and use it all time. it tke a memory and process time so increase a fps. using object pooling decrease a fps and also memory uses.

for more explanation of object pooling example is road racing game and subway suffer game.

in this game use a small cuts of road wich are use repited. no need to destroy and create a object when camera rendring pass away from current road pice reposition at end of the road this is very simple exame of object pooling.

Discover and read more posts from afzal
get started