Search Unity

Overdraw offscreen does it impact performance?

Discussion in '2D' started by Toolism, Oct 31, 2014.

  1. Toolism

    Toolism

    Joined:
    Apr 10, 2014
    Posts:
    12
    Hello guys.
    I have things happening inside my camera view and I have cached prefabs already instantiated outside of the camera view. When I need them i just move them to where they can be seen (inside the camera view).

    I would like to know if having them there impacts performance due to overdraw or not? My understanding is that since they are not inside the cameras view they only take up memory that was allocated for the textures and classes that they are made of.

    Here is a screenshot to give you a better understanding :

    The white rectangle is the camera view. I've used the Overdraw setting to show places where it occurs.
     
  2. TomasJ

    TomasJ

    Joined:
    Sep 26, 2010
    Posts:
    256
    No, because Unity won't render sprites outside of the camera view. You're good GPU-wise.