voxel-mesher icon indicating copy to clipboard operation
voxel-mesher copied to clipboard

Run mesher in web worker

Open deathcap opened this issue 10 years ago • 0 comments

To improve responsiveness, meshing should run asynchronously in a web worker.

An individual chunk can be remeshed quickly enough to not cause any noticeable lag (required to allow interactive mining and building), but it becomes apparent when exploring and generating new chunks. Terrain generation https://github.com/deathcap/voxel-land runs in a worker, so the pause is likely caused by the chunk meshing (to do: confirm with profiler).

ref https://github.com/deathcap/voxel-mesher/issues/4

deathcap avatar Jun 10 '14 02:06 deathcap