Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

FPS wont increase even if high poly model is behind a plane

Discussion in 'General Graphics' started by IntoTheSoul, Apr 16, 2022.

  1. IntoTheSoul

    IntoTheSoul

    Joined:
    Oct 31, 2018
    Posts:
    30
    I have very high poly mesh behind a simple unity plane. FPS drops somewhere around 10fps when the high poly object is active even if its hidden behind the plane.

    > Its a new project
    > Camera Occlusion culling enabled
    > Dynamic Occlusion in meshes enabled

    does occlusion culling only work if objects are behind the camera?

    here are the stats

    Inactive High Poly Model:

    upload_2022-4-16_9-8-2.png


    Active High Poly Model:

    upload_2022-4-16_9-8-38.png

    Profiler:

    upload_2022-4-16_9-7-52.png
     
  2. jamespaterson

    jamespaterson

    Joined:
    Jun 19, 2018
    Posts:
    404
    Disclaimer: I am not an expert on this.

    my understanding is I think camera culling is referred to as Frustum Culling, and yes, this only works the the bounding box of the object is outside of the camera view, e.g. behind it.

    I think regular unity occlusion culling requires baking and does not work with dynamic objects, e.g. a plane being toggled on and off. You would need to have a static plane, bake it as an occluder then move the camera so that the plane occludes the view of the high poly model for culling to apply.

    There are some real-time occlusion culling techniques available e.g. as assets on the asset store or you could maybe have a play with this:

    https://github.com/przemyslawzaworski/Unity-GPU-Based-Occlusion-Culling

    Good luck!
     
    IntoTheSoul likes this.