|
|
@ -43,7 +43,7 @@ async function init_wasm(state) { |
|
|
|
env: { 'memory': memory } |
|
|
|
env: { 'memory': memory } |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const nworkers = 1; //navigator.hardwareConcurrency;
|
|
|
|
const nworkers = navigator.hardwareConcurrency; |
|
|
|
|
|
|
|
|
|
|
|
state.wasm.exports = master_wasm.instance.exports; |
|
|
|
state.wasm.exports = master_wasm.instance.exports; |
|
|
|
state.wasm.heap_base = state.wasm.exports.alloc_static(0); |
|
|
|
state.wasm.heap_base = state.wasm.exports.alloc_static(0); |
|
|
|