How to use Level of Detail in 2D Game ?

Hello, I want to know is there is any LOD function which will help to optimise your game level?
Like you don’t need to render the parts of level which is not on your sight of camera.

The term you are looking for is “Frustrum Culling
It has been asked here before