Native Scene Culling

    Generally, the engine culls models that are not in the viewing frustum (the visible range of the camera) by checking whether the bounding boxes of the models are in the viewing frustum one by one, which is slower. If octree culling is enabled, the models that are not in the viewing frustum can be quickly culled by the octree.

    This feature is disabled by default, to enable it, select the scene root node Scene in the Hierarchy panel, then notice the Octree Scene Culling option in the Inspector panel, and check Enabled.

    When octree culling is enabled, the whole world’s bounding box (e.g. the white bordered cube in the scene above) will be displayed in the Scene panel.

    The properties of Octree Scene Culling are described as follows:

    This feature can be turned on with code that says

    • Performance may vary slightly from device to device, so decide whether to turn on the corresponding culling function after comparing performance tests.