Search Unity

NavMeshSurface runtime bake is impossibly slow

Discussion in 'Navigation' started by mrCharli3, Nov 29, 2019.

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    486
    I try to bake a small mesh with 100 verts in unity through C#, it literally is taking 5 minutes. Am I doing something wrong?

    Code (CSharp):
    1. chunk.GetComponent<NavMeshSurface>().BuildNavMesh();
    I press play, and unity freezes for 5 min, then it runs. Using the latest NavMeshSurface from Github.

    EDIT: Seems that even tho the scene is empty, I had to isolate the layer. Can't explain why.
     
    Last edited: Nov 29, 2019
  2. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    164
    Can you post your NavMeshSurface settings? For a small mesh like this, it should be way way faster.