in cases like this ususally the most optimal is to decide the max number of faces you are going to recognize and create as many images/planes or any other object you might need from the beginning instead of trying to allocate things dynamically over time. then whenever something is not used you just don't draw it or store it in a temporary vector of available objects (a pool)
↧