Bounding regions

I wanted to know if there’s a good, quik way to know the bounding coordintes of a scene. I have a scene that consist of few objects and i need to know the coordinates of a rectangle that bounds the final image that i get on the screen. I need this to enhance the performance of my software.

I think you should go through all vertices of you world Database and searching for the greatest and smallest x,y and z Coordinates
these are the two edges of your whole scene.