From 9414dc64d958b4c3ae3d9c08f9d52653c3a9a64d Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Tue, 1 Jul 2025 20:10:24 -0400 Subject: [PATCH] actually (?!) fix drunk turtle problem --- pkg/ludus.js | 2 +- pkg/rudus_bg.wasm | Bin 2577477 -> 2577477 bytes src/world.rs | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) 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 6b4f11af7750471a990ab986ef8baf4c320e1b55..55c7851e953e9ffc300103a76329f5fee01be362 100644 GIT binary patch delta 151 zcmWm7xe*6hG?61$ zQ_bYb*SrmSYhK^M23&B-71s>8VZ@kQ?zrcHN1m84<(U~T%vrGHl{en`;PXG&>Rpe8 CUQs^) 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);