Original Post
I am not sure which way is faster, but I populate a std::list to be rendered. The list just holds the pointer as a main std::list<> holds the actual dynamic allocated memory objects. So each frame I check the main list against the viewing frustum and push() the object on that list and after each frame clear() the render list and populate again based on whats visible...
So would it be faster to use a vector or list based on this method? I am assuming not much difference? What I don't know is there much overhead for pushing just a pointer without "new" in a container class? Wouldn't it be just as fast a a normal variable?
Thanks!
So would it be faster to use a vector or list based on this method? I am assuming not much difference? What I don't know is there much overhead for pushing just a pointer without "new" in a container class? Wouldn't it be just as fast a a normal variable?
Thanks!