Make emscripten with threads compile

This commit is contained in:
Surma
2018-11-02 18:34:23 +00:00
parent 30e78e8ab7
commit 7a08815bcf
5 changed files with 4 additions and 6 deletions

View File

@@ -19,7 +19,7 @@
Module.onRuntimeInitialized = async _ => {
console.log('Version:', Module.version().toString(16));
const image = await loadImage('../example.png');
const image = await loadImage('../really_big.jpg');
let start = performance.now();
const result = Module.encode(image.data, image.width, image.height, {
quality: 75,