memory optimization: defer wasm load, reduce point/poly default fields

This commit is contained in:
Stewart Allen 2021-06-17 23:31:05 -04:00
commit 069a599ead
5 changed files with 32 additions and 32 deletions

View file

@ -496,7 +496,7 @@ self.kiri.loader.push(function() {
}
// load renderer code in worker context only
if (KIRI.worker)
if (KIRI.worker && false)
fetch('/wasm/kiri-ani.wasm')
.then(response => response.arrayBuffer())
.then(bytes => WebAssembly.instantiate(bytes, {