diff --git a/client/speed.js b/client/speed.js index 906c64c..1fdc480 100644 --- a/client/speed.js +++ b/client/speed.js @@ -43,7 +43,7 @@ async function init_wasm(state) { env: { 'memory': memory } }); - const nworkers = 1; //navigator.hardwareConcurrency; + const nworkers = navigator.hardwareConcurrency; state.wasm.exports = master_wasm.instance.exports; state.wasm.heap_base = state.wasm.exports.alloc_static(0); diff --git a/client/wasm/lod.c b/client/wasm/lod.c index a13020c..727b989 100644 --- a/client/wasm/lod.c +++ b/client/wasm/lod.c @@ -207,6 +207,7 @@ do_lod(int *clipped_indices, int clipped_count, float zoom, { if (clipped_count == 0) { result_count[0] = 0; + result_batch_count[0] = 0; return; } diff --git a/client/wasm/lod.wasm b/client/wasm/lod.wasm index 3a4dd81..17701b1 100755 Binary files a/client/wasm/lod.wasm and b/client/wasm/lod.wasm differ