Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Occlusion culling freezes editor

Discussion in 'General Graphics' started by gewl, Nov 28, 2020.

  1. gewl

    gewl

    Joined:
    May 19, 2016
    Posts:
    95
    Hey,
    I'm trying to bake occlusion culling for my game, but every time I try, my editor freezes and seems to require being killed from task manager. Initially, the editor logs were displaying a
    Failed getting triangles. Submesh index is out of bounds.
    that were apparently related to some meshes having more materials assigned than submeshes. However, I've removed the excess materials, and baking occlusion is still freezing my editor—only now, there's no error message in the logs that I can see. They cut off with:

    Additionally, there's nothing in my Library/Occlusion folder, so it seems like it isn't even getting started.

    Does anyone know what might be causing this?

    I'm on URP and Unity 2019.4.15f1. Thanks!
     
  2. Unityraptor81

    Unityraptor81

    Joined:
    Nov 28, 2016
    Posts:
    29
    I was having the same issue. Just be sure to stay on the visualization tab of occlusion and do not switch tab until occlusion baking is finished. Otherwise, either suppressing or baking occlusion will freeze the editor.