new Thread seems to be working on main thread ( freezing screen )
I made a procedural terrain on my game and used threading to calculate vertices/triangles/normals/colors and when it finishes, I would get those and put inside a mesh. And this was happening with a bit of lag, and I was trusting System.Threading blindly, until I started to notice that the terrain shouldn´t be showing up completely right at the start of the level. And when I started profiling the game and indeed showed no sign of using other threads and I can´t figure out why.
Here´s a link to the code:
https://gist.github.com/badjano/d7514ecfcfb05d1cf28b1e18775aaa0d
I think it may have something to do with having everything inside a monobehaviour, but I can´t understand why would that matter.
EDIT: As you can see from the profiling screenshot, it says that all computation is running on the Update function, but from the code you can see that I start a new thread ( from the update function ). So why is it running on the update function?