How does draw distance work?

Hi, i’m just wondering how draw distance works in games and why it is needed, i’ve seen draw distance options in many games but i never truly understood it.

I know draw distance is when the game draws the object on screen but how do you create draw distance in your game?
Is it needed so that your GPU and CPU can relax while rendering objects?

Thanks for reading.

draw distance is basically either the camera + fog range or camera + fog + layer cull distance (on the Camera component through code) :slight_smile:

and its needed to get fluent rendering at all, not to give the hardware time to relax normally :wink:

Draw distance is set on the camera and is used to determine how far ahead of the camera objects will be rendered. The more you are drawing, the more of a performance hit it is.

The skybox is always rendered if you have one.

In a large scene or landscape, setting the draw distance conservatively is a very fast way to improve performance. Usually you set it low for lower quality settings or known old graphics cards, and progressively farther away for higher quality settings.

You can also use draw distances creatively to divide rendering of different parts of the scene with different cameras using different effects and layer culling, such as looking through a window or something like that.