For example if I draw a cube and turn my character around so as to face away from the cube does it use CPU/gpu processing to draw it even though it is not on screen? Do I as a programmer need to be smart enough to not make opengl draw calls if an object is not on screen or very far away?
It doesn't render them as such, but it does use resources which I believe is what you're asking. Yes, you do.
You're probably after frustum culling:
Yes. All vertex data sent to OpenGL will consume resources, regardless of whether or not the corresponding geometry is in view. As suggested above, frustum culling is an optimization that identifies objects that will not be in the view volume and ignores/culls its vertex data. Thus, if the vertex data is never submitted to the GPU, then it will never be processed by the GPU.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With