Search Unity

Occlusion culling vs disabling game objects

Discussion in 'General Graphics' started by Alkanov, Dec 4, 2018.

  1. Alkanov

    Alkanov

    Joined:
    May 15, 2017
    Posts:
    54
    Hi,

    I am trying to figure out if its worth splitting my current map into smaller chunks or if OC has my back, basically this is what im trying to understand:

    Is a disabled object out of camera = disabled object in camera?

    What are the advantages of disabling a game object if it wont be in camera anyway?

    Thanks
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    Enabling and disabling is an expensive operation. However a disabled object is always faster to (not) render than an occluded object. It's always best practices to disable as much as you can, but do so relatively infrequently.