Search Unity

Unity freezes while creating meshes

Discussion in 'Scripting' started by C_S, Oct 4, 2015.

  1. C_S

    C_S

    Joined:
    Aug 24, 2015
    Posts:
    4
    Hi,

    I have a problem regarding the visualisation of my meshes.
    The amount of meshes is very high (>200), also they are high detailed (nearly to 65k verts) and I use a shader for vertex coloring.

    Via tcp/ip i get the vertex positions and save them to an array. As soon as the positions are received, the script to create the mesh (attached to every mesh object) is accasing the array.

    The problem I am facing is, that unity needs a lot of time to show the meshes. In this time unity freezes.
    The time to create the meshes in the script is all in all about 1 second. But until the meshes are shown it takes up to 10 minutes. I am not using a mesh collider.

    So is there a way to avoid freezing or at least to show a progress bar ?

    regards
     
    Last edited: Oct 4, 2015