How to speed up voxel game with SurfaceNets

Hi there,

Any advice to speed up voxel game with SurfaceNets? When it generates a new chunk, fps will always drop from 60 to 10~30. Chunk size is 25x25x25 and SurfaceNets only smooth it once. I only try StartCoroutine to speed it up.

Another question is do I have to recreate the whole chunk when I modify one block, it is very obvious when the chunk disappear and recreate.

Thanks.

can use multithreading to do work (so mainthread doesn’t hang)

but with newer unity versions you can use Jobs / ECS / DOTS to further improve performance:

(theres many mesh generation threads too)