Instead of iterating over the render objects three times, iterate over them once.
Each of the getNum*Objects iterates over the entire renderObjects_ vector.
Please register or sign in to comment
Each of the getNum*Objects iterates over the entire renderObjects_ vector.