mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-22 11:11:43 +00:00
Compare n-body to asmjs and js
This commit is contained in:
@ -45,6 +45,8 @@ fetch("build/optimized.wasm")
|
||||
var exports = module.instance.exports;
|
||||
var mem = new Float64Array(exports.memory.buffer);
|
||||
|
||||
exports.init();
|
||||
|
||||
// Update about 30 times a second
|
||||
(function update() {
|
||||
setTimeout(update, 1000 / 30);
|
||||
|
Reference in New Issue
Block a user