diff --git a/pkg/ludus.js b/pkg/ludus.js index 5cec4b5..9d922b3 100644 --- a/pkg/ludus.js +++ b/pkg/ludus.js @@ -67,7 +67,7 @@ function io_poller () { } function start_io_polling () { - io_interval_id = setInterval(io_poller, 100) + io_interval_id = setInterval(io_poller, 10) } // runs a ludus script; does not return the result diff --git a/pkg/rudus_bg.wasm b/pkg/rudus_bg.wasm index a59f7a5..5ea932c 100644 --- a/pkg/rudus_bg.wasm +++ b/pkg/rudus_bg.wasm @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:32e21f5b9673aa6f7f4758a9e7cd47fe960ee84098ff1d968312462981c64522 +oid sha256:76dab7d588c72ab78f6682e7b0c89400ac9461e8f6b5016bd8be42a6885e789a size 2577477 diff --git a/src/world.rs b/src/world.rs index 630fbdd..15a8379 100644 --- a/src/world.rs +++ b/src/world.rs @@ -426,7 +426,7 @@ impl World { } async fn maybe_do_io(&mut self) { - if self.last_io + 100.0 < now() { + if self.last_io + 10.0 < now() { let outbox = self.flush_buffers(); let inbox = do_io(outbox).await; self.fill_buffers(inbox);